Comments (6)
编译失败一般是因为缺少宏包或者宏包版本不符。
检查工作文件夹下的main.log
的结尾部分,常见的错误是Undefined control sequence
,这个情况一般由缺少宏包或者宏名字写错引起,详情可以参考:https://www.overleaf.com/learn/latex/Errors/Undefined%20control%20sequence
from cquthesis.
之前报错缺少的package已经安过了,报错是这样的
Latexmk: Run number 4 of rule 'xelatex'
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
Latexmk: Run number 1 of rule 'xdvipdfmx'
For rule 'xdvipdfmx', running '&do_viewfile( )' ...
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+123/600 --dpi 723 ntx-Regular-tlf-sc-t1
mktexpk: don't know how to create bitmap font for ntx-Regular-tlf-sc-t1.
mktexpk: perhaps ntx-Regular-tlf-sc-t1 is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output...
No output PDF file written.
Collected error summary (may duplicate other messages):
xdvipdfmx: Command for 'xdvipdfmx' gave return code 256
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs, or warnings treated as errors.
Makefile:61: recipe for target 'main.pdf' failed
编译出了很多warning,都是字体问题
简单查了一下貌似之前有过issue
CTeX-org/forum#34
我不是很清楚LaTeX怎么处理字体问题,如果你们做过ubuntu的测试的话希望可以简单讲一下怎么配环境。
from cquthesis.
额,这个问题我这边暂时也没有好办法,抱歉。
也许你可以加群讨论下。
from cquthesis.
环境的话,目前用的是Docker版的MikTeX:https://github.com/nanmu42/miktex-docker
from cquthesis.
我更新了一下上流的MiKTeX镜像,目前编译应该是没有问题了。
你可以直接使用Docker实例完成编译。
进入实例的bash,并且挂载当前工作目录到实例中:
docker run --rm -ti -v miktex:/miktex/.miktex -v $(pwd):/miktex/work -e MIKTEX_GID=$(id -g) -e MIKTEX_UID=$(id -u) nanmu42/miktex-docker bash
然后在实例中使用make thesis
等命令。
产出的PDF位于当前工作目录。
谢谢你的反馈。
from cquthesis.
感谢回复:
问题已经解决,原因是缺少一种CJK字体ntx-Regular-tlf-sc-t1,安装newtx可以解决。
平常中文用的少,而且我texlive是自定义minimum安装,所以完全没想到还是包的问题。
Again 感谢你们的工作:D
from cquthesis.
Related Issues (20)
- LaTeX生成的pdf查重问题 HOT 2
- 模板编译不成功 HOT 6
- 支持《重庆大学博士、硕士学位论文撰写格式标准及要求(2019年修订)》 HOT 11
- cquthesis.cls样式文件编译出错(line 339,340) HOT 1
- bicaption 报错:未定义的bi-first选项 HOT 4
- 使用Overleaf得到结果,内容左右不对称,不在正中间 HOT 1
- xeCJK 3.8.3/ Tex live 2020 CJKfilltwosides环境问题
- Support for physics symbols and algorithmic diagram HOT 2
- 请问有没有PPT的模板呀 HOT 2
- 请问使用时是直接对main.tex 进行编写吗?我在WinEdt中,采用LuaLatex编译没有错误,但是不能生成PDF。 HOT 1
- 想请教下如何修改 参考文献环境,让序号左对齐? HOT 1
- 如何修改bst文件,使参考文献中的学位论文引用中去掉[出版地不祥]及英文文献的DOI链接? HOT 2
- 关于 GitHub 的 template 仓库类型 HOT 1
- 当年研究生院一楼排队检测格式的含泪点赞 HOT 1
- 文献引用的格式 HOT 1
- 在WSL下使用Windows平台的字体输出PDF的方法 HOT 1
- Writing in English only? HOT 3
- A Chinese Character 堃 HOT 11
- 参考文献中出现[S.l.: s.n.]、[S.l.] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cquthesis.