Changes

Jump to navigation Jump to search
495 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>
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 mode="mkxl" source="yes" text="which produces">% for 'mill'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] % 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></cd:example></cd:examples>
93

edits

Navigation menu