2024의 게시물 표시

jupyter pdf 출력

(현상) jupyter notebook을 PDF로 출력할 때 한글이 안 나옴 (원인) jupyter notebook 메뉴를 따라 자동으로 생성하면 kotex package를 사용하도록 지정이 안 됨 (해결) 기본 latex template에 항상 kotex package를 사용하도록 지정. 수정해야 할 파일 이름은 base.tex.j2 리눅스 쪽이면 /home/<username>/.local/share/jupyter/nbconvert/templates/latex에, 윈도우 쪽이면 C:\Python\Python310\share\jupyter\nbconvert\templates\latex에 있음 base.tex.j2에 \usepackage{kotex} 행 추가 (들여쓰기 등 맞춰서)