我希望将我的参考书目从第二行开始左对齐打印,以便文本符合正常的边距限制,如下所示:
解决方案这里仅提供非常复杂的重新定义。在使用时有没有办法实现这一点\bibliography{filename}
?使用\hspace*{\labelwidth}
仅部分有效。
\begin{filecontents}{bibfile.bib}
@ARTICLE{Abernethy2003,
author = {Colin D. Abernethy and Gareth M. Codd and Mark D. Spicer
and Michelle K. Taylor},
title = {{A} highly stable {N}-heterocyclic carbene complex of
trichloro-oxo-vanadium(\textsc{v}) displaying novel
{C}-{C}(carbene) bonding interactions},
journal = {{J}. {A}m. {C}hem. {S}oc.},
year = {2003},
volume = {125},
pages = {1128--1129},
number = {5},
doi = {10.1021/ja0276321},
}
\end{filecontents}
\documentclass[twocolumn,10pt]{article}
\usepackage{lipsum}
\usepackage[super]{natbib}
\makeatletter
\renewcommand\@biblabel[1]{\hspace*{\labelwidth}(#1)}
\makeatother
\begin{document}
Text and some more text.\cite{Abernethy2003}
\bibliography{bibfile}
\bibliographystyle{biochem}
\end{document}
答案1
改变\@bibsetup
:
\begin{filecontents}{\jobname.bib}
@ARTICLE{Abernethy2003,
author = {Colin D. Abernethy and Gareth M. Codd and Mark D. Spicer
and Michelle K. Taylor},
title = {A highly stable {N}-heterocyclic carbene complex of
trichloro-oxo-vanadium(\textsc{v}) displaying novel
{C}-{C}(carbene) bonding interactions},
journal = {J. Am. Chem. Soc.},
year = {2003},
volume = {125},
pages = {1128--1129},
number = {5},
doi = {10.1021/ja0276321},
}
\end{filecontents}
\documentclass[twocolumn,10pt]{article}
\usepackage[super]{natbib}
\makeatletter
\renewcommand{\@biblabel}[1]{(#1)}
\AtBeginDocument{%
\renewcommand\@bibsetup[1]{%
\setlength{\leftmargin}{0pt}%
\setlength{\itemindent}{2.5em}%
\setlength{\itemsep}{\bibsep}%
\setlength{\parsep}{\z@}%
}%
}
\makeatother
\begin{document}
Text and some more text.\cite{Abernethy2003}
\bibliographystyle{biochem}
\bibliography{\jobname}
\end{document}