On 5/6/2014 7:08 AM, Thangalin wrote:
\setuphead
[section]
[placehead=empty,
page=yes,
after={\blank[0em]\blank[disable]}]
That works for me. I don't know if it is "better," but if it works for
you as well then it is probably the way to go.
mtx-context | current version: 2014.
> after={\blank[0em]\blank[disable]}]
Yes it also works, thank you Thangalin. So here is the final solution (I
have added the 'nowhite' keyword in the second blank to kill whitespaces
when they are active) to get real empty heads (sections here) in the
document:
\setupwhitespace[line]
\setuphea
\setuphead
[section]
[placehead=empty,
page=yes,
after={\blank[0em]\blank[disable]}]
That works for me. I don't know if it is "better," but if it works for
you as well then it is probably the way to go.
mtx-context | current version: 2014.01.03 00:40
> Avoid vskip.
Do you have a better solution?
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
web
Avoid vskip.
http://wiki.contextgarden.net/Command/vskip
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-
For those who are interested, I've finally solved my problem (the vertical
space before a subsection which was not automatically swallowed at the top
of a page when the page started with an empty section) by using the pair
'after={\vskip 0em\blank[disable]}' for sections:
\setuphead
[section]
Thanks Wolfgang. I could even have sections in the TOC with
'\setuptexttexts[{\placerawheaddata[section]}]'.
However, how can I start a new page at each new section? The 'page=yes'
pair does no longer work with your solution 'placehead=hidden' (since the
head is not placed I guess). I also tried
Am 03.05.2014 um 16:32 schrieb Maggyero :
> A more explicit minimal example of the problem:
>
>
> \setupheadertexts[section]
> \setuphead[section][%
> placehead=empty,
> before=,
> after=]
> \setuphead[subsection][%
> placehead=yes,
> before={\blank[line]},
> after={\bla
A more explicit minimal example of the problem:
\setupheadertexts[section]
\setuphead[section][%
placehead=empty,
before=,
after=]
\setuphead[subsection][%
placehead=yes,
before={\blank[line]},
after={\blank[line]}]
\starttext
\showframe
\section{My section}
\subsection{M
> before=\empty,
\empty is not even required. The problem with your solution (setting
'before=' i.e. empty) is that there is also no whitespace before a
subsection which doesn't start on a new page.
Any better ideas?
\setuphead[section][%
placehead=empty,
before=,
after=]
\setuphead[subsection][%
placehead=yes,
before=\empty,
after={\blank[line]}]
\setupheadertexts[section]
\starttext
\showframe
\section{My section}
\subsection{My subsection (whitespace before)} % Here is my problem.
\p
Hello,
Here after is my problem:
\setuphead[section][%
placehead=empty,
before=,
after=]
\setuphead[subsection][%
placehead=yes,
before={\blank[line]},
after={\blank[line]}]
\setupheadertexts[section]
\starttext
\showframe
\section{My section}
\subsection{My subsection
12 matches
Mail list logo