Changes

Jump to navigation Jump to search
1,153 bytes removed ,  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>
<context source="yes" text="which produces">
% to render examples in the wiki\setuppapersizedefinepapersize[A8sheet][A5width=24cm,landscapeheight=24cm]\setuppaperdefinepapersize[page][nxwidth=46cm, nyheight=26cm]\setuplayoutsetuppapersize[page][locationsheet]\setuppaper[nx=middle4, markingny=on4]
\setuparranging [XY]
\setupbodyfont[6pt]
% actual example starts here\setupexternalfigures [location=default] \definepageinjectionalternative [chapter:image] [renderingsetup=pageinjection:chapter:image]
\startsetups [pageinjection:chapter:image]setuppagenumbering \clip [widthalternative=\framedwidth,height=\framedheightdoublesided] {\centerbox{% \externalfigure [\dummyparameter{name}] [%factor=, width=\structureuservariable{width}, height=\structureuservariable{height}, orientation=\structureuservariable{rotation}]% }} \stopsetups
\definepageinjection
[chapter:start]
[empty]
[page=left]
\definepageinjection
[chapter:insert]
[previouspage]
[alternativepagestate=chapter:imagestop, pagestatewidth=stop\paperwidth]
\setuphead
[chapter]
[beforesection={\pageinjection[chapter:start]},
insidesection={\pageinjection[chapter:insert][name=\structureuservariable{image}]}]
\setuphead [chapter] [beforesection={\pageinjection[chapter:start]},% use if images are regularly numbered chap-cover-1, chap-cover-2, ...% insidesection={\pageinjection[chapter:insert][name={chap-cover-\namedheadnumber{chapter}}]}, insidesection={\pageinjection[chapter:insert][name={\structureuservariable{image}}]}, ]starttext
\startchapter [title={Cow}] [image=cow]
\dorecurse{2}{\samplefile{klein}}
\stopchapter
\setuppagenumbering startchapter [title={Mill}] [alternativeimage=doublesidedhacker]\dorecurse{4}{\samplefile{lorem}}\stopchapter
\setupexternalfigures [location=default]  \starttext \startchapter [title={Mill}] [image=cow-black,rotation=90,width=\paperheight] \dorecurse{7}{\samplefile{lorem}} \stopchapter  \startchapter [title={Mill}] [image=cow-brown, rotation=-90,width=\paperheight] \dorecurse{11}{\samplefile{lorem}} \stopchapter  \startchapter [title={Mill}] [image=cow, rotation=-90,width=\paperheight] \dorecurse{7}{\samplefile{lorem}} \stopchapter  \startchapter [title={Mill}] [image=hacker, rotation=90,width=\paperheight] \dorecurse{7}{\samplefile{lorem}} \stopchapter  \startchapter [title={Mill}] [image=spider, rotation=-45,width=\paperwidth] \dorecurse{11}{\samplefile{lorem}} \stopchapter  \startchapter [title={Mill}] [image=mill, height=\paperheight] \dorecurse{72}{\samplefile{loremklein}} \stopchapter \stoptext
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
93

edits

Navigation menu