pandoc 을 설치합니다.

https://pandoc.org/installing.html

설치방법은 해당 페이지에 제공해주는 문서 확인. windows의 경우 install 파일을 받는것을 추천합니다.

설치하고 설치 실행시 에러가 발생…

C:\Users\bymin\github\ssp_spec>pandoc ./xxx.md -o ./test.pdf
pdflatex not found. Please select a different --pdf-engine or install pdflatex

pdflatex 를 찾을 수가 없다고 뜹니다..

TeX 를 설치하여야합니다.

https://tug.org/texlive/acquire-netinstall.html

이미지

3999 개를 설치하느라 시간이 오래걸립니다. (내가 필요한건 pdflatex인데 ㅠ-ㅜ)

설치가 다되기 기다리기 어려우니,

마크다운 -> word 로 변환을 먼저 진행하고자 합니다.

pandoc ./xxx.md -f markdown -t docx -s -o test.docx

-f : from, 원본 소스 포맷 -t : to, 변환할 포맷 -s : standalone -o : output, 출력파일 이름

라는 뜻을 가지고 있습니다.

pandoc hello.md -f markdown -t latex -s -o hello.pdf
kpathsea: Running mktexfmt pdflatex.fmt

The command name is C:\texlive\2020\bin\win32\mktexfmt
Running the command C:\texlive\2020\bin\win32\fmtutil-user.exe
C:\texlive\2020\bin\win32\runscript.tlu:935: C:\texlive\2020\bin\win32\runscript.tlu:858: no appropriate script or program found: fmtutil

kpathsea: Running mktexfmt pdflatex.fmt

The command name is C:\texlive\2020\bin\win32\mktexfmt
Running the command C:\texlive\2020\bin\win32\fmtutil-user.exe
C:\texlive\2020\bin\win32\runscript.tlu:935: C:\texlive\2020\bin\win32\runscript.tlu:858: no appropriate script or program found: fmtutil
Error producing PDF.
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.
I can't find the format file `pdflatex.fmt'!

란 에러가 발생하고 동작을 멈춥니다.

C:\texlive\2020\bin\win32>fmtutil-sys --all
C:\texlive\2020\bin\win32\runscript.tlu:935: C:\texlive\2020\bin\win32\runscript.tlu:858: no appropriate script or program found: fmtutil

… 해당 프로그램이 없다고 합니다. 우선 docx 파일 생성으로 턴을 종료합니다.