From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: setuphead bug?
Date: Tue, 7 Oct 2014 22:32:02 +0200 [thread overview]
Message-ID: <C023982E-D16B-4BD5-8C4F-3D718A30C53C@gmail.com> (raw)
In-Reply-To: <7B6194C7-0110-4BCF-8BDB-45F65DDF1686@gmail.com>
Am 07.10.2014 um 21:22 schrieb Otared Kavian <otared@gmail.com>:
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-10-07 20:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 15:28 Meer, H. van der
2014-10-07 15:59 ` Otared Kavian
2014-10-07 16:40 ` Meer, H. van der
2014-10-07 19:22 ` Otared Kavian
2014-10-07 20:32 ` Wolfgang Schuster
2014-10-07 20:32 ` Wolfgang Schuster [this message]
2014-10-07 22:33 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C023982E-D16B-4BD5-8C4F-3D718A30C53C@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).