CSUcse / CSUthesis

中南大学研究生学位论文LaTex模版(博士和硕士)
https://github.com/CSUcse/CSUthesis
151 stars 37 forks source link

使用在线平台ShareLatex无法编译 #32

Open wolfbolin opened 1 year ago

wolfbolin commented 1 year ago

使用Overleaf的自部署版本,已经安装了中文字体,但是无法编译,才疏学浅不知道问题在那里。 已修改编译选项为XeLaTeX

提示

This compile didn’t produce a PDF. This can happen if:
There is an unrecoverable LaTeX error. If there are LaTeX errors shown below or in the raw logs, please try to fix them and compile again.
The document environment contains no content. If it’s empty, please add some content and compile again.
This project contains a file called output.pdf. If that file exists, please rename it and compile again.

输出

Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 7 Jan. 2023. Version 4.79.
Latexmk: Changing directory to '/var/lib/sharelatex/data/compiles/6409dfe74e655f009869ff11-6347e0947fd2ec00a73b11ba/'
Latexmk: applying rule 'xelatex'...
Rule 'xelatex':  Reasons for rerun
Changed files or newly in use/created:
  csuthesis_main.tex
  output.aux
Category 'changed_user':
  csuthesis_main.tex

------------
Run number 1 of rule 'xelatex'
------------
------------
Running 'xelatex -no-pdf -synctex=1 -interaction=batchmode -recorder --jobname="output"  "csuthesis_main.tex"'
------------
Latexmk: Getting log file 'output.log'
Latexmk: applying rule 'xdvipdfmx'...
Rule 'xdvipdfmx':  Reasons for rerun
Category 'changed_source_rules':
  xelatex

------------
Run number 1 of rule 'xdvipdfmx'
------------
------------
Running 'xdvipdfmx -E -o "output.pdf"  "output.xdv"'
------------
Latexmk: Errors, in force_mode: so I tried finishing targets
Collected error summary (may duplicate other messages):
  xdvipdfmx: Command for 'xdvipdfmx' gave return code 256
  xelatex: Run of rule 'xelatex' gave a non-zero error code
Latexmk: Undoing directory change
wolfbolin commented 1 year ago

Fix code at #33

wf395962475 commented 1 year ago

使用Overleaf的自部署版本,已经安装了中文字体,但是无法编译,才疏学浅不知道问题在那里。 已修改编译选项为XeLaTeX

提示

This compile didn’t produce a PDF. This can happen if:
There is an unrecoverable LaTeX error. If there are LaTeX errors shown below or in the raw logs, please try to fix them and compile again.
The document environment contains no content. If it’s empty, please add some content and compile again.
This project contains a file called output.pdf. If that file exists, please rename it and compile again.

输出

Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 7 Jan. 2023. Version 4.79.
Latexmk: Changing directory to '/var/lib/sharelatex/data/compiles/6409dfe74e655f009869ff11-6347e0947fd2ec00a73b11ba/'
Latexmk: applying rule 'xelatex'...
Rule 'xelatex':  Reasons for rerun
Changed files or newly in use/created:
  csuthesis_main.tex
  output.aux
Category 'changed_user':
  csuthesis_main.tex

------------
Run number 1 of rule 'xelatex'
------------
------------
Running 'xelatex -no-pdf -synctex=1 -interaction=batchmode -recorder --jobname="output"  "csuthesis_main.tex"'
------------
Latexmk: Getting log file 'output.log'
Latexmk: applying rule 'xdvipdfmx'...
Rule 'xdvipdfmx':  Reasons for rerun
Category 'changed_source_rules':
  xelatex

------------
Run number 1 of rule 'xdvipdfmx'
------------
------------
Running 'xdvipdfmx -E -o "output.pdf"  "output.xdv"'
------------
Latexmk: Errors, in force_mode: so I tried finishing targets
Collected error summary (may duplicate other messages):
  xdvipdfmx: Command for 'xdvipdfmx' gave return code 256
  xelatex: Run of rule 'xelatex' gave a non-zero error code
Latexmk: Undoing directory change

Open Overleaf->Menu->Settings->Compiler=XeLaTex.

wolfbolin commented 1 year ago

@wf395962475 #这是不可行的,Overleaf对于XeLaTex的原生编译具有缺陷,具体可参考官方仓库中的Issue,解决方案参考 #33

https://github.com/overleaf/overleaf/issues/837

wf395962475 commented 1 year ago

ok,等我有时间修订一下。一般博士和硕士论文还是本地编译比较好,因为图需要大量重复迭代,网页版的还是要不方便。另外。4月初可能学校会下发新的论文撰写要求,到时候你留意一下。