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

Re: [NTG-context] setuphead command changes?

2012-12-09 Thread Wolfgang Schuster
Am 09.12.2012 um 15:46 schrieb Wolfgang Schuster : > > Am 09.12.2012 um 12:22 schrieb revic...@caesar.elte.hu: > >> Thanks. I only apply commands for certain headings, so is there a way to >> have that working within the startsubject or is it not inheriting from setup >> heads? > > > You ca

Re: [NTG-context] setuphead command changes?

2012-12-09 Thread Wolfgang Schuster
Am 09.12.2012 um 12:22 schrieb revic...@caesar.elte.hu: > Thanks. I only apply commands for certain headings, so is there a way to have > that working within the startsubject or is it not inheriting from setup heads? You can use the optional second argument for \start… to set your own argument

Re: [NTG-context] setuphead command changes?

2012-12-09 Thread reviczky
Am 09.12.2012 um 02:35 schrieb revic...@caesar.elte.hu: > Hi, > > The following minimal example works on live.contextgarden.net but with the latest beta the command parameter doesn't seem work (the "TEST" does not appear in the margin). > > \showframe > \starttext > \define[2]\cmd{\inmargin{

Re: [NTG-context] setuphead command changes?

2012-12-09 Thread Wolfgang Schuster
Am 09.12.2012 um 02:35 schrieb revic...@caesar.elte.hu: > Hi, > > The following minimal example works on live.contextgarden.net but with the > latest beta the command parameter doesn't seem work (the "TEST" does not > appear in the margin). > > \showframe > \starttext > \define[2]\cmd{\inmarg

[NTG-context] setuphead command changes?

2012-12-08 Thread reviczky
Hi, The following minimal example works on live.contextgarden.net but with the latest beta the command parameter doesn't seem work (the "TEST" does not appear in the margin). \showframe \starttext \define[2]\cmd{\inmargin{TEST}} \startsubject[title=Title,command=\cmd] \input knuth \stopsubj

Re: [NTG-context] \setuphead command

2005-07-25 Thread Nikolai Weibull
Elena Fraboschi wrote: > I'll test tonight what you says happens automatically (gobbling up > whitespace at the top of a new page). I'll use a grid to make sure > that that's the case: to the naked eye, it seemed as though there was > an awful amount of whitespace at the top of the page, but we'l

Re: [NTG-context] \setuphead command

2005-07-25 Thread Elena Fraboschi
Wonderful, nikolai, many thanks. I'll test tonight what you says happens automatically (gobbling up whitespace at the top of a new page). I'll use a grid to make sure that that's the case: to the naked eye, it seemed as though there was an awful amount of whitespace at the top of the page, but we

Re: [NTG-context] \setuphead command

2005-07-25 Thread Nikolai Weibull
Elena Fraboschi wrote: > (1) any ConTeXt command to gobble-up unwanted vertical space before a > section header, when the section header appears right at the top of a > new page? Hm, isn’t this done automatically? > (2) any ConTeXt way to do a \setuphead such that the text following > the header

Re: [NTG-context] \setuphead command

2005-07-25 Thread Elena Fraboschi
Hi nikolai, Many thanks for the hint in re right and left. (The next one to ask about this, I'll relieve you from the burden of having to answer and will answer it myself! :-)) So I now have only two questions left unsolved, which are (1) any ConTeXt command to gobble-up unwanted vertical space

Re: [NTG-context] \setuphead command

2005-07-25 Thread Nikolai Weibull
Elena Fraboschi wrote: > (2) Horizontal alignment. This problem is almost funny. Consider > these two setups: > > \setuphead[section][ > align=middle > ] > > \setuphead[subsection][ > align=left, > ] > > The section will appear just fine, centered between the left and

Re: [NTG-context] \setuphead command

2005-07-25 Thread Elena Fraboschi
Dear all: I just conducted some follow up experiments on my previous questions, and found out that... (1) In re producing run-in text following a subsection header: neither [after={\blank[none]},] nor [after=\nowhitespace,] have any impact: I still get the subsection header on one line, and the

Re: [NTG-context] \setuphead command

2005-07-25 Thread Elena Fraboschi
Dear All: I amhaving my own private warfare with the \setuphead command, and I wonder whether anyone can give me a hint. I have three problems, which I describe in detail below. They are: (1) how to setup run-in text after a subhead, (2) how to align the section, subsection, ... headers left o