我正在使用 natbib 包。我想用单个命令控制 bib 样式\numberedref
。
我的要求是,如果该\numberedref
命令在 tex 文件中可用,则输出显示在编号参考列表所有引文链接都应以编号形式显示。如果默认情况下该命令不可用,则应显示作者年份参考。这将发生无需改变参考列表项,例如\bibitem[Sabatinis et al., 1999]{Sabatini:1999}
但我不知道这个想法 如何控制用户定义的单个命令\numberedref
我的下面的 tex 文件提到:
\documentclass[twocolumn]{article}
\usepackage{endnotes}
\usepackage[noblocks]{authblk}
\usepackage[switch]{lineno}
\usepackage{mdframed}
\usepackage{amsmath}
\usepackage{natbib}
\usepackage[colorlinks=true,allcolors=black]{hyperref}
\definecolor{gray}{cmyk}{0,0,0,0.70}
\bibpunct[, ]{(}{)}{;}{a}{\color{gray},}{,}
\hypersetup{colorlinks,linkcolor=black,citecolor=gray}
\def\@editor{}
\def\editor#1{%
\gdef\@editor{\raggedright \textbf{Edited by:}\newline #1}}
\def\@reviewer{}
\def\reviewer#1{%
\gdef\@reviewer{\raggedright \textbf{Reviewed by:}\newline #1}}
\def\@metanote{}
\def\metanote#1{%
\gdef\@metanote{\raggedright #1}}
\def\@correspondence{}
\def\correspondence#1{%
\gdef\@correspondence{\textbf{\textit{*Correspondence:}}\newline%
\raggedright #1}}
\def\@abstract{}
\def\abstract#1{%
\gdef\@abstract{\fontsize{9.5}{11.5}\selectfont #1}}
\def\@keywords{}
\def\keywords#1{%
\gdef\@keywords{\textbf{Keywords:} #1}}
\def\@firstpara{}
\def\firstpara#1{%
\gdef\@firstpara{\raggedright #1}}
\mdfdefinestyle{theoremstyle}{%
linecolor=black,middlelinewidth=2pt,%
theoremseparator={~|},%
frametitlerule=false,%
apptotikzsetting={\tikzset{mdfframetitlebackground/.append style={%
shade,left color=white, right color=black}}},
frametitlerulecolor=black,
frametitlerulewidth=1pt,
innertopmargin=6pt,
innerbottommargin=6pt,
innerleftmargin=6pt,
innerrightmargin=6pt,
frametitlebelowskip=0pt,
}
\mdtheorem[style=theoremstyle]{keybox}{KEY CONCEPT}
\begin{document}
\theendnotes
\title{Hormonal crosstalk for root development: a combined experimental and modeling perspective}
\author[1]{Junli Liu}
\author[2]{James Rowe}
\author[2]{Keith Lindsey}
\affil[1]{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK}
\affil[1]{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences, The Bio physical Sciences Institute, Durham University, Durham, UK}
\reviewer{Jedrzej Jakub Szymanski, Max Planck Institute of Molecular Plant Physiology, Germany }
\reviewer{Dimas Mendes Ribeiro, Universidade Federal de Vi\c{c}osa, Brazil}
\correspondence{Keith Lindsey is Professor of Plant Molecular Biology.}
\abstract{Plants are sessile organisms and therefore they must adapt their growth and architecture to a changing environment.}
\metanote{$\dagger$Joint corresponding authors}
\keywords{root development, POLARIS peptide, hormonal crosstalk, osmotic stress, kinetic modelin}
\firstpara{\section*{Introduction}
Hormone signaling systems coordinate plant \hfilneg}
\maketitle
Patterning in Arabidopsis root development is coordinated via a localized auxin concentration maximum in the root tip (\citealp{Sabatini:1999}), requiring the regulated expression of speciÞc genes. This auxin gradient has been hypothesized to be sink-driven (\citealp{Friml:2002}) and com- putational modeling suggests that auxin efßux carrier activity may be sufÞcient to generate the gradient in the absence of auxin biosynthesis in the root.
\clearpage
\begin{thebibliography}{999}
\bibitem[Sabatinis et al., 1999]{Sabatini:1999}Sabatini, S., Sabatini, S., Beis, D., Wolkenfelt, H., Murfett, J., Guilfoyle, T., et al. (1999). An auxin-dependent distal organizer of pattern and polarity in the Arabidopsis root. Cell 99, 463--472. doi: 10.1016/S0092-8674(00)81535-4
\bibitem[Friml et al., 2002]{Friml:2002}Friml, J., Benkova, E., Blilou, I., Wisniewska, J., Hamann, T., Ljung, K., et al. (2002). AtPIN4 mediates sink-driven auxin gradients and root patterning in Arabidopsis. Cell 108, 661--673. doi: 10.1016/S0092-8674(02)00656-6
\end{thebibliography}
\end{document}