ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setuplist[]
@ 2002-11-13 18:52 Willi Egger
  2002-11-14  0:06 ` \setuplist[] Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Willi Egger @ 2002-11-13 18:52 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

Hi everybody,

Preparing a document with a adapted header and TOC layout I encountered the
following problem:

\setuphead[section][prefix=Gedicht] generates the following error:

pdfeTeX, Version 3.14159-1.00b-pretest-20020211-2.1 (Web2c 7.3.7x)
(format=cont-en 2002.10.20)
ConTeXt  ver: 2002.10.2  fmt: 2002.10.20  int: english  mes: english
...
section        : 1 Spaanse versie
! Undefined control sequence.
<argument> \localkopprefix

\setupreferenceprefix [#1]->\edef \@@rfprefix {#1
                                                 }\ifx \@@rfprefix \empty
\l...

\dodododosomekop ...renceprefix [\localkopprefix ]
                                                  \fi \dosomebreak \nobreak
...
l.22 \section{Spaanse versie}

Using \def\Gedichthead%... and
\setuphead[section][command=\Gedichthead]
works fine.

What is wrong with using the prefix operator?


In the document also the TOC should be adapted:

\setuplist[section][left=Ged.~,right=]

There is no error on this statement. However the prefix of the line with
'Ged.' does not show.

May be that I miss something in this approach?

Please find attached a minimal test file.

Cheers Willi

[-- Attachment #2: test.tex --]
[-- Type: application/octet-stream, Size: 804 bytes --]

\setupoutput[pdftex]
\setupbodyfont[ss,12pt]


\def\Gedichthead#1%
   {Gedicht\ {#1}}


%\setuphead[section][command=\Gedichthead]
\setuphead[section][prefix=Gedicht]

\setuplist[section][left=Ged.~,right=]


\starttext

Inhoud:
\blank
\placecontent
\blank[5*big]

\section{Spaanse versie}

\startnarrower[left]
\startlines
Las pe\~{n}as y las vaquitas
Se van por la misma senda.
Las pe\~{n}as son de nosotros,
Las vaquitas son ajenas.
\blank[small]
\quad Eugenio Coserius
\stoplines
\stopnarrower

\section{Duitse versie}

\startnarrower[left]
\startlines
Die Sorgen und die K\"uhe
Auf demselben Pfad wandern.
Die Sorgen sind die unseren,
Die K\"uhe die der andern.
\blank[small]
\quad Eugenio Coserius
\stoplines
\stopnarrower

\stoptext


%\setupcombinedlist[content][left=Art.~,right=,pagenumber=no]

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

end of thread, other threads:[~2002-11-15  9:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 18:52 \setuplist[] Willi Egger
2002-11-14  0:06 ` \setuplist[] Hans Hagen
2002-11-14 18:04   ` \setuplist[] Willi Egger
2002-11-14 21:58     ` \setuplist[] Hans Hagen
2002-11-15  9:21       ` \setuplist[] Willi Egger

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).