{\structureuservariable{image}}{\midaligned{\externalfigure[\structureuservariable{image}]}\endgraf}
\headsetupspacing
\setbox\scratchbox\hbox{\headnumbercontent}
\hangindent\dimexpr\wd\scratchbox+\headnumberdistance\relax
\noindent
\box\scratchbox\hskip\headnumberdistance
Henri Menke <mailto:henrime...@gmail.com>
9. August 2016 um 10:33
Dear list,
I just documented \headsetupspacing in the Garden. While doing so, I
noticed that \headsetupspacing is missing from the ConTeXt commands
reference (setup-en.pdf). How can I add commands there?
I added the c
Dear list,
I just documented \headsetupspacing in the Garden. While doing so, I noticed
that \headsetupspacing is missing from the ConTeXt commands reference
(setup-en.pdf). How can I add commands there?
Cheers, Henri
Dear list,
I just documented \headsetupspacing in the wiki. However, due to my stupidity,
I created the page
http://wiki.contextgarden.net/headsetupspacing
rather than
http://wiki.contextgarden.net/Command/headsetupspacing
Instead of moving the first to the second, I copied over the content
and the
\defineheadplacement has also a alternative key which is needed when you
want an inline heading (e.g. \setuphead[...][alternative=text]).
% No headalternative here
\startsetups[partpage]
\startmakeup[part]
\headsetupspacing
\headnumbercontent
\blank[big]
ion "\setuphead[part][renderingsetup=partpage]" we could
simplify to:
% No headalternative here
\startsetups[partpage]
\startmakeup[part]
\headsetupspacing
\headnumbercontent
\blank[big]
\headtextcontent
\stopmakeup
\stopsetups
\definemakeup
[par
age]
\startsetups[partpage]
\startmakeup[part]
\headsetupspacing
\headnumbercontent
\blank[big]
\headtextcontent
\stopmakeup
\stopsetups
\definemakeup
[part]
[align=middle,
top=\vfill\vfill,
bottom=\vfill\vfill\vfill]
\setuphead
[part]
[placehead=yes,
[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 {
[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 {
ayout[rightmargindistance=1cm]
\setuphead[section][alternative=inmargin]
\showframe
\starttext
\dorecurse{16}{\section{Blah}
\input tufte}
\stoptext
\startsetups[\??headrenderings:\v!inmargin]
\vbox {
\headsetupspacing
\begstrut
\dontleavehmode
\ifcondit
Has to be \defineheadalternative:
\defineheadalternative[mysection][renderingsetup=mysection]
\startsetups[mysection]
\vbox\bgroup
\headsetupspacing
\strut\headnumbercontent\par
\begstrut\headtextcontent\endstrut
\egroup
\stopsetups
\setuplabeltext[en][section={, Section
Am 11.06.2013 um 15:53 schrieb Jan Pohanka :
>
>> \definesectionalternative[mysection][renderingsetup=mysection]
>>
>> \startsetups[mysection]
>> \vbox\bgroup
>> \headsetupspacing
>> \strut\headnumbercontent\par
>> \begstrut\headtex
\definesectionalternative[mysection][renderingsetup=mysection]
\startsetups[mysection]
\vbox\bgroup
\headsetupspacing
\strut\headnumbercontent\par
\begstrut\headtextcontent\endstrut
\egroup
\stopsetups
\setuplabeltext[en][section={}{Section]
\setuphead[section][alternative
stion is what to do if I need to use the command key to apply more
> complex formating using \framed etc.
> At least I need to make \section{My section title} to print
>
> I. Section
> My section title
You can create your own section layout.
\definesectionalternative[mysect
more
advanced control is needed)
\defineheadalternative
[mymiddle]
[alternative=horizontal,
renderingsetup=head:mymiddle]
\startsetups[head:mymiddle]
\ruledvbox {
\headsetupspacing
\veryraggedcenter
\begstrut
\ifconditional\headshown
]
> [alternative=vertical,
>renderingsetup=headrenderings:middle_nolinebreak]
>
> \startsetups[headrenderings:middle_nolinebreak]
> \vbox {
> \headsetupspacing
> \veryraggedcenter
> \let\\\endgraf
> \let\crlf\endgraf
> \ifconditional\headshownumber
>
ion]
[alternative=middle_nolinebreak]
\defineheadalternative
[middle_nolinebreak]
[alternative=vertical,
renderingsetup=headrenderings:middle_nolinebreak]
\startsetups[headrenderings:middle_nolinebreak]
\vbox {
\headsetupspacing
\veryraggedcenter
\let\\\endgraf
\let\crlf\endg
gin-text, whereas your example is fine.
When you want more control about the layout of your header use
\defineheadalternative to create it:
\defineheadalternative
[Subject]
[alternative=horizontal,
renderingsetup=Subject]
\startsetups[Subject]
\headsetupspacing
\inmargin{TEST}
ubject]
[alternative=horizontal,
renderingsetup=Subject]
\startsetups[Subject]
\headsetupspacing
\inmargin{TEST}
\stopsetups
\setuphead
[subject]
[alternative=Subject,
distance=0pt]
\showframe
\starttext
\startsubject
up:mysection]
\defineframedtext
[mysectionframe]
[width=broad,
align=middle,
frame=off,
bottomframe=on]
\startsetups [setup:mysection]
\headsetupspacing
\startmysectionframe
\ifconditional\headshownumber
\headnumbercontent
\hskip\headnumberdistance
\fi
\headt
[mine]
[renderingsetup=mine]
\startsetups [mine]
\headsetupspacing
\startframedtext [offset=none, frame=off]
\headnumbercontent\\
\headtextcontent
\stopframedtext
\stopsetups
\setuphead
[section]
[alternative=mine]
\starttext
\startsection [title=FooBar]
\stopsection
\stoptext
=mine]
\startsetups [mine]
\headsetupspacing
\startframedtext [offset=none, frame=off]
\headnumbercontent\\
\headtextcontent
\stopframedtext
\stopsetups
\setuphead
[section]
[alternative=mine]
\starttext
\startsection [title=FooBar]
\sto
netoo,
left=(,
right=)]
\startsetups[minetoo]
\headsetupspacing
\ifconditional\headshownumber
\headalternativeparameter{left}
\headnumbercontent
\headalternativeparameter{right}
\fi
\quad
\headtextcontent
\stopsetups
\setuphead[section][alternative
hese fetch content:
\headnumbercontent \headtextcontent
These are dimensions:
\headwidth
\headtextwidth
\headnumberdistance
\headnumberwidth
This is for local spacing setup:
\headsetupspacing
These are conditionals
\headshownumber
\headisdisplay
Maybe these names will change. Setups are al
24 matches
Mail list logo