More flexible citation formats

I love using quotes in my r bookdown projects.

The format is not very flexible, I can use @citeID to get "Author (Year)" or [@citeID] to get "(Author Year)".

Sometimes I only need "(Year)" or "Year", or I may need "Author Year" without parentheses.

Finally, I need to add a link to a quote link like "Author (Year: Pages)"

Can anyone give me a hint where the relevant code is in the source so that I can start adding some of the cited formats as described above?

+3


source to share


1 answer


There are many modifications to quoting that Markdown offers, many of which you can find in the Pandoc User Guide . With their help you can hide the author, make links to pages, etc .:

  • @Einstein1905

    - Einstein et al. (1905)
  • [@Einstein1905]

    - (Einstein et al., 1905)
  • [see @Einstein1905, pp. 23-42]

    - (see Einstein et al., 1905, pp. 23-42)
  • Einstein was right [-@Einstein1905]

    - Einstein was right (1905).


Details such as disabling paranthesis or other punctuation issues can be fine -tuned when developing your own biblical style . These style files can be tested here and can be referenced during markdown conversion using type commands --biblatex

.

+3


source







All Articles