ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Csikos Bela <bcsikos425@freemail.hu>
To: ntg-context <ntg-context@ntg.nl>
Subject: right align (flushright) bibliography list labels
Date: Thu, 30 Apr 2015 01:10:16 +0200 (CEST)	[thread overview]
Message-ID: <freemail.20150430011016.50157.1@fmxmldata04.freemail.hu> (raw)

Hello list members:

I would like to align the labels (numbers) of the bibliography list to the right to look like this:

...1
...2
......
..11
......
.121.

I tried to use the numbercommand=  like this:

% start code
\def\numcom#1{\startalignment[flushright] #1.\stopalignment}

\setupbibtex[database={bibfile}]

\setuppublications[alternative=apa,refcommand=num,sorttype=cite,numbering=yes,autohang=no,numbercommand=\numcom]

\starttext

\completepublications[criterium=all]

\stoptext
% end code

But this has no effect on label alignment.

I also tried,  based on this post, http://www.ntg.nl/pipermail/ntg-context/2015/080696.html, this code:

% start code
\setupbibtex[database={bibfile}]

\setuppublications[alternative=apa,refcommand=num,sorttype=cite,numbering=yes,autohang=no,numbercommand=\numcom]

\setupbtxlist[align={flushright}]

\starttext

\completepublications[criterium=all]

\stoptext
% end code

In this case compilation stopped with error, it choked on \setupbtxlist (Undefined control sequence).

How could I solve this?

Thanks,

bcsikos


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

                 reply	other threads:[~2015-04-29 23:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=freemail.20150430011016.50157.1@fmxmldata04.freemail.hu \
    --to=bcsikos425@freemail.hu \
    --cc=ntg-context@ntg.nl \
    /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).