![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle. In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else. minimal example: \setuphead[chapter][alternative=middle] \starttext \startchapter[title=TITLE] \stopchapter \stoptext Is there a quick repair? ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english Hans van der Meer
![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
Don’t you mean rather
\setuphead[chapter][align=middle]
instead of « alternative »?
Best regards: OK
On 07 Oct 2014, at 17:28, Meer, H. van der
There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle.
In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else.
minimal example:
\setuphead[chapter][alternative=middle] \starttext \startchapter[title=TITLE] \stopchapter \stoptext
Is there a quick repair?
ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english
Hans van der Meer
___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
\setuphead[chapter][align=middle] works out ok for me. Thanks!
But then, \setuphead[chapter][alternative=middle] seems quite correct, following the manual. The else seems strange then.
Hans van der Meer
On 07 Oct 2014, at 17:59, Otared Kavian
![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
Hi,
You are right, it seems that there is a trailing « else » somewhere in the sources…
Actually the possible keys for « alternative= » are
alternative=paragraph normal inmargin margin middle top bottom IDENTIFIER
and the following works fine also:
\setuphead[chapter] [number=no, alternative=middle]
\starttext
\startchapter[title=TITLE]
\input knuth.tex
\stopchapter
\stoptext
However, saying
\setuphead[chapter] [alternative=middle]
gives the wrong result you mentioned, suggesting that there is somewhere an « else » which shouldn’t be there.
Maybe Hans H. with the above informations can nail it down?
Best regards: OK
On 07 Oct 2014, at 18:40, Meer, H. van der
\setuphead[chapter][align=middle] works out ok for me. Thanks!
But then, \setuphead[chapter][alternative=middle] seems quite correct, following the manual. The else seems strange then.
Hans van der Meer
On 07 Oct 2014, at 17:59, Otared Kavian
wrote: Don’t you mean rather \setuphead[chapter][align=middle] instead of « alternative »?
Best regards: OK
On 07 Oct 2014, at 17:28, Meer, H. van der
wrote: There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle.
In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else.
minimal example:
\setuphead[chapter][alternative=middle] \starttext \startchapter[title=TITLE] \stopchapter \stoptext
Is there a quick repair?
ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english
Hans van der Meer
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 07.10.2014 um 21:22 schrieb Otared Kavian
Hi,
You are right, it seems that there is a trailing « else » somewhere in the sources… Actually the possible keys for « alternative= » are
alternative=paragraph normal inmargin margin middle top bottom IDENTIFIER
and the following works fine also:
\setuphead[chapter] [number=no, alternative=middle] \starttext \startchapter[title=TITLE] \input knuth.tex \stopchapter \stoptext
However, saying
\setuphead[chapter] [alternative=middle]
gives the wrong result you mentioned, suggesting that there is somewhere an « else » which shouldn’t be there. Maybe Hans H. with the above informations can nail it down?
strc-ren.mkiv \startsetups[\??headrenderings:\v!middle] \vbox { \headsetupspacing \veryraggedcenter \let\\\endgraf \let\crlf\endgraf \ifconditional\headshownumber \strut \headnumbercontent \par - else + \else \fakeheadnumbercontent % will also be done in the other ones (force consistency with numbered) \fi \begstrut \headtextcontent \endstrut } \stopsetups Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 10/7/2014 10:32 PM, Wolfgang Schuster wrote:
- else + \else \fakeheadnumbercontent % will also be done in the other ones (force consistency with numbered) \fi
yes, a new thingie 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 07.10.2014 um 21:22 schrieb Otared Kavian
Hi,
You are right, it seems that there is a trailing « else » somewhere in the sources… Actually the possible keys for « alternative= » are
alternative=paragraph normal inmargin margin middle top bottom IDENTIFIER
and the following works fine also:
\setuphead[chapter] [number=no, alternative=middle] \starttext \startchapter[title=TITLE] \input knuth.tex \stopchapter \stoptext
However, saying
\setuphead[chapter] [alternative=middle]
gives the wrong result you mentioned, suggesting that there is somewhere an « else » which shouldn’t be there. Maybe Hans H. with the above informations can nail it down?
strc-ren.mkiv \startsetups[\??headrenderings:\v!middle] \vbox { \headsetupspacing \veryraggedcenter \let\\\endgraf \let\crlf\endgraf \ifconditional\headshownumber \strut \headnumbercontent \par - else + \else \fakeheadnumbercontent % will also be done in the other ones (force consistency with numbered) \fi \begstrut \headtextcontent \endstrut } \stopsetups Wolfgang
participants (4)
-
Hans Hagen
-
Meer, H. van der
-
Otared Kavian
-
Wolfgang Schuster