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}}?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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 via email to