Hi, my document was compiling fine with an old beta (guess it was from late may - early june). Today I updated to the latest beta and now I've got a problem with my custom chapter command: \def\ChapterCmd#1#2% #1 is number, #2 is text {\vbox{#1\blank#2}} \setuphead [chapter][command=\ChapterCmd, style={\ss\bfc}, page=right, number=yes, frame=off, placehead=yes, align=left, before={}, after={\blank[3*line]}, header=nomarking] The resulting error is: ! Argument of \ChapterCmd has an extra }. system > tex > error on line 103 in file main.tex: Argument of … Any idea what's wrong? The error message does not mean anything to me. Thanks in advance! Cheers, Steffen
On Thu, 26 Jul 2012, Steffen Fritzsche wrote:
Hi,
my document was compiling fine with an old beta (guess it was from late may - early june). Today I updated to the latest beta and now I've got a problem with my custom chapter command:
\def\ChapterCmd#1#2% #1 is number, #2 is text {\vbox{#1\blank#2}}
Use \unexpanded\def\Cha.... Aditya
Thank you Aditya for your quick response! Now, it's compiling again :)
Steffen
Am 26.07.2012 um 20:16 schrieb Aditya Mahajan
On Thu, 26 Jul 2012, Steffen Fritzsche wrote:
Hi,
my document was compiling fine with an old beta (guess it was from late may - early june). Today I updated to the latest beta and now I've got a problem with my custom chapter command:
\def\ChapterCmd#1#2% #1 is number, #2 is text {\vbox{#1\blank#2}}
Use
\unexpanded\def\Cha....
Aditya ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 26-7-2012 20:25, Steffen Fritzsche wrote:
Thank you Aditya for your quick response! Now, it's compiling again :)
This is the upcoming but already working new method (th eold will also keep working): \defineheadalternative [mine] [alternative=vertical, renderingsetup=minetoo, left=(, right=)] \startsetups[minetoo] \headsetupspacing \ifconditional\headshownumber \headalternativeparameter{left} \headnumbercontent \headalternativeparameter{right} \fi \quad \headtextcontent \stopsetups \setuphead[section][alternative=mine] \starttext \section{test} \stoptext So, we move towards using setups and caling up content by name Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 26.07.2012 um 20:11 schrieb Steffen Fritzsche:
Hi,
my document was compiling fine with an old beta (guess it was from late may - early june). Today I updated to the latest beta and now I've got a problem with my custom chapter command:
\def\ChapterCmd#1#2% #1 is number, #2 is text {\vbox{#1\blank#2}}
\define[2]\ChapterCmd {\vbox{#1\blank#2}} Wolfgang
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Steffen Fritzsche
-
Wolfgang Schuster