ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mikael Sundqvist via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Mikael Sundqvist <mickep@gmail.com>
Subject: Re: How to setupbtx to get short citations?
Date: Tue, 11 Jan 2022 15:27:24 +0100	[thread overview]
Message-ID: <CAHy-LL_FB4pkvUy13NtNJtfhJuwNN2aMWc_cNAg6A7WMVHWDww@mail.gmail.com> (raw)
In-Reply-To: <CAHy-LL_1ZOzDS=53Y3CNwX_rP3y=kiunN6RNvQu+kg+tib4n4Q@mail.gmail.com>

On Sun, Jan 9, 2022 at 11:56 PM Mikael Sundqvist <mickep@gmail.com> wrote:
>
> 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

It should be

\setupbtx[aps:cite][
  alternative=short,
]

Sorry for the noise.

/Mikael
___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2022-01-11 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-09 22:56 Mikael Sundqvist via ntg-context
2022-01-11 14:27 ` Mikael Sundqvist via ntg-context [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHy-LL_FB4pkvUy13NtNJtfhJuwNN2aMWc_cNAg6A7WMVHWDww@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=mickep@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).