
booktitle
いくつかのエントリの前に次の行を追加したいと思います@inproceedings
。.bibファイルでは次のように記述します。
@String {Conf. = {Proc. {IEEE} Int. Conf.} }
エントリーは
@inproceedings{key,
title = {},
author = {},
booktitle= Conf. Signal Processing
}
出力を次のように取得したいと思いますProc. IEEE Int. Conf. Signal Processing
。
答え1
(私が思うに)あなたが望んでいることはできません。 は@string
他の とのみ連結する必要があります@string
。ただし、もちろん、期待どおりにマクロを使用できます。 2 つのエントリを比較してください。
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@string{ CONF = "Proc. {IEEE} Int. Conf." }
@string{ SIGPROC = " Signal Processing" }
@preamble{ "\providecommand*{\CONF}{Proc. {IEEE} Int. Conf.}" }
@inproceedings{key,
title = {Title},
author = {Author},
booktitle= CONF # SIGPROC,
year = 2000,
}
@inproceedings{key1,
title = {Title},
author = {Author},
booktitle={\CONF{} Signal Processing},
year = 2000,
}
\end{filecontents*}
\usepackage{natbib}
\begin{document}
\cite{key}
\cite{key1}
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}