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

* Re: \setuplist[]
  2002-11-13 18:52 \setuplist[] Willi Egger
@ 2002-11-14  0:06 ` Hans Hagen
  2002-11-14 18:04   ` \setuplist[] Willi Egger
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2002-11-14  0:06 UTC (permalink / raw)


At 07:52 PM 11/13/2002 +0100, you wrote:
>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

strange, can you send me a small test file?

Also, try to say \let\localkoprefix\empty at the top of your file

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: \setuplist[]
  2002-11-14  0:06 ` \setuplist[] Hans Hagen
@ 2002-11-14 18:04   ` Willi Egger
  2002-11-14 21:58     ` \setuplist[] Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Willi Egger @ 2002-11-14 18:04 UTC (permalink / raw)


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

Hi Hans,

I tried to insert the \let\localkopprefix\empty at the beginning of the
file.
Compiling did not result in an error. However, the headers are not prefixed.
?-)

Please find attached my testfile

Cheers Willi


----- Original Message -----
From: "Hans Hagen" <pragma@wxs.nl>
To: <ntg-context@ref.vet.uu.nl>
Sent: Thursday, November 14, 2002 1:06 AM
Subject: Re: [NTG-context] \setuplist[]


> At 07:52 PM 11/13/2002 +0100, you wrote:
> >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
>
> strange, can you send me a small test file?
>
> Also, try to say \let\localkoprefix\empty at the top of your file
>
> Hans
> -------------------------------------------------------------------------
>                                    Hans Hagen | PRAGMA ADE | pragma@wxs.nl
>                        Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
> -------------------------------------------------------------------------
>                         information: http://www.pragma-ade.com/roadmap.pdf
>                      documentation: http://www.pragma-ade.com/showcase.pdf
> -------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ref.ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

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

\setupoutput[pdftex]
\setupbodyfont[ss,12pt]
\let\localkopprefix\empty 

\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

* Re: \setuplist[]
  2002-11-14 18:04   ` \setuplist[] Willi Egger
@ 2002-11-14 21:58     ` Hans Hagen
  2002-11-15  9:21       ` \setuplist[] Willi Egger
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2002-11-14 21:58 UTC (permalink / raw)


At 07:04 PM 11/14/2002 +0100, you wrote:
>Hi Hans,
>
>I tried to insert the \let\localkopprefix\empty at the beginning of the
>file.
>Compiling did not result in an error. However, the headers are not prefixed.
>?-)

prefixing has to do with referencing, it's labels that you have to look for -)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: \setuplist[]
  2002-11-14 21:58     ` \setuplist[] Hans Hagen
@ 2002-11-15  9:21       ` Willi Egger
  0 siblings, 0 replies; 5+ messages in thread
From: Willi Egger @ 2002-11-15  9:21 UTC (permalink / raw)


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


----- Original Message -----
From: "Hans Hagen" <pragma@wxs.nl>
To: <ntg-context@ntg.nl>
Sent: Thursday, November 14, 2002 10:58 PM
Subject: Re: [NTG-context] \setuplist[]


> >I tried to insert the \let\localkopprefix\empty at the beginning of the
> >file.
> >Compiling did not result in an error. However, the headers are not
prefixed.
> >?-)
>
> prefixing has to do with referencing, it's labels that you have to look
for -)

Do not understand quite wel this statement. - I will look into it.

Referencing my first mail on this subject:

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?

Cheers Willi

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

\setupoutput[pdftex]
\setupbodyfont[ss,12pt]
\let\localkopprefix\empty 

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