Coder Social home page Coder Social logo

Comments (6)

nanmu42 avatar nanmu42 commented on May 20, 2024

编译失败一般是因为缺少宏包或者宏包版本不符。

检查工作文件夹下的main.log的结尾部分,常见的错误是Undefined control sequence,这个情况一般由缺少宏包或者宏名字写错引起,详情可以参考:https://www.overleaf.com/learn/latex/Errors/Undefined%20control%20sequence

from cquthesis.

EigenSolver avatar EigenSolver commented on May 20, 2024

之前报错缺少的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.

nanmu42 avatar nanmu42 commented on May 20, 2024

额,这个问题我这边暂时也没有好办法,抱歉。
也许你可以加群讨论下。

from cquthesis.

nanmu42 avatar nanmu42 commented on May 20, 2024

环境的话,目前用的是Docker版的MikTeX:https://github.com/nanmu42/miktex-docker

from cquthesis.

nanmu42 avatar nanmu42 commented on May 20, 2024

我更新了一下上流的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.

EigenSolver avatar EigenSolver commented on May 20, 2024

感谢回复:
问题已经解决,原因是缺少一种CJK字体ntx-Regular-tlf-sc-t1,安装newtx可以解决。
平常中文用的少,而且我texlive是自定义minimum安装,所以完全没想到还是包的问题。

Again 感谢你们的工作:D

from cquthesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.