我目前正在寫論文,我們的椅子模板使用
\bibliographystyle{abbrvnat}
我也有
\RequirePackage[round,
sort&compress]{natbib}
在 .cls 檔案中。
網路上的其他參考資料顯示\citetitle
,但它不起作用,到目前為止我還沒有找到解決方案。
當我需要時,我會定期搜尋它,但由於缺乏結果,我找到了其他解決方案,例如改寫或硬編碼...
非常感謝,這個網站之前給我提供了很多答案!
來自德國的歡呼!
答案1
你可以使用使用比布自行打包並設定\citetitle
宏,如以下範例所示。
\RequirePackage{filecontents}
\begin{filecontents*}{mybib.bib}
@article{abc,
author = {Author, Anne},
title = {{Random Thoughts}},
journal= {Circularity Today},
year = 5001,
volume = 1,
number = 2,
pages = {3-4},
}
\end{filecontents*}
\documentclass{article}
\usepackage[round,sort&compress]{natbib}
\bibliographystyle{abbrvnat}
\usepackage{usebib}
\bibinput{mybib} % specify name of bib file, w/o ".bib" extension
\newcommand\citetitle[1]{\usebibentry{#1}{title}}
\begin{document}
\emph{\citetitle{abc}}
\nocite{*}
\bibliography{mybib}
\end{document}