TongjiThesis icon indicating copy to clipboard operation
TongjiThesis copied to clipboard

tex无法编译

Open StevenYuCao opened this issue 5 years ago • 24 comments

您好,我用windows的WinEdt和mac 的texshop都编译不了这个tex,弄了好久,怎么办呀?能否帮帮忙,谢谢

StevenYuCao avatar Jun 04 '19 04:06 StevenYuCao

Please give more information. What is the error message? Which tex did you use?

marquistj13 avatar Jun 04 '19 06:06 marquistj13

Also make sure you see README carefully.

marquistj13 avatar Jun 04 '19 06:06 marquistj13

We usually do not care which editor you use. The editor is not the problem.

marquistj13 avatar Jun 04 '19 06:06 marquistj13

感谢您的回复,希望收到您的帮助。

我认真读了readme,用的是2018年11月29日的Sourcecode.zip文件,

在windows上,我用的是WinEdt,直接打开thesis.tex文件,editor提示 Error Reading"C:\Users\禺 \Desktop\TongjiThesis-2.0.7\TongjiTh..\thesis.tex"., 之后我在editor中以:UTF-8方式可以打开thesis.tex文件,用Xelatex编译提示错误 257 \Process0ptions* ,用Latex编译提示错误 Type x to quit or <RETUN> to proceed, or enter new name.(Default extension: sty) Enter file name:

在mac上,我用texshop中的Xelatex编译,开始提示缺少华文黑体,我按照readme的方式添加了字体,再次运行时提示错误

/usr/local/texlive/2018/texmf-dist/tex/latex/biblatex/

biblatex. sty: 13809 : Packa

ge xkeyval Error: gbtitlelink' undefined in families

'b 2 xeoptepre'.

See the xkeyval package documentation for explanation.

Type H for immed iate help.

...

1.13809 Iblx@processoptions

?

在2019年6月4日 02:07,Marquis[email protected] 写道:

Please give more information. What is the error message? Which tex did you use?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

StevenYuCao avatar Jun 04 '19 18:06 StevenYuCao

更新一下,biblatex-gb7714-2015

或者

下载样式文件到当前文件夹。

hushidong avatar Jun 04 '19 22:06 hushidong

您好,按readme,这个 biblatex-gb7714-2015 文件夹我在windows和mac中找不到呀,怎么办? 第二个方法中的样式文件是哪个呀? 期待回复

在2019年6月4日 18:38,[email protected][email protected] 写道:

更新一下,biblatex-gb7714-2015

或者

下载样式文件到当前文件夹。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

StevenYuCao avatar Jun 05 '19 01:06 StevenYuCao

您好,我找不到biblatex-gb7714-2015这个文件夹,但我下载了一个,应该把他放到哪个文件下下面呀?谢谢

在2019年6月4日 18:38,[email protected][email protected] 写道:

更新一下,biblatex-gb7714-2015

或者

下载样式文件到当前文件夹。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

StevenYuCao avatar Jun 05 '19 01:06 StevenYuCao

Please see README more carefully. As to the above response, you have many options to solve the problem:

  1. download the latest code, throw away 2018年11月29日的Sourcecode.zip文件
  2. the author of biblatex-gb7714-2015 @hushidong told you to update biblatex-gb7714-2015, you can update the package via your package manager, or manaully download them. Of course, if you see README more carefully, you can find that the simpler way is to use Texlive 2019.
  3. On windows, the cause may be that your WinEdt version is too old and your tex file directory contains chinese characters(不要放在中文路径下,大兄弟). So let's control the variable and compile the tex file in the cmd terminal. Just put the source code in D:/, cd to your source directory, and type xelatex these.tex in your terminal.
  4. On mac, just update biblatex-gb7714-2015 or simply update your texshop.

Good luck.

marquistj13 avatar Jun 05 '19 02:06 marquistj13

样式文件就是*.bbx 和*.cbx文件。

下载地址https://github.com/hushidong/biblatex-gb7714-2015

hushidong avatar Jun 05 '19 04:06 hushidong

texlive 2018 我也没编译成功,后来想想毕业都十五年了,算了,懒得试了。

chennanzhang avatar Jun 05 '19 05:06 chennanzhang

什么情况? @chennanzhang , 不应该的,你下一下bbx,和cbx,覆盖texlive中的或者放目录下,不会有啥问题呀。我自己也用的texlive2018,win7

hushidong avatar Jun 05 '19 06:06 hushidong

@chennanzhang @hushidong texlive2018 自带的 biblatex-gb7714-2015 版本太低,需要更新 biblatex-gb7714-2015,或者直接安装 texlive2019

marquistj13 avatar Jun 05 '19 07:06 marquistj13

@marquistj13 ,嗯。我特意跑了下,win7,texlive 2018,没啥问题,当然我把bbx和cbx放目录下了。另外发现ref.bib中有些小bi笔误,可以改一下。

jdatamodels2003论文,作者j, cunge中的逗号应改为点

coldsources文献,inbook类型应改为book,因为其中没有体现inbook类型的信息。

hushidong avatar Jun 05 '19 07:06 hushidong

@hushidong 很懒,不想改了。:stuck_out_tongue_winking_eye: 这些参考文献好多都是从老模板抄过来的,现在很少手动写参考文献了吧,都是直接生成的。

marquistj13 avatar Jun 05 '19 08:06 marquistj13

嗯嗯 谢谢你提供了这么多方法,弄了好几天头都疼了也没弄好,从数学系同学那要了个模板,用pdflatex可以编译成功,他们的模板应该是在你这个基础上改的,再次感谢~

在2019年6月4日 22:31,Marquis[email protected] 写道:

Please see README more carefully. As to the above response, you have many options to solve the problem:

download the latest code, throw away 2018年11月29日的Sourcecode.zip文件 the author of biblatex-gb7714-2015@hushidong told you to update biblatex-gb7714-2015, you can update the package via your package manager, or manaully download them. ** Of course, if you see README more carefully, you can find that the simpler way is to use Texlive 2019.** On windows, the cause may be that your WinEdt version is too old and your tex file directory contains chinese characters(不要放在中文路径下,大兄弟). So let's control the variable and compile the tex file in the cmd terminal. Just put the source code in D:/, cd to your source directory, and type xelatex these.tex in your terminal. On mac, just update biblatex-gb7714-2015 or simply update your texshop.

Good luck.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

StevenYuCao avatar Jun 05 '19 12:06 StevenYuCao

您好, 我下载好了之后直接在Mac进行的编译,没有修改任何东西,一直报出下面的错误,但pdf是可以生成的,不知道这是为什么。 [no file]:29: Undefined control sequence. [\makecover]

tianchiTJ avatar Sep 18 '19 18:09 tianchiTJ

不会吧?

  1. 生成的pdf有没有异常(cover到底生成了没有)?
  2. 你用的什么tex? 是xelatex么?

您好, 我下载好了之后直接在Mac进行的编译,没有修改任何东西,一直报出下面的错误,但pdf是可以生成的,不知道这是为什么。 [no file]:29: Undefined control sequence. [\makecover]

marquistj13 avatar Sep 19 '19 00:09 marquistj13

生成的pdf应该是正常的,有cover。我用的是xelatex,但就是一直有 undefined sequence control (makecover)

tianchiTJ avatar Sep 19 '19 01:09 tianchiTJ

@tianchiTJ 这个到底是不是error呀,是error的话,pdf是生成不了的,把出错信息多截图一点吧

marquistj13 avatar Sep 19 '19 02:09 marquistj13

Screen Shot 2019-09-18 at 7 53 47 PM

tianchiTJ avatar Sep 19 '19 02:09 tianchiTJ

肯定是error,只不过编译模式用了 -interaction=nonstopmode 不停止模式,而这个错误没给后面带来太大的影响。

------------------ 原始邮件 ------------------ 发件人: "Marquis"[email protected]; 发送时间: 2019年9月19日(星期四) 上午10:44 收件人: "marquistj13/TongjiThesis"[email protected]; 抄送: "拿了桔子跑啊"[email protected];"Mention"[email protected]; 主题: Re: [marquistj13/TongjiThesis] tex无法编译 (#22)

@tianchiTJ 这个到底是不是error呀,是error的话,pdf是生成不了的,把出错信息多截图一点吧

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

chennanzhang avatar Sep 19 '19 02:09 chennanzhang

这个会有什么影响吗,各位大神有没有什么解决的办法。小弟刚接触latex不久,不是非常熟悉,求指导。如果我把\makecover这行注释掉的话就没有error,然后封面也就没了。现在这个不知道怎么处理。

tianchiTJ avatar Sep 19 '19 03:09 tianchiTJ

应该是缺隶书字体,ctex 宏包在mac 下没有定义隶书字体命令 \lishu,安装个隶书字体,定义好\lishu 应该就行了。话说这种用得很少的字体就做个图片算了。

chennanzhang avatar Sep 19 '19 04:09 chennanzhang

导言区加上一句 \let\lishu\relax 试试编译是不是正常了。

chennanzhang avatar Sep 19 '19 04:09 chennanzhang