grattan / grattex

7 stars 6 forks source link

Create a citation command with parentheses around author and year #98

Closed Cam-chisholm closed 5 years ago

Cam-chisholm commented 6 years ago

Something like this will do it:

\newcommand{\gcite}[1]{{(\citeauthor{#1}, \citedate{#1})}} (line 923)

Cam-chisholm commented 6 years ago

Main problem is adding page numbers...

HughParsonage commented 6 years ago

\parencite?

Cam-chisholm commented 6 years ago

I'll just quietly close this issue...

Cam-chisholm commented 6 years ago

A couple of issues with parencite:

  1. there is no comma between author and year, so you get (Author XXXX) rather than (Author, XXXX)
  2. there is an option for multiple citations (\parencites), but its format is not consistent with \textcites

1 should be relatively easy to fix. Not sure about 2

Cam-chisholm commented 6 years ago

Also, grattanReporter currently checks spelling within \parencite, so this would need to be updated.

wfmackey commented 5 years ago

re your question @jamesha95