回答
没有理由的事情与Cygwin的复杂化。去下载并安装适用于Windows的TeX发行版 - 我个人使用TeX Live,但可以使用各种其他发行版,例如MikTeX或W32TeX。
如果你想为你的参考书目使用UTF-8,并且你使用的是BibTeX,我推荐你使用bibtexu而不是常规bibtex(因为bibtex实际上不支持UTF-8)。在W32TeX site上有一个下载。
在Cygwin中为我工作的安装tetex
(和可选的tetex-extra
)包。
如果你需要坚持的cygwin,安装的texlive和的texlive收集乳胶
我安装了这些软件包,但我遇到了同样的问题。 – 2014-10-16 20:04:46
安装'texlive-collection-latex'后,它会在命令行中提供'pdflatex',但是pandoc仍然抱怨'pdflatex'不存在。 – CMCDragonkai 2015-10-26 18:54:40
@CMCDragonkai [This](http://superuser.com/a/1053281/)对超级用户的回答应该可能解决这个问题 – tjalling 2017-01-04 15:20:40
下面的命令为我工作,在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"
这里的关键是,我给了MiKText公司在--latex发动机键,在报价pdflatex.exe的完整路径,使用Windows路径(如我安装了pandoc是Windows pandoc,它需要Windows风格的路径才能找到资源)。
我使用-f markdown_github因为my-file.md
的文件格式,我用-t latext的,但是这是可选的AFAIK。
- 1. 使用pdflatex时,从gVim的
- 2. pdflatex文件到html
- 3. pdflatex和shell脚本
- 4. ocaml Unix.system调用到pdflatex
- 5. Windows For For with *令牌
- 6. 页边距改变pdflatex
- 7. MySQL 5.5 for windows?
- 8. Qt for windows CE
- 9. ksh ide for windows?
- 10. Git for Windows
- 11. Silverlight for windows embedded
- 12. OpenAcc for Windows
- 13. .NET for Windows 7
- 14. Wget for Windows 10
- 15. GLOB FOR WINDOWS 10
- 16. diff -r for windows?
- 17. dokan sshfs for windows
- 18. DAL for Windows Service
- 19. Regex.h for windows
- 20. python gstreamer for windows
- 21. Suhosin for Windows
- 22. Aspell 0.6 for Windows
- 23. Makefile For Windows在Windows上
- 24. SourceTree for Windows not working
- 25. ios sdk for windows xp
- 26. fnmatch for windows in C?
- 27. webkit-sharp for windows包
- 28. LeakDiag for 64-bit Windows?
- 29. Delphi for windows and linux
- 30. Korn-Shell for Windows 7?
我已经使用了MikTeX,它的效果很好。不过,我已经尝试过多年安装它三次,并且只有一次实际工作。我没有足够的智慧(或足够的动机)找出为什么不工作的安装不起作用。 – 2010-05-26 16:51:31
是的,安装过去很困难。谢天谢地,便携式MikTeX现在存在(http://miktex.org/portable/about)。它的目的是从随身携带的USB棒上运行,但作为一种副作用,它的安装和工作方式也与以前的方法一样完全无关紧要。 – 2010-05-26 17:12:40
我在Windows 7中安装TeX Live几个小时,但遇到了各种各样的错误,放弃了,并且轻松地安装了MikTeX(常规的64位版本)。 – 2013-04-19 11:38:06