ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Willi Egger" <w.egger@boede.nl>
Subject: \setuplist[]
Date: Wed, 13 Nov 2002 19:52:18 +0100	[thread overview]
Message-ID: <000401c28b4f$3a8d6f20$0700a8c0@vademecum> (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]

             reply	other threads:[~2002-11-13 18:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-13 18:52 Willi Egger [this message]
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

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='000401c28b4f$3a8d6f20$0700a8c0@vademecum' \
    --to=w.egger@boede.nl \
    --cc=ntg-context@ref.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).