Pdflatex for windows

自古美人都是妖i 提交于 2019-12-21 03:09:03

问题


Does anyone know how to convert .tex files to .pdf in windows? I tried cygwin but it said the command "pdflatex" was not recognised

Thanks Philip


回答1:


There's no reason to complicate things with Cygwin. Go download and install a TeX distribution for Windows - I personally use TeX Live, but various other distributions are available, such as MikTeX or W32TeX.

If you want to use UTF-8 for your bibliography, and you're using BibTeX, I recommend using bibtexu instead of the regular bibtex (since bibtex doesn't actually support UTF-8). There's a download on the W32TeX site.




回答2:


If you need to stick with cygwin, install texlive and texlive-collection-latex




回答3:


The following command worked for me, under cygwin. I installed pandoc 1.13.2 and MiKTeX 2.9.5105 64-bit. Then I ran:

pandoc -s \
--latex-engine='C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe'  \
-f markdown_github -t latex \
"my-file.md" -o "my-file.pdf"

The key here is that I gave the full path for MiKText's pdflatex.exe in the --latex-engine key, in quotes, using the windows path (as the pandoc I installed is the windows pandoc, it requires windows-style paths to find resources).

I used -f markdown_github because of the file format of my-file.md

I used -t latext but that's optional AFAIK.




回答4:


Installing tetex(and optionally tetex-extra) package in Cygwin worked for me.




回答5:


MikTex and texify work for me under plain Windows.



来源:https://stackoverflow.com/questions/2914993/pdflatex-for-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!