[NTG-context] How to setupbtx to get short citations?

Mikael Sundqvist mickep at gmail.com
Sun Jan 9 23:56:35 CET 2022


Hi,

In the example below I can do \cite[short][hh2010] to get the citation
in the short format. But I thought that would also be the standard
with \setupbtx[aps][alternative=short] (so that I can write
\cite[hh2010] instead). What do I miss? (Except for the fact that I
should probably define my own btx style as a copy of aps instead of
setting the aps up...)

/Mikael

\startbuffer[bib]
@ELECTRONIC{hh2010,
  author = {Hans Hagen},
  year = {2010},
  title = {Metafun. \CONTEXT\ mkiv},
  url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}
\stopbuffer

\usebtxdataset[bib.buffer]

\usebtxdefinitions[aps]

\setupbtxrendering[aps][
sorttype=short,
numbering=short,
]

\setupbtxlist[aps][
  width=fit,
  distance=0.5em,
  interaction=start,
]

\setupbtx[aps][
  alternative=short,
]


\starttext

\cite[hh2010]

\placelistofpublications

\stoptext


More information about the ntg-context mailing list