hyper-literate/scribble-test/tests/scriblib/autobib.rkt
Leif Andersen a8dec74ffa Add commands for cite-author and cite-year to autobib. (#111)
These commands work like natbib's citeauthor and citeyear commands,
and facilities making possessive citations. For example:

> Thanks to @(cite-author foo)'s (@(cite-year foo)) paper on stuff...

These identifiers are added with `define-cite` as keywords, and thus
can be omitted with no downside for backwards compatibility.

@(define-cite cite citet generate-bib
   #:cite-author cite-author
   #:cite-year cite-year)

Also in this commit:

* Add documentation.

* Add tests for autobib

* Bump version and add history.
2017-05-18 13:07:20 -04:00

16 lines
271 B
Racket

#lang racket
(require scriblib/autobib)
(let ()
(define-cite cite citet gen-bib)
cite citet gen-bib
(void))
(let ()
(define-cite cite citet gen-bib
#:cite-author cite-author
#:cite-year cite-year)
cite citet gen-bib cite-author cite-year
(void))