* Struggling with custom title command
@ 2012-07-26 18:11 Steffen Fritzsche
2012-07-26 18:16 ` Aditya Mahajan
2012-07-26 18:24 ` Wolfgang Schuster
0 siblings, 2 replies; 5+ messages in thread
From: Steffen Fritzsche @ 2012-07-26 18:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 708 bytes --]
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
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4416 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Struggling with custom title command
2012-07-26 18:11 Struggling with custom title command Steffen Fritzsche
@ 2012-07-26 18:16 ` Aditya Mahajan
2012-07-26 18:25 ` Steffen Fritzsche
2012-07-26 18:24 ` Wolfgang Schuster
1 sibling, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2012-07-26 18:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Struggling with custom title command
2012-07-26 18:16 ` Aditya Mahajan
@ 2012-07-26 18:25 ` Steffen Fritzsche
2012-07-26 21:55 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Steffen Fritzsche @ 2012-07-26 18:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1063 bytes --]
Thank you Aditya for your quick response! Now, it's compiling again :)
Steffen
Am 26.07.2012 um 20:16 schrieb Aditya Mahajan <adityam@umich.edu>:
> 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
> ___________________________________________________________________________________
>
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4416 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Struggling with custom title command
2012-07-26 18:25 ` Steffen Fritzsche
@ 2012-07-26 21:55 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2012-07-26 21:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Struggling with custom title command
2012-07-26 18:11 Struggling with custom title command Steffen Fritzsche
2012-07-26 18:16 ` Aditya Mahajan
@ 2012-07-26 18:24 ` Wolfgang Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2012-07-26 18:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-26 21:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-26 18:11 Struggling with custom title command Steffen Fritzsche
2012-07-26 18:16 ` Aditya Mahajan
2012-07-26 18:25 ` Steffen Fritzsche
2012-07-26 21:55 ` Hans Hagen
2012-07-26 18:24 ` Wolfgang Schuster
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).