2

I don't really understand how to use macros, but this would be a good way to learn. Currently, I simply use \cite, which prints Author, Year. When I have this in a sentence, I want the year to be in brackets, so it looks like Author (Year),

I can do this manually with

\citeauthor{author} (\citeyear{author}), conducted a detailed study on different methods of...

But this would be a drag to type out every time. How would I create a macro such as \citeintext{author} that would do all that for me?

  • 1
    Welcome to TeX.sx! Wouldn't \textcite{author} conducted ... be what you're looking for? – egreg Feb 11 '13 at 15:09
  • Yes, yes it would be -facepalm- Thanks, I really am new to this! – Blackstone Feb 11 '13 at 15:13
5

With the basic author-year style, there are two main commands:

\textcite{key}
\parencite{key}

The former is for textual citations, the latter for parenthetical ones:

... as we see in the fundamental book by \textcite{key1}. Some developments
have appeared recently \parencite{key2}.

will appear something like

… as we see in the fundamental book by Author (1990). Some developments have appeared recently (Scholar, 2012).

  • 1
    There's also the higher-level command \autocite which maps to \parencite for author-year-styles. – lockstep Feb 11 '13 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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