Re: [NTG-context] \placeinitial after a heading

2014-01-25 Thread Hans Hagen

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
___


[NTG-context] \placeinitial after a heading

2014-01-24 Thread Alexey Kryukov
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
___