windows 用于窗户的 Pdflatex

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2914993/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 07:20:50  来源:igfitidea点击:

Pdflatex for windows

windowslatexcygwinpdflatex

提问by Phil

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

有谁知道如何在 Windows 中将 .tex 文件转换为 .pdf ?我尝试了 cygwin,但它说无法识别命令“pdflatex”

Thanks Philip

谢谢菲利普

采纳答案by Michael Madsen

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 MikTeXor W32TeX.

没有理由用 Cygwin 使事情复杂化。去下载并安装Windows TeX的分布-我个人使用TeX Live中,但各种其他的发行版本,如MIKTEXW32TeX

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.

如果您想在参考书目中使用 UTF-8,并且您正在使用 BibTeX,我建议使用 bibtexu 而不是常规 bibtex(因为 bibtex 实际上不支持 UTF-8)。W32TeX 站点上有一个下载。

回答by éibhear

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

如果您需要坚持使用 cygwin,请安装texlivetexlive-collection-latex

回答by zgarnog

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

以下命令在 cygwin 下对我有用。我安装了 pandoc 1.13.2 和 MiKTeX 2.9.5105 64 位。然后我跑了:

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).

这里的关键是我在 --latex-engine 键中给出了 MiKText pdflatex.exe 的完整路径,在引号中,使用 windows 路径(因为我安装的 pandoc 是 windows pandoc,它需要 windows 样式的路径才能找到资源)。

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

由于 my-file.md 的文件格式,我使用了 -f markdown_github

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

我使用了 -t latext 但这是可选的 AFAIK。

回答by Terrence Brannon

MikTex and texifywork for me under plain Windows.

MikTex 和texify在普通 Windows 下对我来说有效。

回答by Wei Shi

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

在 Cygwin 中安装tetex(和可选tetex-extra)包对我有用。