Changes

Jump to navigation Jump to search
474 bytes added ,  14:56, 26 July 2022
m
no edit summary
</cd:parameter>
<cd:parameter name="style">
<cd:paramdoc>The style to use for the heading text. See manual [https://www.pragma-ade.com/general/manuals/ma-cb-en.pdf#page=81 Context: an excursion" section 33], Fonts and font switches, e.g. for large, bold, sans serif section headers use <code>style=\tfa\bf\ss</code>.</cd:paramdoc>
<cd:constant type="cd:style"></cd:constant>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="aftersection">
<cd:paramdoc>Command to run after the section finishes e.g. at a <code>\stopchapter</code> statement.</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
</cd:parameter>
<cd:parameter name="before">
<cd:paramdoc>Command to run before the heading is written</cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
<cd:parameter name="after">
<cd:paramdoc>Command to run after the heading is written, e.g. <code>after={\blank[3cm]}</code></cd:paramdoc>
<cd:constant type="cd:command"></cd:constant>
</cd:parameter>
</cd:example><cd:example title="Special facing pages for chapters">On March 7, 2022, Julian asked on the mailing list about some method to place an image on the facing page of each chapter in a (double-sided) book. Chapters might also end on an even (equivalently, left) page, in which case, an empty right (odd) page should be introduced after so that the next chapter still has its image on its facing (left) page. (https://www.mail-archive.com/ntg-context@ntg.nl/msg101455.html)
In the discussion that ensued, Wolfgang posted the following elegant solution using {{cmd|definepageinjection}} [slightly re-formatted from (https://www.mail-archive.com/ntg-context@ntg.nl/msg101462.html)] — <context source="yes" text="which produces">% to render examples in the wiki\definepapersize[sheet][width=24cm,height=24cm]\definepapersize[page][width=6cm,height=6cm]\setuppapersize[page][sheet]\setuppaper[nx=4, ny=4]\setuparranging [XY]\setupbodyfont[6pt]
<context mode="mkiv" source="yes" text="which produces">% for 'mill'actual example starts here
\setupexternalfigures
[location=default]
[chapter:insert]
[previouspage]
[pagestate=stop,width=\paperwidth]
\setuphead
\starttext
\startchapter [title={MillCow}] [image=millcow]\dorecurse{72}{\samplefile{loremklein}}
\stopchapter
\startchapter [title={Mill}] [image=millhacker]\dorecurse{114}{\samplefile{lorem}}
\stopchapter
\startchapter [title={Mill}] [image=mill]
\dorecurse{72}{\samplefile{loremklein}}
\stopchapter
 
\stoptext
</context> The above snippet is slightly re-formatted from (https://www.mail-archive.com/ntg-context@ntg.nl/msg101462.html).</cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
93

edits

Navigation menu