ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line
@ 2020-11-16 20:07 Garulfo
  2020-11-16 20:17 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Garulfo @ 2020-11-16 20:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

with a simple application of \framed, see MWE below, the space between 
the first line and the second line doesn't match with the others (gap is 
bigger).

I get similar results:
- with my computer and live.contextgarden.net
- with context 2019.03.21 and 2020.11.08


1. Is it the expected behavior ?
2. What is the recommended way to benefit from the functionnalities of
    \framed but without this effect ?


Many thanks again for your support.



== MWE =================================================================

\setupbodyfont[sans, 16pt]

\starttext

\framed[align=flushleft,offset=0pt,frame=off,foregroundcolor=darkred]
{\WORD\tfb
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce}

\blank[big]
\startalignment[flushleft]
{\WORD\tfb
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce}
\stopalignment

\blank[big]
\vbox{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}

\blank[big]
\ruledvtop{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}

\blank[big]
\framed[offset=0pt,frame=off,foregroundcolor=darkgreen]
{\ruledvtop{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}}

\stoptext
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line
  2020-11-16 20:07 \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line Garulfo
@ 2020-11-16 20:17 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2020-11-16 20:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Garulfo schrieb am 16.11.2020 um 21:07:
> Hi,
>
> with a simple application of \framed, see MWE below, the space between 
> the first line and the second line doesn't match with the others (gap 
> is bigger).
>
> I get similar results:
> - with my computer and live.contextgarden.net
> - with context 2019.03.21 and 2020.11.08
>
>
> 1. Is it the expected behavior ?

Yes.

> 2. What is the recommended way to benefit from the functionnalities of
>    \framed but without this effect ?

Add "strut=no" to \framed, you can see the same effect when you add 
\strut at the beginning of the first line in the other examples. You can 
add \showstruts at the begin of your document to see the effect of \strut.

Wolfgang

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-11-16 20:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 20:07 \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line Garulfo
2020-11-16 20:17 ` Wolfgang Schuster

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