我想知道是否可以将注释传递给\cite
命令中的括号。我正在使用bitex
该natbib
包并希望生成以下内容:
Miller(1990 年,图 12)
\cite[][Figure 12]{Miller1990}
产生的结果与以下结果相同\citep
:(Miller,1990,图 12)
我希望可以创建一个新的命令,如下所示:
\def\citecomment#1{\citeauthor{#1} (\citeyear{#1}, \note)}
并且在哪里\citecomment[][Figure 12]{Miller1990}
会产生期望的结果,但我不知道哪个参数调用了注释(\note
显然不是正确的)。
请参阅下面的 MWE:
\documentclass[10pt,a4paper]{article}
\usepackage[]{graphicx}
\usepackage[]{color}
\usepackage[a4paper, vmargin={40mm,40mm}, hmargin={40mm,30mm}]{geometry}
\usepackage{subfig}
\usepackage{floatrow}
\usepackage{alltt}
\usepackage{amsmath, amssymb, amsthm, arydshln, array, booktabs, here, lineno, latexsym, multirow, epsfig, pbox}
\usepackage[format=hang,font=normal, labelfont=bf, textfont=normal]{caption}
\usepackage{url}
\usepackage{pdflscape}
\usepackage[round]{natbib}
\usepackage[doublespacing]{setspace}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{paralist}
\def\citeapos#1{\citeauthor{#1}'s (\citeyear{#1})} % This creates a command for citations with apostrophes.
\def\citeay#1{\citeauthor{#1}, \citeyear{#1}} % This creates a command for Author, year.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{plain}
\begin{document}
This approach has been used by \cite[][Figure 12]{SaezZucman2016QJE}.\\
This produces the same result as \citep[][Figure 12]{SaezZucman2016QJE}.\\
But I want a citation that says Saez and Zucman (2016, Figure 12) did this or that.
\bibliographystyle{aer.bst}
\bibliography{/Users/isabel/PhD/Dropbox/myreferences.bib}
\end{document}