ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: header to register
Date: Mon, 28 Jan 2008 09:16:20 +0100	[thread overview]
Message-ID: <115224fb0801280016r1a370201g47999ac59365143d@mail.gmail.com> (raw)
In-Reply-To: <F60C604C-81F8-4C01-A42D-97648EA29B7F@fiee.net>

On Jan 23, 2008 10:04 PM, Henning Hraban Ramm <hraban@fiee.net> wrote:
> Am 2008-01-22 um 11:31 schrieb Wolfgang Schuster:
> > You could try to write \expanded{index{#1}} and use
> > deeptextcommand=\TitleFrame.
>
> Thank you, I always forget about \expanded, and I didn't know about
> deeptextcommand at all...
>
> But it doesn't work, it stops with:
>
> TitelNoToc      : - Inhalt
> (./prd_creator.tuo
> ! Argument of \textormathspace has an extra }.
> <inserted text>
>                  \par
> <to be read again>
>                     }
> \doregistertexthowto ...?id #1\c!textcommand }{#2}
>                                                    \dostopattributes
> \dohandleregisterentry ...exthowto {\v!index }{#1}
>                                                    \fi \egroup \!!
> doneafalse
> \c!entrya ...urround \z@ \ldots \textormathspace }
>                                                    \global
> \firstregisterentr...
> <argument> \c!entrya
>                       \c!entryb \c!entryc \c!entryd
> ...
> l.177 ...age{index}{,}{21}{2--0-6-0-0-0-0-0--5}{7}
>
> probably caused by \dots in:
> \Titel{Wach nun auf\dots}
>
>
> with those definitions:
>
> --- >8 ---
> \def\dots{\thinspace.\thinspace.\thinspace.\thinspace}
>
> \definehead[Titel][chapter]
> \definehead[TitelNoToc][chapter]
> \definehead[TitelNoPage][chapter]
> \definehead[TitelKlein][chapter]
> \def\TitelFrame#1{\expanded{\index{#1}}%
>         \framed[
>                 width=\textwidth,
>                 height=7.5mm,
>                 frame=off,
>                 align={right,high},
>                 after={}, before={}]%
>         {\switchtobodyfont[12pt]\hw\tfa #1}}
> \def\TitelFrameKlein#1{\expanded{\index{#1}}%
>         \framed[
>                 width=\textwidth,
>                 height=5mm,
>                 frame=off,
>                 align={right,high},
>                 after={}, before={}]%
>         {\switchtobodyfont[10pt]\hw\tfb #1}}
> \setuphead[Titel][page=yes, number=no, deeptextcommand=\TitelFrame]
> \setuphead[TitelNoToc][page=yes, number=no, deeptextcommand=\TitelFrame]
> \setuphead[TitelNoPage][page=no, number=no, deeptextcommand=\TitelFrame]
> \setuphead[TitelKlein][page=no, number=no, deeptextcommand=
> \TitelFrameKlein]
>
> --- 8< ---
>
> Does that mean that must not use any commands (like \dots) in my
> \expanded{\index{#1}}?

You could use \unknown

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
___________________________________________________________________________________


  reply	other threads:[~2008-01-28  8:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19 20:51 Henning Hraban Ramm
2008-01-21  9:33 ` Wolfgang Schuster
2008-01-21 20:04   ` Henning Hraban Ramm
2008-01-22 10:30     ` Wolfgang Schuster
2008-01-22 10:31     ` Wolfgang Schuster
2008-01-23 21:04       ` Henning Hraban Ramm
2008-01-28  8:16         ` Wolfgang Schuster [this message]
2008-01-28 20:10           ` Henning Hraban Ramm
2008-01-29 10:51             ` Wolfgang Schuster
2008-01-29 14:31               ` Idris Samawi Hamid
2008-01-29 16:35                 ` Wolfgang Schuster
2008-01-29 17:48                   ` Idris Samawi Hamid
2008-01-29 20:01                     ` Henning Hraban Ramm
2008-01-29 20:09                       ` header to register (SOLVED) Henning Hraban Ramm
2008-01-30  8:43                   ` header to register Thomas A. Schmitz
2008-01-30 15:48                     ` Idris Samawi Hamid
2008-01-30 19:11                       ` Henning Hraban Ramm

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=115224fb0801280016r1a370201g47999ac59365143d@mail.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).