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

参考文献的引文位置 #163

Closed
Cakepoke opened this issue Nov 2, 2020 · 5 comments
Closed

参考文献的引文位置 #163

Cakepoke opened this issue Nov 2, 2020 · 5 comments

Comments

@Cakepoke
Copy link

Cakepoke commented Nov 2, 2020

你好,在咱们现有的模板中,我使用的参考文献是
bib-backend = bibtex
现在默认引文显示样式是上标形式,如
20190627100524841
但是学科一般使用的是平齐格式(如上图),请问有办法修改吗?
@stone-zeng

@zepinglee
Copy link

gbt7714 /~https://github.com/CTeX-org/gbt7714-bibtex-style/blob/b7848f3cc2280878a024d8dfaa9428ef654034f1/gbt7714.dtx#L477-L480 定义了 \bibstyle@numbers,然后就可以用 \citestyle{numbers} 将 citation 切换为 inline 的样式。

目前 fduthesis 似乎只调用了 natbib,没有 gbt7714.sty,所以还不能直接这么用。临时方案是使用 \bibpunct{[}{]}{,}{n}{,}{,} (其实就是 \bibstyle@numbers 的内容)设置。

建议将 gbt7714.sty 的代码整合到模板中,因为其中在 natbib 的基础上修正了 citation 中页码的位置,还修正了连续编号的引用(如「[2-3]」)的样式。

@Cakepoke
Copy link
Author

Cakepoke commented Nov 3, 2020

好的。那么我暂时将
\bibpunct{[}{]}{,}{n}{,}{,}
放在正文.tex的
\begin{document}
后面,这样就可以了吧?

@zepinglee
Copy link

好的。那么我暂时将
\bibpunct{[}{]}{,}{n}{,}{,}
放在正文.tex的
\begin{document}
后面,这样就可以了吧?

@Cakepoke
Copy link
Author

Cakepoke commented Nov 7, 2020

谢谢!

@Cakepoke Cakepoke closed this as completed Nov 7, 2020
@stone-zeng stone-zeng reopened this Nov 7, 2020
@stone-zeng
Copy link
Owner

后续考虑按照 @zepinglee 的评论修改,所以 reopen 了。

stone-zeng added a commit that referenced this issue Sep 20, 2021
- Direct load `gbt7714` package
- Allow using `style/cite-style` for BibTeX
- Add `\parencite`
- Do not change citation symbols to CJK punctuations
- Close #127, #162, #163
@stone-zeng stone-zeng added this to the v0.8 milestone Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants