ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \placeinitial after a heading
@ 2014-01-24 16:54 Alexey Kryukov
  2014-01-25 11:20 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Kryukov @ 2014-01-24 16:54 UTC (permalink / raw)
  To: ntg-context

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.

Also, is it possible to explicitly apply case conversion commands to a
drop cap? Setting the 'style' option to \WORD or \word currently seems
to have no effect.

-- 
Regards,
Alexey Kryukov <anagnost at yandex dot ru>

Moscow State University
Faculty of History
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: \placeinitial after a heading
  2014-01-24 16:54 \placeinitial after a heading Alexey Kryukov
@ 2014-01-25 11:20 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2014-01-25 11:20 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-25 11:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-24 16:54 \placeinitial after a heading Alexey Kryukov
2014-01-25 11:20 ` Hans Hagen

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).