Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to type a citation within the text and another citation inside the parenthesis for the year, something like this:

The work of Author 1 (year; cited by Author 2, year)

For this, I've tried different options of the \textcite command but without results. Also I saw the solution posted here, which works for multiple citations within parenthesis but not for in-text citations.

Any suggestion?

share|improve this question

2 Answers 2

Nested citation commands are not allowed, but one can simulate them (using the appropriate punctuation commands to ensure consistency with other citations):

\documentclass{article}

\usepackage[style=authoryear]{biblatex}

\renewcommand*{\nameyeardelim}{\addcomma\space}
\renewcommand*{\postnotedelim}{\addsemicolon\space}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

The work of \citeauthor{A01} \mkbibparens{\citeyear{A01}\postnotedelim cited by \cite{B02}}

\printbibliography

\end{document}

enter image description here

share|improve this answer
    
I was about to post nearly the same answer. Just an addition: you can or course put this together into an own command like \mycite by \newcommand{\mycite}[2]{\citeauthor{#1} \mkbibparens{\citeyear{#1}\postnotedelim cited by \cite{#2}}}. –  Benedikt Bauer Feb 4 '13 at 16:48

Citation commands generally can't (and shouldn't) be nested, but you can get around this rule with \nocite.

\documentclass{article}
\usepackage[style=authoryear]{biblatex}

\renewcommand*{\nameyeardelim}{\addcomma\space}
\renewcommand*{\postnotedelim}{\addsemicolon\space}

\newrobustcmd*{\postcite}[1]{%
  \nocite{#1}\entrydata{#1}{\usebibmacro{cite}}}

\addbibresource{biblatex-examples.bib}
\begin{document}
\textcites(See)()[cited by \postcite{companion}]{knuth:ct:a}[10]{markey}
\printbibliography
\end{document}

Data for the nested entry here isn't accessed until the second biber/BibTeX run. You can avoid additional biber runs by linking nested entries to their parents using cross references, entry sets or related entries.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.