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
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 ___________________________________________________________________________________
\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
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 ___________________________________________________________________________________
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
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 -----------------------------------------------------------------
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