[NTG-context] section with \sethupead[section][alternative=text]; other type of section misbehaves..
Rob Heusdens
robheus at xs4all.nl
Sat Jan 31 22:03:21 CET 2015
I forgot to add the basic example, with neither for section nor for
summary an option set in \setuphead[..] for alternative.
So, read this as example 0: = test5.pdf
Example 0:
\defineblank[sprong][.5cm]
\definehead[summary][section]
\setuphead[section][number=no,style=bold,before={\blank[sprong]},after=,indentnext=no]
\setuphead[summary][number=no,style=bold,before=,after={\blank[sprong]},beforesection={\noindentation\page\starttextbackground[SummaryBackground]},aftersection={\stoptextbackground\page}]
\setupwhitespace[none]
\setupindenting[yes, small, next]
\definetextbackground
[SummaryBackground]
[frame=off,frameoffset=0pt,
background=color,
backgroundcolor=gray,
backgroundoffset=2ex]
\starttext
\section{First sentence. Second sentence.}\input zapf
\summary{Summary}\input zapf
\stoptext
Example 0 => Example 1
Setting the alternative=text for section also causes a change in behaviour
of the summary section.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test5c.pdf
Type: application/pdf
Size: 12058 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150131/f1705f5e/attachment.pdf>
More information about the ntg-context
mailing list