Re: [NTG-context] setuphead command "! Argument of \xxx has an extra }."

2013-01-25 Thread Jean-Philippe Rey
Le 25 janv. 2013 à 17:00, Marco Patzer a écrit : > On 2013–01–25 Jean-Philippe Rey wrote: > >> \def\ChapterHead#1#2{#1 --- #2} > > \define[2]\ChapterHead{#1 --- #2} > > or > > \unexpanded\def\ChapterHead#1#2{#1 --- #2} It works. Thank you very much. -- Jean-Philippe Rey Pr

Re: [NTG-context] setuphead command "! Argument of \xxx has an extra }."

2013-01-25 Thread Marco Patzer
On 2013–01–25 Jean-Philippe Rey wrote: > \def\ChapterHead#1#2{#1 --- #2} \define[2]\ChapterHead{#1 --- #2} or \unexpanded\def\ChapterHead#1#2{#1 --- #2} Marco signature.asc Description: Digital signature ___ If y

[NTG-context] setuphead command "! Argument of \xxx has an extra }."

2013-01-25 Thread Jean-Philippe Rey
Hi, I am trying to use a homemade command to display chapter heads but I systematically get the following error: ! Argument of \ChapterHead has an extra }. Here is my minimal example \def\ChapterHead#1#2{#1 --- #2} \setuphead[chapter][command=\ChapterHead] \starttext \chapter{Hello} Some text