From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46624 Path: news.gmane.org!not-for-mail From: "Alan STONE" Newsgroups: gmane.comp.tex.context Subject: Re: line spacing in frame with centered text Date: Mon, 5 Jan 2009 16:43:51 +0100 Message-ID: <326847810901050743r4fd0c1f5p3ee3fbb29e39ce89@mail.gmail.com> References: <326847810901030912v44dfbe23je14223627b8ed37@mail.gmail.com> <6221A830-6FB5-4845-B579-13A54DE020EF@gmail.com> <326847810901040815x3be7a973t9a14e6cc3bfc55d9@mail.gmail.com> <84A159B4-90C9-4490-8772-E6B0E5980917@gmail.com> <326847810901040926g66358e1eod0d301a0814e2745@mail.gmail.com> <326847810901041130r32d96abdy516cf174e62baab4@mail.gmail.com> <326847810901050134m72ffd735t65a1bb4e9fdc4df1@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0709968538==" X-Trace: ger.gmane.org 1231172419 12927 80.91.229.12 (5 Jan 2009 16:20:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2009 16:20:19 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 05 17:21:29 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LJsCm-0004Ig-Oo for gctc-ntg-context-518@m.gmane.org; Mon, 05 Jan 2009 17:21:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5AC201FC24; Mon, 5 Jan 2009 17:20:11 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17407-04; Mon, 5 Jan 2009 17:20:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7F7A71FC61; Mon, 5 Jan 2009 17:16:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B2601FB5B for ; Mon, 5 Jan 2009 17:16:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16024-08 for ; Mon, 5 Jan 2009 17:15:19 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by ronja.ntg.nl (Postfix) with ESMTP id DC59B1FC7B for ; Mon, 5 Jan 2009 16:43:51 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id c10so843197nfd.44 for ; Mon, 05 Jan 2009 07:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=tOQ3I6CO8MJ3XFCnGwdLzi/7jEkvUaLkK+2mNwGRPEY=; b=NjwXdlj48Yz47z5Nj8axOqY1FKJfunO+Z/AIc+ZjnAkQHhXhjPoSsg7vLw9OTgf1Jp 1Ed67Qwa4jBFMbRPKuU6jJabfAZJbK3t98kFDITqsoDHsDCxYK0ubxVBvFm6YtEDYPyO JgaTkElJPpBte0eosvKAZBa7kEKx6A5D2CwOE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=LwgJnUYLIo5d2MMSkLVIU+lmjsYYuHfi1AaQdgCRslmM8nuPdGpy6dK27RjHXix6LD ZjRH8WowwZ3j6PZ4dF+OIMIXTtObYMKE+j7gv1z2C8pfDWrpWozTTKFTm8imi28p5fWY QFCUZwlMJHtH3opOWYh5WpLnZvde5WmMmQdkE= Original-Received: by 10.210.88.3 with SMTP id l3mr8645200ebb.88.1231170231669; Mon, 05 Jan 2009 07:43:51 -0800 (PST) Original-Received: by 10.210.21.16 with HTTP; Mon, 5 Jan 2009 07:43:51 -0800 (PST) In-Reply-To: <326847810901050134m72ffd735t65a1bb4e9fdc4df1@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:46624 Archived-At: --===============0709968538== Content-Type: multipart/alternative; boundary="----=_Part_28246_30341822.1231170231659" ------=_Part_28246_30341822.1231170231659 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Indeed, I goofed big time... It was most useful to refresh my (lack of) understanding about how TeX's interline spacing works. Alan On Mon, Jan 5, 2009 at 10:34 AM, Alan STONE wrote: > 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 ------=_Part_28246_30341822.1231170231659 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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 <software.list.1es9s@gmail.com> wrote:
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
------=_Part_28246_30341822.1231170231659-- --===============0709968538== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0709968538==--