Replies: 1 comment 1 reply
-
自己定义一个引用命令即可。 \documentclass{njuthesis}
\begin{filecontents}{test.bib}
@article{melo2022,
title = {Stress-Induced Protein Disaggregation in the Endoplasmic Reticulum Catalysed by {{BiP}}},
author = {Melo, Eduardo Pinho and Konno, Tasuku and Farace, Ilaria and Awadelkareem, Mosab Ali and Skov, Lise R. and Teodoro, Fernando and Sancho, Teresa P. and Paton, Adrienne W. and Paton, James C. and Fares, Matthew and Paulo, Pedro M. R. and Zhang, Xin and Avezov, Edward},
date = {2022-05-06},
journaltitle = {Nature Communications},
shortjournal = {Nat Commun},
volume = {13},
number = {1},
pages = {2501},
publisher = {{Nature Publishing Group}},
doi = {10.1038/s41467-022-30238-2},
issue = {1},
keywords = {Chaperones,Endoplasmic reticulum,Mechanisms of disease,Protein aggregation}
}
\end{filecontents}
\addbibresource{test.bib}
% 定义自行使用的引用命令
\usepackage{etoolbox}
\AtEndPreamble{
\DeclareCiteCommand{\mycite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
{\mkbibleftborder\usebibmacro{cite:init}%]直接添加方括号
\usebibmacro{prenote}%
}
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\multicitedelim\usebibmacro{cite:dump}%
\usebibmacro{postpages}\mkbibrightborder}
}
\begin{document}
\mainmatter
\chapter{test}
特别的引用命令\mycite[56-66]{melo2022}
\printbibliography
\end{document} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
很早就想问这个问题了。现行的
\cite
加页码,其实现是在文献数字的方括号的右边加上页码数字,如[1]86-90
。有没有什么办法(导师要求)能够把数字标在中括号内部、文献序号的右边,用逗号隔开,如[1,86-90]
Beta Was this translation helpful? Give feedback.
All reactions