ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem between textrule and setupindenting ?
@ 2014-05-03  7:34 Bertrand Masson
  2014-05-06 12:44 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Bertrand Masson @ 2014-05-03  7:34 UTC (permalink / raw)
  To: ntg-context

Hello,
In the following code, the second ruleis indented.
How to remove this indentation ?

%code%
\setuppapersize[A5]
\setupindenting[small,yes]
\setuptextrules[inbetween=\noindentation]
\starttext
\starttextrule{introduction}
Once upon a time \unknown
\stoptextrule
\stoptext
%code%

Many thanks,
Bertrand
___________________________________________________________________________________
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: problem between textrule and setupindenting ?
  2014-05-03  7:34 problem between textrule and setupindenting ? Bertrand Masson
@ 2014-05-06 12:44 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2014-05-06 12:44 UTC (permalink / raw)
  To: ntg-context

On 5/3/2014 9:34 AM, Bertrand Masson wrote:
> Hello,
> In the following code, the second ruleis indented.
> How to remove this indentation ?
>
> %code%
> \setuppapersize[A5]
> \setupindenting[small,yes]
> \setuptextrules[inbetween=\noindentation]
> \starttext
> \starttextrule{introduction}
> Once upon a time \unknown
> \stoptextrule
> \stoptext
> %code%

it's a buglet ... add this to cont-new.mkiv:

\unprotect

\def\pack_textrule_following#1%
   {\doifelsenothing{#1}
      {\ifhmode
         \endgraf
       \fi
 
\doifelse{\directtextrulesparameter\c!depthcorrection}\v!on\pack_textrule_correct_depth_yes\pack_textrule_correct_depth_nop
       \nointerlineskip
       \noindent\vbox
         {\color[\directtextrulesparameter\c!rulecolor]
 
{\hrule\s!depth\directtextrulesparameter\c!rulethickness\s!height\zeropoint\s!width\availablehsize}}}
      {\pack_textrule_with_text{#1}}%
    \ifvmode
      \prevdepth\zeropoint
    \fi}

\protect

fixed in next beta

-----------------------------------------------------------------
                                           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-05-06 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-03  7:34 problem between textrule and setupindenting ? Bertrand Masson
2014-05-06 12:44 ` 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).