나는 현재 논문을 쓰고 있는데 우리 의자의 템플릿은
\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}