ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* line spacing in frame with centered text
@ 2009-01-03 17:12 Alan STONE
  2009-01-03 18:29 ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Alan STONE @ 2009-01-03 17:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1382 bytes --]

Hi,

How do you get a uniform line spacing in the following frames where it's not
the case ?

\setuplayout[header=0pt,footer=0pt]

\def\myFrameSetupA{\setupframed[width=\textwidth,frame=on,top=\vss,bottom=\vss,align=middle]}
\def\myFrameSetupB{\setupframed[width=\textwidth,frame=on,location=middle,align=middle,offset=15pt]}

\def\myFrameTextA{Text\\In A\\Frame}
\def\myFrameTextB{Text\blank[medium]In A\blank[medium]Frame}

\def\myFrameA{\framed[height=50mm]{\bf\myFrameTextA}}
\def\myFrameB{\framed[height=50mm]{\bf\myFrameTextB}}
\def\myFrameC{\framed[height=50mm]{\switchtobodyfont[35pt]\bf\myFrameTextA}}
\def\myFrameD{\framed[height=50mm]{\switchtobodyfont[35pt]\bf\myFrameTextB}}

\def\myFrameOne{\myFrameSetupA\myFrameA}  % OK
\def\myFrameTwo{\myFrameSetupA\myFrameB}   % OK
\def\myFrameThree{\myFrameSetupA\myFrameC}  % line spacing is not uniform
\def\myFrameFour{\myFrameSetupA\myFrameD}  % line spacing is not uniform

\def\myFrameFive{\myFrameSetupB\myFrameA}  % OK
\def\myFrameSix{\myFrameSetupB\myFrameB}   % OK
\def\myFrameSeven{\myFrameSetupB\myFrameC} % line spacing is not uniform
\def\myFrameEight{\myFrameSetupB\myFrameD}  % line spacing is not uniform

\starttext
 \myFrameOne
 \blank
 \myFrameTwo
 \blank
 \myFrameThree
 \blank
 \myFrameFour

 \page

 \myFrameFive
 \blank
 \myFrameSix
 \blank
 \myFrameSeven
 \blank
 \myFrameEight
\stoptext

-- 
Best,
Alan

[-- Attachment #1.2: Type: text/html, Size: 1907 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2009-01-05 17:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-03 17:12 line spacing in frame with centered text Alan STONE
2009-01-03 18:29 ` Wolfgang Schuster
2009-01-04 16:15   ` Alan STONE
2009-01-04 16:31     ` Wolfgang Schuster
2009-01-04 17:26       ` Alan STONE
2009-01-04 17:35         ` Wolfgang Schuster
2009-01-04 19:30           ` Alan STONE
2009-01-04 19:54             ` Wolfgang Schuster
2009-01-05  9:34               ` Alan STONE
2009-01-05 15:43                 ` Alan STONE
2009-01-05 17:53                 ` 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).