Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu18.04.3 TexLive 2019 编译失败 #49

Closed
EigenSolver opened this issue Dec 4, 2019 · 6 comments
Closed

Ubuntu18.04.3 TexLive 2019 编译失败 #49

EigenSolver opened this issue Dec 4, 2019 · 6 comments
Assignees
Labels
QA 常见问题

Comments

@EigenSolver
Copy link
Contributor

latex cquthesis.ins
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./cquthesis.ins
LaTeX2e <2019-10-01> patch level 1
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/docstrip.tex
Utility: `docstrip' 2.5g <2018/05/03>
English documentation    <2018/05/03>

**********************************************************
* This program converts documented macro-files into fast *
* loadable files by stripping off (nearly) all comments! *
**********************************************************

********************************************************
* No Configuration file found, using default settings. *
********************************************************

)

Generating file(s) ./cquthesis.cls ./cquthesis.cfg ./dtx-style.sty 

Processing file cquthesis.dtx (cls) -> cquthesis.cls
                              (cfg) -> cquthesis.cfg
                              (dtx-style) -> dtx-style.sty
File cquthesis.dtx ended by \endinput.
Lines  processed: 2517
Comments removed: 1288
Comments  passed: 0
Codelines passed: 1188

********************CQUThesis INFO******************
*
* To finish the installation you have to move the following
* files into a directory searched by TeX:
*
* The recommended directory is TEXMF/tex/latex/cquthesis
*
*   cquthesis.cls
*   cquthesis.cfg
*   cqunumerical.sty
*   cqunumerical.bst
*
* To produce the documentation please run these command:
*  xelatex cquthesis.dtx
*  makeindex -s gind.ist -o cquthesis.ind cquthesis.idx
*  makeindex -s gglo.ist -o cquthesis.gls cquthesis.glo
*  xelatex cquthesis.dtx
*  xelatex cquthesis.dtx
*
* Run these command will get you a typeseting example:
*  xelatex main.tex
*  bibtex main.tex
*  xelatex main.tex
*  xelatex main.tex
*
* ============== Tips =================
* Check makewin.bat and/or .Makefile for a *smoother* way to compile. :) 
*
* For further info, please go to:
*   https://github.com/nanmu42/CQUThesis
*
* Happy TeXing!
***********************************************************
 )
No pages of output.
Transcript written on cquthesis.log.
latexmk -xelatex -quiet -halt-on-error -interaction=nonstopmode main
Latexmk: Run number 1 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: Log file says no output from latex
Latexmk: For rule 'xelatex', no output was made
Collected error summary (may duplicate other messages):
  xelatex: Command for 'xelatex' gave return code 1
      Refer to 'main.log' for details
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
make: *** [main.pdf] Error 12
@nanmu42
Copy link
Owner

nanmu42 commented Dec 5, 2019

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

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

@nanmu42 nanmu42 added the QA 常见问题 label Dec 5, 2019
@nanmu42 nanmu42 closed this as completed Dec 6, 2019
@EigenSolver
Copy link
Contributor Author

EigenSolver commented Dec 8, 2019

之前报错缺少的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的测试的话希望可以简单讲一下怎么配环境。

@nanmu42
Copy link
Owner

nanmu42 commented Dec 10, 2019

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

@nanmu42 nanmu42 reopened this Dec 10, 2019
@nanmu42
Copy link
Owner

nanmu42 commented Dec 10, 2019

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

@nanmu42
Copy link
Owner

nanmu42 commented Dec 10, 2019

我更新了一下上流的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位于当前工作目录。

谢谢你的反馈。

@nanmu42 nanmu42 closed this as completed Dec 10, 2019
@nanmu42 nanmu42 self-assigned this Dec 10, 2019
@EigenSolver
Copy link
Contributor Author

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

Again 感谢你们的工作:D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA 常见问题
Projects
None yet
Development

No branches or pull requests

2 participants