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

TeX Live/MacTeX 2020 问题反馈(Feedback) #92

Closed
EthanDeng opened this issue Apr 10, 2020 · 14 comments
Closed

TeX Live/MacTeX 2020 问题反馈(Feedback) #92

EthanDeng opened this issue Apr 10, 2020 · 14 comments

Comments

@EthanDeng
Copy link
Member

EthanDeng commented Apr 10, 2020

大家把 TeX Live 2020 以及 MacTeX 2020 出现的问题统一发布在这里,如果要上传日志,可以通过文件或者折叠式代码贴到此处。折叠代码用法:

<details>
  <summary>点击此处展开</summary>
  内容
</details>
点击此处展开 内容
@xiaohao890809
Copy link

xiaohao890809 commented Apr 10, 2020

/usr/local/texlive/2020/texmf-dist/tex/latex/gbt7714/gbt7714.sty:63: LaTeX Erro
r: Option clash for package natbib.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.63 \RequirePackage
                    {url}
? 

@EthanDeng
Copy link
Member Author

EthanDeng commented Apr 11, 2020

! LaTeX Error: File `pgfornament.sty' not found.

已确认没有自带。

解决方案:

  1. 删除 base 的定义以及 pgfornament 宏包(改为 tikz);
  2. 删除 base 的隐藏选项;
  3. 修改章节 base 内容;
  4. 修改页眉页脚中包括 base 的部分;
  5. 删除 lstlisting 中对于 base 的高亮。

@EthanDeng
Copy link
Member Author

EthanDeng commented Apr 11, 2020

确认问题:gbt7714 宏包改动,使得对于 natbib 选项的传递出现问题。

综合考虑修改方案如下:

  • 4.x 版本,将不再使用 gbt7714 宏包以及 bibtex 支持方式,改为 biblatex。
  • next version, the three ElegantLaTeX templates WILL NOT use bibtex nor gbt7714.

@WalkerSource
Copy link

WalkerSource commented Apr 22, 2020

ElegantBook-CN版本在 TeXStudio + MiKTeX 运行后,出现如下错误:

Package gbt7714 Warning: The option "numbers" is obselete on input line 61.
! LaTeX Error: Option clash for package natbib.

@Liam0205
Copy link
Member

Package gbt7714 Warning: The option "numbers" is obselete on input line 61.

! LaTeX Error: Option clash for package natbib.

This has been answered by #92 (comment), and has been solved in: ae7a9ae#diff-e9396441dd19c88d694965e84585987fL357-R347

Please kindly have a check.

@WalkerSource
Copy link

Thank you. I got it.

@WalkerSource
Copy link

The new version still doesnot work. The latex is compiled with XeLatex +BibTex with Texstuio+ Miktex. No PDF file is produced.

The logfile is attached. Hope it can be fixed. Thank you for the work.
logfile.txt

@EthanDeng
Copy link
Member Author

EthanDeng commented Apr 22, 2020

根据 log 文件,无法辨别错误。

群里有人用 MikTeX (非 CTeX 中的 MikTeX),他们用最新版的包(没办法,这个没有版本管理)和模板没有问题。这里提供几个思路:

  1. 用命令行测试一个非常简洁的代码,没问题说明你的编辑器配置可能存在问题,如果有问题看 2;
  2. 更新 MikTeX 中的宏包至最新,特别是 ctex,更新之后重复 1,有问题继续看 3。
  3. 加群(692108391)提供更多、更及时的信息,和 MikTeX 用户交流,如果解决不了请看 4。
  4. 删除 ElegantBook,并取关 ElegantLaTeX。

@WalkerSource
Copy link

I've updated the Miktex to the latest version. The new version still doesnot work. The latex is compiled with XeLatex +BibTex with Texstuio+ Miktex. No PDF file is produced.

This time, lines 151 and 23 are reported with errors.

The logfile is attached. Hope it can be fixed. Thank you for the work.

logfile.txt

@EthanDeng
Copy link
Member Author

FZShuSong-Z01 字体是选项 chinesefont=founder 所调用的字体,你如果没有这个字体,不要使用这个选项,见 ElegantBook 说明文档 3.3.1 部分。

QQ截图20200423103942

使用前请仔细阅读说明。

@WalkerSource
Copy link

WalkerSource commented Apr 24, 2020

我修改完毕,可以在 TeXStudio + MikTeX 上运行了。我自行到方正字体主页下载了字体,但是简体字体的名称后都有一个 S 字母。所以 .cls 文档中的字体名称都要修正,添加一个 S。如下,

\setCJKmainfont[BoldFont={FZHei-B01S},ItalicFont={FZKai-Z03S}]{FZShuSong-Z01S}
\setCJKsansfont[BoldFont={FZHei-B01S},ItalicFont={FZHei-B01S}]{FZHei-B01S}
\setCJKmonofont[BoldFont={FZHei-B01S},ItalicFont={FZHei-B01S}]{FZFangSong-Z02S}
\setCJKfamilyfont{zhsong}{FZShuSong-Z01S}
\setCJKfamilyfont{zhhei}{FZHei-B01S}
\setCJKfamilyfont{zhkai}{FZKai-Z03S}
\setCJKfamilyfont{zhfs}{FZFangSong-Z02S}

接着只要确保方正字体的名称(打开字体文档顶部可以看到),且是全部用户安装字体,那么再次重启电脑后,重新打开 TeXStudio 后,采用 XeLaTeX + BibTeX 编辑,就可以获得正确运行了。谢谢你们给大家提供了这么漂亮的模板,也让我学习了新知识。谢谢。

@ziquanyang
Copy link

/usr/local/texlive/2020/texmf-dist/tex/latex/gbt7714/gbt7714.sty:63: LaTeX Erro
r: Option clash for package natbib.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.63 \RequirePackage
                    {url}
? 

我也是这样,在TeXworks编译的时候停止输入return能继续编译,用TeXstudio编译则报错。

@sikouhjw
Copy link
Contributor

sikouhjw commented Dec 2, 2020

/usr/local/texlive/2020/texmf-dist/tex/latex/gbt7714/gbt7714.sty:63: LaTeX Erro
r: Option clash for package natbib.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.63 \RequirePackage
                    {url}
? 

我也是这样,在TeXworks编译的时候停止输入return能继续编译,用TeXstudio编译则报错。

升级全部宏包

@ziquanyang
Copy link

/usr/local/texlive/2020/texmf-dist/tex/latex/gbt7714/gbt7714.sty:63: LaTeX Erro
r: Option clash for package natbib.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.63 \RequirePackage
                    {url}
? 

我也是这样,在TeXworks编译的时候停止输入return能继续编译,用TeXstudio编译则报错。

升级全部宏包

我试试~~

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

No branches or pull requests

6 participants