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

参考文献编译错误 #23

Closed
michuanhaohao opened this issue Nov 23, 2019 · 15 comments
Closed

参考文献编译错误 #23

michuanhaohao opened this issue Nov 23, 2019 · 15 comments

Comments

@michuanhaohao
Copy link

image

您好,感谢您的工作。我在编译参考文献的时候,使用\cite命令无法编译得到数字[1] [2] [3]之类的,用的是windows的texlive2019和tex studio客户端,直接用编译按钮编译,bib编译器已经选择为biber。

@TheNetAdmin
Copy link
Owner

尝试使用命令行直接编译呢?

下载一个新代码库,用命令行进入代码目录,用latexmk -xelatex -outdir=out zjuthesis,然后在新生成的out目录下找编译得到的pdf看一下。

@michuanhaohao
Copy link
Author

尝试使用命令行直接编译呢?

下载一个新代码库,用命令行进入代码目录,用latexmk -xelatex -outdir=out zjuthesis,然后在新生成的out目录下找编译得到的pdf看一下。

用命令就可以,真的神奇,但是生成的格式是错误的, 有一些字符不认识,然后名字也是大写的。应该是写到ref.bib里面是吧

image

@inproceedings{kissme2012,
title={Large scale metric learning from equivalence constraints},
author={Koestinger, Martin and Hirzer, Martin and Wohlhart, Paul and Roth, Peter M and Bischof, Horst},
booktitle={2012 IEEE conference on computer vision and pattern recognition},
pages={2288--2295},
year={2012},
organization={IEEE}
}

@TheNetAdmin
Copy link
Owner

TheNetAdmin commented Nov 23, 2019

那应该是TexStudio没有正确用Biber编译,可能要额外设置一下。我很久没用TexStudio了所以不太清楚怎么设置。

关于格式的问题,可能要请教一下 @hushidong

研究生院要求的引用格式是GB/T 7714-2005,所以我这里是这样设置的:

\usepackage[style=numeric,
sorting=none,
bibstyle=gb7714-2015,
citestyle=gb7714-2015]{biblatex}

@michuanhaohao
Copy link
Author

好的,非常感谢。

tex studio已经搞定了 ,如果有人遇到问题,参考下面这幅图,F8 F6 F6 三连编译。

image

格式问题我在研究下

@hushidong
Copy link

文献表格式中,姓名大写,出版项缺失的问题是有规定的。当然你自己想要修改也是可以的,请参考biblatex-gb7714-2015.pdf中的gbpub
和gbnamefmt
两个选项

@TheNetAdmin
Copy link
Owner

问题似乎已经解决了,如有其它问题请另开issue讨论吧

@TheNetAdmin TheNetAdmin pinned this issue Dec 5, 2019
@TheNetAdmin TheNetAdmin unpinned this issue Dec 29, 2019
@AtomicVar
Copy link

给新来的同学一个快速参考:如果想参考文献英文名不是全大写,在config/packages.tex里修改这一行:

加上gbnamefmt=lowercase
捕获

@TheNetAdmin TheNetAdmin pinned this issue Mar 22, 2020
@zh0ngtian
Copy link

那应该是TexStudio没有正确用Biber编译,可能要额外设置一下。我很久没用TexStudio了所以不太清楚怎么设置。

关于格式的问题,可能要请教一下 @hushidong

研究生院要求的引用格式是GB/T 7714-2005,所以我这里是这样设置的:

\usepackage[style=numeric,
sorting=none,
bibstyle=gb7714-2015,
citestyle=gb7714-2015]{biblatex}

你好,我尝试把这段代码中的 2015 改为 2005 ,编译后无法显示参考文献,请问如果想用 GB/T 7714-2005 格式的参考文件,到底应该如何设置呢?

@TheNetAdmin
Copy link
Owner

Google一下有如下结果,需要手动安装并修改模板

https://github.com/Haixing-Hu/GBT7714-2005-BibTeX-Style

@hushidong
Copy link

2015和2005没有大的差别的,特别是没有格式方面的差异,所以普通用户根本不会感觉其差异的,所以用2015就可以了。可以看一下标准文档本身,里头有详细说明。

@hushidong
Copy link

如果不需要doi那么加上一个选项,doi=false

@zh0ngtian
Copy link

2015和2005没有大的差别的,特别是没有格式方面的差异,所以普通用户根本不会感觉其差异的,所以用2015就可以了。可以看一下标准文档本身,里头有详细说明。

刚才看了下,好像是这样,谢谢!

@namenotexist
Copy link

请问vscode+texlive使用这个模板的教程有吗

@HelloTheWold
Copy link

同问 vscode+texlive 出现这个问题应该怎么设置?

@TheNetAdmin
Copy link
Owner

用命令行重新编译,或者参考README里的vscode设置教程

Repository owner locked as resolved and limited conversation to collaborators Nov 25, 2020
@TheNetAdmin TheNetAdmin unpinned this issue Nov 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants