ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to setupbtx to get short citations?
@ 2022-01-09 22:56 Mikael Sundqvist via ntg-context
  2022-01-11 14:27 ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-01-09 22:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-11 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-09 22:56 How to setupbtx to get short citations? Mikael Sundqvist via ntg-context
2022-01-11 14:27 ` Mikael Sundqvist via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).