Thank you. Unfortunately I get the following:
Running `LuaConTeXt' on `minimaltele2' with ``context minimaltele2.tex''
mtx-context | run 1: luatex
--fmt="/home/johans/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en"
--lua="/home/johans/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui"
--backend="pdf" "./minimaltele2.tex"
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
\write18 enabled.
(minimaltele2.tex
ConTeXt ver: 2011.05.18 22:26 MKIV fmt: 2011.6.25 int: english/english
system > cont-new.mkiv loaded
(/home/johans/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > minimaltele2.top loaded
(minimaltele2.top)
fonts > latin modern fonts are not preloaded
languages > language en is active
{/home/johans/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}fonts
> preloading latin modern fonts (second stage)
(/home/johans/context/tex/texmf-context/tex/context/base/type-siz.mkiv)
(/home/johans/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/johans/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/johans/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > virtual math > unable to resolve name mapsfromchar
fonts > fallback modern rm 12pt is loaded
system > begin file minimaltele2.tex at line 14
! Undefined control sequence.
system > tex > error on line 1 in file minimaltele2.tex:
Undefined control sequence ...
1 >> \mainlanguage[swedish]
2
3 \definedescription
4 [TelefonEntry]
5 [width=2em]
6
7 %%\unexpanded\def\TelefonCommand#1#2#3%
8 %% {\startTelefonEntry{#2}#3\stopTelefonEntry}
9 \unexpanded\def\TelefonCommand#1#2#3%
10 {\maxaligned{#2\hfil#3}\par}
11
\TelefonCommand #1#2#3->\maxaligned
{#2\hfil #3}\par
l.1 ...tingentry{1}{Aölaksd aölksd}{044578264}{}
\doplacelistofsorts ...gparameter \c!method ", })}
\stoppacked \endgroup
l.25 ...on][criterium=all,command=\TelefonCommand]
?
2011/8/2 Wolfgang Schuster
Am 02.08.2011 um 16:08 schrieb Johan Sandblom:
Wolfgang, this is what I was hoping for, but there are some problems: - the numbers should be flush right - in the real file entries are longer than in my example file, but none so long as to require a line break. Here many entries require a line break and the next entry runs over the second line of the broken entry. See a slightly more realistic example below.
Gratefully, Johan
\unexpanded\def\TelefonCommand#1#2#3% {\startTelefonEntry{#2}#3\stopTelefonEntry}
\unexpanded\def\TelefonCommand#1#2#3% {\maxaligned{#2\hfil#3}\par}
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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Johan Sandblom, MD PhD m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell