提问于:
浏览数:
1276
## 编译环境
操作系统
* [X] Windows 7/8/10
* [ ] macOS
* [ ] Linux
`若需勾选,请把[ ]改成[x]`
Tex发行版
* [ ] TexLive `年份`
* [X] MikTeX `版本号`
* [ ] CTeX
`若需勾选,请把[ ]改成[x]`
## 我的问题
我的操作步骤:
- 进入文件夹 `C:\MiKTeX 2.9\doc\generic\pgf\version-for-xetex\en\` ,内容如下:
- plots(是个文件夹)
- Makefile
- pgfmanual.tex
- 用texstudio打开pgfmanual.tex,按F5编译
报错:显示`\input`中的对应文件找不到
我也去查了 [How to compile pgfmanual](tex.stackexchange.com/questions/554281),但有点看不太懂
我下载了github上的pgf-master, 输入`texlua build.lua manual luatex`,结果报错:
```
This is LuaHBTeX, Version 1.12.0 (MiKTeX 20.10)
restricted system commands enabled.
(./pgfmanual.tex
LaTeX2e <2020-10-01> patch level 1
L3 programming layer <2020-10-05> xparse <2020-03-03>
("C:/Users/Ziyan Chen/AppData/Local/Programs/MiKTeX 2.9/tex/latex/base/ltxdoc.c
ls"
Document Class: ltxdoc 2020/10/04 v2.1b Standard LaTeX documentation class
*************************************
* Local config file ltxdoc.cfg used
*************************************
("C:/Users/Ziyan Chen/AppData/Local/Programs/MiKTeX 2.9/tex/latex/endfloat/ltxd
oc.cfg")
("C:/Users/Ziyan Chen/AppData/Local/Programs/MiKTeX 2.9/tex/latex/base/article.
cls"
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
("C:/Users/Ziyan Chen/AppData/Local/Programs/MiKTeX 2.9/tex/latex/base/size10.c
lo"))
("C:/Users/Ziyan Chen/AppData/Local/Programs/MiKTeX 2.9/tex/latex/base/doc.sty"
("C:/Users/Ziyan Chen/AppData/Local/Programs/MiKTeX 2.9/tex/latex/tools/multico
l.sty"))) (../pgfmanual-luatex.cfg
("C:/Users/Ziyan Chen/AppData/Local/Programs/MiKTeX 2.9/tex/latex/url/url.sty")
) (../../text-en/pgfmanual-en-main.tex
! LaTeX Error: File `pgfmanual-en-main-preamble.tex' not found.
Type X to quit or to proceed,
or enter new name. (Default extension: tex)
Enter file name:
! Emergency stop.
l.10 \input{pgfmanual-en-main-preamble.tex}
405 words of node memory still in use:
2 hlist, 1 rule, 1 dir, 3 kern, 1 glyph, 3 attribute, 54 glue_spec, 3 attrib
ute_list, 1 write nodes
avail lists: 2:13,3:3,4:1,5:1,7:3,9:4
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on pgfmanual.log.
build.lua:186: There were errors during run 1
```
那么该如何在windows和linux下正确编译pgfmanual?
makefile的作用是什么?该文件是否只能在linux下才能执行?