From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: setupsynonym: 2 questions on width
Date: Thu, 5 Mar 2009 01:05:37 +0100 [thread overview]
Message-ID: <4CA80559-A8AB-49F1-984C-6BCF566C43C2@gmail.com> (raw)
In-Reply-To: <bc3554890903040934j1052a93bjfea26b87d1d25d04@mail.gmail.com>
Am 04.03.2009 um 18:34 schrieb Michael Bynum:
> 1.) I have a list of synonyms that I need to print in an aligned
> list. Is there a way to align the synonym definitions with the
> longest synonym entry (width=? option maybe)? Here is a small example
> where the entries do not align.
>
> \definesynonyms[nomenclature][nomenclatures][\infull]
> \setupsynonyms[nomenclature][criterium=all,width=broad]
>
> \nomenclature[a]{a}{This is the letter a}
> \nomenclature[b]{abcdefghijklmnopqrstuvwxyz}{This is the alphabet}
> \nomenclature[c]{c}{This is the letter c}
\def\setwidthof#1\to#2%
{\bgroup
\setbox\scratchbox\hbox{#1}%
\expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}}
\setwidthof{abcdefghijklmnopqrstuvwxyz}\to\nomenclaturewidth
\setupsynonyms[nomenclature][width=\nomenclaturewidth]
Wolfgang
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-03-05 0:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-04 17:34 Michael Bynum
2009-03-05 0:05 ` Wolfgang Schuster [this message]
2009-03-05 15:19 ` Michael Bynum
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=4CA80559-A8AB-49F1-984C-6BCF566C43C2@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--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).