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
Am 03.01.2009 um 18:12 schrieb Alan STONE:
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}
Add a \par after the last line. \def\myFrameTextA{Text\\In A\\Frame\par} \def\myFrameTextB{Text\blank[medium]In A\blank[medium]Frame\par} Wolfgang
Re: files in attachment Why is the (local) interline space (set to 30pt or 2ex) so small compared to the frame's local (switched to 38pt) bodyfont ? At first I thought it was related to \setupbodyfont but \setupbodyfont[38pt] doesn't make a difference. How do you get the (local) interline spacing (pt or ex) in proportion to the local (switched to) bodyfont ? Alan On Sat, Jan 3, 2009 at 7:29 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 03.01.2009 um 18:12 schrieb Alan STONE:
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}
Add a \par after the last line.
\def\myFrameTextA{Text\\In A\\Frame\par} \def\myFrameTextB{Text\blank[medium]In A\blank[medium]Frame\par}
Wolfgang
Am 04.01.2009 um 17:15 schrieb Alan STONE:
Re: files in attachment
Why is the (local) interline space (set to 30pt or 2ex) so small compared to the frame's local (switched to 38pt) bodyfont ?
At first I thought it was related to \setupbodyfont but \setupbodyfont[38pt] doesn't make a difference.
How do you get the (local) interline spacing (pt or ex) in proportion to the local (switched to) bodyfont ?
You're funny, as you can see in my example below your text alone has a height of 26.18pt and you set a line distance of 30pt. \starttext \setbox\scratchbox\hbox{\switchtobodyfont[38pt]Text In A Frame} \the\htdp\scratchbox \stoptext What do you expect? TeX does only what you tell him but you get a better result with a bigger line distance, the default value from ConTeXt is 2.8ex. Wolfgang
On Sun, Jan 4, 2009 at 5:31 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 04.01.2009 um 17:15 schrieb Alan STONE:
Re: files in attachment
Why is the (local) interline space (set to 30pt or 2ex) so small compared to the frame's local (switched to 38pt) bodyfont ?
At first I thought it was related to \setupbodyfont but \setupbodyfont[38pt] doesn't make a difference.
How do you get the (local) interline spacing (pt or ex) in proportion to the local (switched to) bodyfont ?
You're funny, as you can see in my example below your text alone has a height of 26.18pt and you set a line distance of 30pt.
\starttext
\setbox\scratchbox\hbox{\switchtobodyfont[38pt]Text In A Frame}
\the\htdp\scratchbox
\stoptext
What do you expect? TeX does only what you tell him but you get
From this example I conclude TeX does not do what you tell it to do.
I must be missing something... ?
a better result with a bigger line distance, the default value from ConTeXt is 2.8ex.
Wolfgang
Am 04.01.2009 um 18:26 schrieb Alan STONE:
\starttext
\setbox\scratchbox\hbox{\switchtobodyfont[38pt]Text In A Frame}
\the\htdp\scratchbox
\stoptext
From this example I conclude TeX does not do what you tell it to do.
I must be missing something... ?
What do you not understand in my example? Wolfgang
On Sun, Jan 4, 2009 at 6:35 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 04.01.2009 um 18:26 schrieb Alan STONE:
\starttext
\setbox\scratchbox\hbox{\switchtobodyfont[38pt]Text In A Frame}
\the\htdp\scratchbox
\stoptext
From this example I conclude TeX does not do what you tell it to do.
I must be missing something... ?
What do you not understand in my example?
From what I understand of it: asked 38pt, output 26.18pt
Am 04.01.2009 um 20:30 schrieb Alan STONE:
On Sun, Jan 4, 2009 at 6:35 PM, Wolfgang Schuster
wrote:
Am 04.01.2009 um 18:26 schrieb Alan STONE:
\starttext
\setbox\scratchbox\hbox{\switchtobodyfont[38pt]Text In A Frame}
\the\htdp\scratchbox
\stoptext
From this example I conclude TeX does not do what you tell it to do.
I must be missing something... ?
What do you not understand in my example?
From what I understand of it: asked 38pt, output 26.18pt
The 26.18pt are only the height of the sample text, not each character has the height of the font size which includes the height and depth. You can see here the output is correct and only characters with large height and depth match the given fontsize. \starttext \setbox\scratchbox\hbox{\switchtobodyfont[38pt](} \the\htdp\scratchbox % 37.45pt \stoptext I show you in another example why you value for the interlinespace is to small for characters with depth. \starttext \vbox {\switchtobodyfont[38pt] \setupinterlinespace[line=30pt] \lineskiplimit-\maxdimen Big text\crlf written in\crlf three rows\par} \stoptext Wolfgang
Thanks a lot for the clarification Wolfgang. I guess I was still playing with this kind of major flawed thinking coming from WYSIWYG wordprocessors where isn't concerned thinking about these technical aspects (what's underneath), instead type/edit as characters appear on screen in real time, then when switching to typesetting systems extrapolate and expect things to work in the same way. I'll digg into the manuals' corresponding chapters to get more familiar with these technicalities and let them sink in. Best, Alan On Sun, Jan 4, 2009 at 8:54 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 04.01.2009 um 20:30 schrieb Alan STONE:
On Sun, Jan 4, 2009 at 6:35 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:
Am 04.01.2009 um 18:26 schrieb Alan STONE:
\starttext
\setbox\scratchbox\hbox{\switchtobodyfont[38pt]Text In A Frame}
\the\htdp\scratchbox
\stoptext
From this example I conclude TeX does not do what you tell it to do.
I must be missing something... ?
What do you not understand in my example?
From what I understand of it: asked 38pt, output 26.18pt
The 26.18pt are only the height of the sample text, not each character has the height of the font size which includes the height and depth.
You can see here the output is correct and only characters with large height and depth match the given fontsize.
\starttext \setbox\scratchbox\hbox{\switchtobodyfont[38pt](} \the\htdp\scratchbox % 37.45pt \stoptext
I show you in another example why you value for the interlinespace is to small for characters with depth.
\starttext
\vbox {\switchtobodyfont[38pt] \setupinterlinespace[line=30pt] \lineskiplimit-\maxdimen Big text\crlf written in\crlf three rows\par}
\stoptext
Wolfgang
Indeed, I goofed big time...
It was most useful to refresh my (lack of) understanding about how
TeX's interline spacing works. <grin>
Alan
On Mon, Jan 5, 2009 at 10:34 AM, Alan STONE
Thanks a lot for the clarification Wolfgang.
I guess I was still playing with this kind of major flawed thinking coming from WYSIWYG wordprocessors where isn't concerned thinking about these technical aspects (what's underneath), instead type/edit as characters appear on screen in real time, then when switching to typesetting systems extrapolate and expect things to work in the same way.
I'll digg into the manuals' corresponding chapters to get more familiar with these technicalities and let them sink in.
Best, Alan On Sun, Jan 4, 2009 at 8:54 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 04.01.2009 um 20:30 schrieb Alan STONE:
On Sun, Jan 4, 2009 at 6:35 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:
Am 04.01.2009 um 18:26 schrieb Alan STONE:
\starttext
\setbox\scratchbox\hbox{\switchtobodyfont[38pt]Text In A Frame}
\the\htdp\scratchbox
\stoptext
From this example I conclude TeX does not do what you tell it to do.
I must be missing something... ?
What do you not understand in my example?
From what I understand of it: asked 38pt, output 26.18pt
The 26.18pt are only the height of the sample text, not each character has the height of the font size which includes the height and depth.
You can see here the output is correct and only characters with large height and depth match the given fontsize.
\starttext \setbox\scratchbox\hbox{\switchtobodyfont[38pt](} \the\htdp\scratchbox % 37.45pt \stoptext
I show you in another example why you value for the interlinespace is to small for characters with depth.
\starttext
\vbox {\switchtobodyfont[38pt] \setupinterlinespace[line=30pt] \lineskiplimit-\maxdimen Big text\crlf written in\crlf three rows\par}
\stoptext
Wolfgang
-- Best, Alan * TeX engine = LuaTeX *ConTeXt minimals ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english * Ubuntu 8.04 Hardy Heron
Am 05.01.2009 um 10:34 schrieb Alan STONE:
Thanks a lot for the clarification Wolfgang.
I guess I was still playing with this kind of major flawed thinking coming from WYSIWYG wordprocessors where isn't concerned thinking about these technical aspects (what's underneath), instead type/edit as characters appear on screen in real time, then when switching to typesetting systems extrapolate and expect things to work in the same way.
participants (2)
-
Alan STONE
-
Wolfgang Schuster