From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: \placeinitial after a heading
Date: Sat, 25 Jan 2014 12:20:29 +0100 [thread overview]
Message-ID: <52E39DFD.4030501@wxs.nl> (raw)
In-Reply-To: <20140124205400.d52b6611783eec68a7768782@yandex.ru>
On 1/24/2014 5:54 PM, Alexey Kryukov wrote:
> Hi,
>
> If I attempt to insert a drop cap after a heading while the paragraph
> indentation is enabled, I get the following effect: all lines the drop
> cap spans except the first one (e. g. second and third in case of n=3)
> get an additional indent, equal to the \parindent. For example:
>
> \setupinitial[font=Bold sa 4,n=3]
> \setupindenting[yes,1em]
>
> \starttext
>
> \section{Knuth}
>
> \placeinitial
> \input knuth
>
> \stoptext
>
> I suppose this is not the intended behavior :) The problem doesn't
> occur if I enable indenting also for the first paragraph after the
> heading, but in this case, of course, the drop cap itself is indented
> together with its adjacent lines. So the following workaround is
> possible:
>
> \setupinitial[font=Bold sa 4,n=3,
> hoffset=\parindent,distance=-\parindent]
> \setuphead[section][indentnext=yes]
>
> Nevertheless it would be nice if this issue could be fixed.
in the next beta the following works ok
\showframe
\setupbodyfont[12pt]
\setuplayout[height=middle,topspace=1cm,header=0pt]
\setuppagenumbering[alternative=doublesided]
\setupinitial[font=Bold sa 4,n=3]
\starttext
\section{Knuth} \setupinitial[location=text] \placeinitial \input
knuth \par \placeinitial \input knuth \par
\section{Knuth} \setupinitial[location=margin] \placeinitial \input
knuth \par \placeinitial \input knuth \par
\page
\section{Knuth} \setupinitial[location=text] \placeinitial \input
knuth \par \placeinitial \input knuth \par
\section{Knuth} \setupinitial[location=margin] \placeinitial \input
knuth \par \placeinitial \input knuth \par
\page
\setupindenting[yes,1em]
\section{Knuth} \setupinitial[location=text] \placeinitial \input
knuth \par \placeinitial \input knuth \par
\section{Knuth} \setupinitial[location=margin] \placeinitial \input
knuth \par \placeinitial \input knuth \par
\page
\section{Knuth} \setupinitial[location=text] \placeinitial \input
knuth \par \placeinitial \input knuth \par
\section{Knuth} \setupinitial[location=margin] \placeinitial \input
knuth \par \placeinitial \input knuth \par
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2014-01-25 11:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-24 16:54 Alexey Kryukov
2014-01-25 11:20 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E39DFD.4030501@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).