Comments (8)
from gbt7714-bibtex-style.
若无法解决,可发mwe给我或作者。
from gbt7714-bibtex-style.
使用 \usepackage[sectionbib]{chapterbib}
后需要给 natbib
传递选项 sectionbib
,可以通过 \usepackage[sectionbib]{gbt7714}
from gbt7714-bibtex-style.
使用
\usepackage[sectionbib]{chapterbib}
后需要给natbib
传递选项sectionbib
,可以通过\usepackage[sectionbib]{gbt7714}
@zepinglee
I tried to do as you proposed but failed. Can you show me in the attached file?
Thank you a lot.
sectionbib.tar.gz
from gbt7714-bibtex-style.
@CSQ223
根据 chapterbib
宏包文档,你需要在每一个子文件中使用一次 \bibliographystyle
。
具体到你的例子,可以这么做:
- 准备部分
- 执行
xelatex review
- 在生成的
review.aux
中搜索\bibstyle
,搜到\bibstyle{gbt7714-unsrt}
,复制参数gbt7714-unsrt
(这样省去了人工判断gbt7714
加载了哪个 bst 文件的功夫) - 把
\bibliographystyle{gbt7714-unsrt}
粘贴到sec1.tex
和sec2.tex
- 如果以后更改了
gbt7714
宏包的选项,就要重复上述三个步骤
- 执行
- 执行部分
- 执行一次
xelatex review
- 进入 body 文件夹,分别执行
bibtex sec1
和bibtex sec2
- 回到主目录,执行两次
xelatex review
- 执行一次
单独使用 gbt7714
宏包时,它会根据传入的宏包选项,在主文件中自动加载对应的 bst 文件。这是 gbt7714
宏包文档中明确指出「不需要使用 \bibliographystyle
」的原因。但以 gbt7714
目前的实现,在与 chapterbib
配合使用时,仍需要用户在子文件中手动使用 \bibliographystyle
。
相关文档:texdoc chapterbib
, Introduction
The main point is to allow you to use BibTeX: Each included file should have its own
\bibliographystyle
and\bibliography
commands, and you should run bibtex on each included file separately rather than on the main or root file.
from gbt7714-bibtex-style.
我在分支 https://github.com/muzimuzhi/gbt7714-bibtex-style/tree/support-chapterbib 做了一些修改:
- 宏包加载时不再使用
\bibliographystyle{<bst file>}
,而是把<bst file>
储存在\gbt@bib@stylename
中 - 每次使用
\bibliography{<bib file>}
都额外执行\bibliography{\gbt@bib@stylename}
,向 aux 文件写入\bibstyle{<bst file>}
信息
总体,兼容 gbt7714 宏包现有功能不变,简化了与 chapterbib 宏包的搭配使用(免去了在子文件中手动使用 \bibliographystyle
)。
注意:目前的实现依赖 \bibliography
定义中直接包含 \immediate\write\@auxout
。
from gbt7714-bibtex-style.
@CSQ223
根据chapterbib
宏包文档,你需要在每一个子文件中使用一次\bibliographystyle
。具体到你的例子,可以这么做:
准备部分
- 执行
xelatex review
- 在生成的
review.aux
中搜索\bibstyle
,搜到\bibstyle{gbt7714-unsrt}
,复制参数gbt7714-unsrt
(这样省去了人工判断gbt7714
加载了哪个 bst 文件的功夫)- 把
\bibliographystyle{gbt7714-unsrt}
粘贴到sec1.tex
和sec2.tex
- 如果以后更改了
gbt7714
宏包的选项,就要重复上述三个步骤执行部分
- 执行一次
xelatex review
- 进入 body 文件夹,分别执行
bibtex sec1
和bibtex sec2
- 回到主目录,执行两次
xelatex review
单独使用
gbt7714
宏包时,它会根据传入的宏包选项,在主文件中自动加载对应的 bst 文件。这是gbt7714
宏包文档中明确指出「不需要使用\bibliographystyle
」的原因。但以gbt7714
目前的实现,在与chapterbib
配合使用时,仍需要用户在子文件中手动使用\bibliographystyle
。相关文档:
texdoc chapterbib
, IntroductionThe main point is to allow you to use BibTeX: Each included file should have its own
\bibliographystyle
and\bibliography
commands, and you should run bibtex on each included file separately rather than on the main or root file.
@muzimuzhi 提供的解决方案非常正确。
另外 -unsrt
和 -plain
两个后缀的命名有些让人困惑,在下个版本中会换成 -numerical
和 -author-year
,见 #49 (comment) 。
from gbt7714-bibtex-style.
另外
-unsrt
和-plain
两个后缀的命名有些让人困惑
同意
from gbt7714-bibtex-style.
Related Issues (20)
- 请问\&字符显示乱码如何解决 HOT 2
- 更新文档中的第七节对参数的描述, 以及表2中的参数列表 HOT 2
- gbt7714-numerical 参考文献引用如何使用平标,并且添加方括号 HOT 5
- arXiv 文献的 `doi` 没有被输出 HOT 2
- 参考文献如何正确插入“@standard”格式?(GB/T 7714—2015) HOT 4
- 如何在目录后面增加图索引以及表索引? HOT 3
- 章节间距不知如何调整 HOT 1
- 一直报错是怎么回事呢?!Latex Error:Missing \begin{document} HOT 5
- 参考文献显示出不来? HOT 4
- 我想要参考文献中作者的首字母大写,而不是所有字母大写 HOT 6
- 对“参考文献”进行章节编号 HOT 1
- 参考文献无法自动排序 HOT 2
- 将url与论文期刊链接到一起呢 HOT 5
- 不能处理西文姓氏中含如 `é` 到 `É` 的大小写转换 HOT 3
- 引用顺序 HOT 2
- 引用顺序问题 HOT 19
- 能否修改bst文件,使参考文献中不含doi和url HOT 2
- 关于参考文献样式gbt7714-author-year出版年的显示位置错误的问题 HOT 3
- 如何将参考文献放在脚注中 HOT 1
- 你好,我想问一下,有的文章没有发表,我想用arxiv结尾,但好像出现问题了 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gbt7714-bibtex-style.