We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ustcthesis.pdf
我根据《ustcthesisdoc》的提示,在ustcsetup里面添加了 cite-style = inline,想实现文内引用文献形式为“文献[1]”这样的与正文平排格式,但是出来的效果还是上标样式,请问是怎么回事?另外的问题是 cite-style = inline 是控制我选用的 ustcthesis-numerical.bst 的哪个函数?
截图:
复现上述问题的代码:
\ustcsetup{ cite-style = inline, } \usepackage[sort]{natbib} \bibliographystyle{ustcthesis-numerical}
The text was updated successfully, but these errors were encountered:
我能复现这个问题。似乎是在 \begin{document} 前设置 cite-style = inline 无效,在之后设置才有效果。
\begin{document}
cite-style = inline
Sorry, something went wrong.
Fix invalid cite-style option before natbib loaded (Fix #327)
8bb5897
这个问题是因为设置 cite-style 时还未载入 natbib 宏包,所以没有进行正确的配置。试一下 cite-style 分支的 9c467a8 有没有解决问题。
cite-style
natbib
另外的问题是 cite-style = inline 是控制我选用的 ustcthesis-numerical.bst 的哪个函数?
cite-style 是调用 LaTeX 宏进行配置,并没有控制 .bst 的函数。具体地说,载入 natbib 后,\ustcsetup{cite-style = inline} 会调用 \citestyle{inline},而 \citestyle 会调用模板中定义的 \bibstyle@inline,其内容为 \bibpunct{[}{]}{,}{n}{,}{,}。这是 natbib 控制引用样式的方法。
.bst
\ustcsetup{cite-style = inline}
\citestyle{inline}
\citestyle
\bibstyle@inline
\bibpunct{[}{]}{,}{n}{,}{,}
问题完美解决了,非常感谢!
1a65543
No branches or pull requests
检查
ustcthesis.pdf
编译环境
描述问题
我根据《ustcthesisdoc》的提示,在ustcsetup里面添加了 cite-style = inline,想实现文内引用文献形式为“文献[1]”这样的与正文平排格式,但是出来的效果还是上标样式,请问是怎么回事?另外的问题是 cite-style = inline 是控制我选用的 ustcthesis-numerical.bst 的哪个函数?
截图:
复现上述问题的代码:
The text was updated successfully, but these errors were encountered: