Undefined control sequence.
Hi, for a large project I defined names for a lot of persons like \global\def\PIDacht{Militzer, Hermann Paul (8)} \global\def\PIDeinsacht{Militzer, Johann Wilhelm Hermann (16)} \global\def\PIDdreidrei{Militzer, Henriette (33)} \global\def\PIDachtviervieracht{Militzer, Adam (8448)} \starttext \PIDachtviervieracht is ok but \section[UkPID8A]{\PIDacht\ -- Allgemein} does not work! \stoptext I get: (./FamMilitzerUrkunden.tuo) (./FamMilitzerUrkunden.tuo ! Undefined control sequence. <argument> \PIDacht \ -- Allgemein \sanitizePDFdocencoding ...docencoding \edef #2{#1 } \doPDFinsertbookmark ...oding #3\to \bookmarktext \stripstring \bookmarktext... <argument> \flushbookmark \dodoputbookmarkelement {\v! section }{3}{2}{\PIDei... \secondoftwoarguments #1#2->#2 l.14 ...sacht \ -- Geburt}{1::0:0:2:0:0:0:0::1}{7} ? ! Emergency stop. What is wrong? thanks, Bernd Militzer
On Sat, 17 Jun 2006, Bernd Militzer wrote:
for a large project I defined names for a lot of persons like
\global\def\PIDacht{Militzer, Hermann Paul (8)} \global\def\PIDeinsacht{Militzer, Johann Wilhelm Hermann (16)} \global\def\PIDdreidrei{Militzer, Henriette (33)} \global\def\PIDachtviervieracht{Militzer, Adam (8448)}
\starttext \PIDachtviervieracht is ok
but
\section[UkPID8A]{\PIDacht\ -- Allgemein} does not work! \stoptext
Hello Bernd, you certainly have \setupinteraction[state=start] \placebookmarks[section] somewhere at the beginning of your file. Place the \placebookmarks[section] after your PID-definitions and it should work. Cheers, Peter -- http://pmrb.free.fr/contact/
Am Samstag, den 17.06.2006, 14:33 +0200 schrieb Peter Münster:
Hello Bernd, you certainly have \setupinteraction[state=start] \placebookmarks[section] somewhere at the beginning of your file. Place the \placebookmarks[section] after your PID-definitions and it should work. Cheers, Peter
yes it does now, thanks Bernd
On 6/17/06, Bernd Militzer wrote:
Hi,
for a large project I defined names for a lot of persons like
\global\def\PIDacht{Militzer, Hermann Paul (8)} \global\def\PIDeinsacht{Militzer, Johann Wilhelm Hermann (16)} \global\def\PIDdreidrei{Militzer, Henriette (33)} \global\def\PIDachtviervieracht{Militzer, Adam (8448)}
What about the following? % \PID will create a new ently and \getPID will recall an existing one \definesynonyms[PID][PIDs][\getPID] \PID{8}{Militzer, Hermann Paul (8)} \PID{16}{Militzer, Johann Wilhelm Hermann (16)} \PID{33}{Militzer, Henriette (33)} \PID{8448}{Militzer, Adam (8448)} \starttext \section[UkPID8A]{\getPID{8}\ -- Allgemein} \stoptext Mojca
Am Samstag, den 17.06.2006, 16:22 +0200 schrieb Mojca Miklavec:
What about the following?
% \PID will create a new ently and \getPID will recall an existing one \definesynonyms[PID][PIDs][\getPID]
\PID{8}{Militzer, Hermann Paul (8)} \PID{16}{Militzer, Johann Wilhelm Hermann (16)} \PID{33}{Militzer, Henriette (33)} \PID{8448}{Militzer, Adam (8448)}
\starttext
\section[UkPID8A]{\getPID{8}\ -- Allgemein}
\stoptext
Mojca
thanks, that solution ist perfect. Bernd
On Sat, 17 Jun 2006, Mojca Miklavec wrote:
% \PID will create a new ently and \getPID will recall an existing one \definesynonyms[PID][PIDs][\getPID]
\PID{8}{Militzer, Hermann Paul (8)} \PID{16}{Militzer, Johann Wilhelm Hermann (16)} \PID{33}{Militzer, Henriette (33)} \PID{8448}{Militzer, Adam (8448)}
And if you want to avoid redundancy: \definesynonyms[PID][PIDs][\doGetPID] \def\getPID#1{Militzer, \doGetPID{#1}~(#1)} \PID{8}{Hermann Paul} \PID{16}{Johann Wilhelm Hermann} \PID{33}{Henriette} \PID{8448}{Adam} Cheers, Peter -- http://pmrb.free.fr/contact/
And if you want to avoid redundancy:
\definesynonyms[PID][PIDs][\doGetPID]
\def\getPID#1{Militzer, \doGetPID{#1}~(#1)}
\PID{8}{Hermann Paul} \PID{16}{Johann Wilhelm Hermann}
my solution ist now: \definesynonyms[PID][PIDs][\doGetPID] \def\getPID#1{\doGetPID{#1}~(#1)} \def\getPIDGeb#1{\doGetPID{#1}~(#1) -- Geburt} \def\getPIDHei#1{\doGetPID{#1}~(#1) -- Heirat} \def\getPIDTod#1{\doGetPID{#1}~(#1) -- Tod} \PID{8}{Militzer, Hermann Paul} \PID{16}{Militzer, Johann Wilhelm Hermann} \PID{17}{Fischer, Johanna Christiane Pauline} \PID{34}{Fischer, Joha\={n} Gottlieb} \PID{35}{Werner, Johanne Christiane Dorothee} \PID{67}{Rudolph, Joha\={n}e Christiane Friedericke} Thanks Peter Bernd
participants (3)
-
Bernd Militzer
-
Mojca Miklavec
-
Peter Münster