ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andreas Harder <aharder@uni-koblenz.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: interline spacing, me too
Date: Thu, 15 Oct 2009 18:32:28 +0200	[thread overview]
Message-ID: <969E906C-973F-423C-B71C-B014BE6F65C4@uni-koblenz.de> (raw)
In-Reply-To: <fe8d59da0910150639g68520d58s7d90babd0e7df271@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

Hi,

please look at the attachment. I want different interline spacing for  
big, normal and small font sizes. What is the best approach?

I tried \setupinterlinespace[big] (works only after \starttext!) or  
\setupinterlinespace[line=3.5ex] (works also before \starttext) but  
this changes, as intended, interline spacing as a whole.

There is also \setupbodyfontenvironment (Problem with \chapter{…} or  
did I something wrong?). Now I've to use \switchtobodyfont[…] instead  
of \tfa and so on. Is there a trick?


[-- Attachment #2: test-interlinespacing.pdf --]
[-- Type: application/pdf, Size: 11941 bytes --]

[-- Attachment #3: test-interlinespacing.tex --]
[-- Type: application/octet-stream, Size: 1861 bytes --]


\starttypescript [serif] [MinionPro] [name]
  \definefontsynonym [Serif]       [Minion-Regular]
  \definefontsynonym [SerifItalic] [Minion-Italic]
\stoptypescript

\starttypescript [serif] [MinionPro] [name]
  \definefontsynonym [Minion-Regular] [name:MinionPro-Regular] [features=default] 
  \definefontsynonym [Minion-Italic]  [name:MinionPro-It]      [features=default]
\stoptypescript

\starttypescript [MinionPro]
  \definetypeface [minion] [rm] [serif] [MinionPro] [default] 
\stoptypescript


\usetypescript[MinionPro]
\setupbodyfont[minion,12pt]


\setupwhitespace[big]

% \setupinterlinespace[big]        % not OK
% \setupinterlinespace[line=3.5ex] % OK

%% is this the best way to go?
% \setupbodyfontenvironment [minion] [default] [interlinespace=3.1ex]
\setupbodyfontenvironment [minion] [18pt] [interlinespace=10ex]
\setupbodyfontenvironment [minion] [12pt] [interlinespace=3.5ex]
\setupbodyfontenvironment [minion] [10pt] [interlinespace=3.1ex]
\setupbodyfontenvironment [minion]  [9pt] [interlinespace=2.9ex]

%% there's no Difference between \setupbodyfontenvironment and
%% \definebodyfontenvironment? 


\setuphead
  [chapter]
  [style={\switchtobodyfont[18pt]}]
  % [style=\tfa]

\setupdelimitedtext
  [blockquote]
  [style={\switchtobodyfont[10pt]}] % no bodyfont-command

\setupfootnotes[bodyfont=9pt]


\starttext  \showframe[text]

% \setupinterlinespace[big] % OK


\chapter{The space before and after the first line ist bigger than it
  should. The rest ist not proberly interline spaced. The space before and after the first line ist bigger than it
  should. The rest ist not proberly interline spaced.}

\input tufte 


\startblockquote
  \input tufte \par \input tufte \par % !!
\stopblockquote

\input tufte

And now a footnote\footnote{\input tufte}

\stoptext

%%% Local Variables: 
%%% mode: context
%%% TeX-master: t
%%% End: 

[-- Attachment #4: Type: text/plain, Size: 32 bytes --]



Thank you in advance

	Andreas

[-- Attachment #5: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2009-10-15 16:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 13:39 Problem with \setupinterlinespace luigi scarso
2009-10-15 13:50 ` Peter Rolf
2009-10-15 13:59   ` luigi scarso
2009-10-15 16:32 ` Andreas Harder [this message]
2009-10-15 16:54   ` interline spacing, me too Peter Rolf
2009-10-15 19:46   ` Taco Hoekwater
2009-10-15 19:55     ` Taco Hoekwater
2009-10-15 21:53       ` Andreas Harder
2009-10-16  6:13         ` Taco Hoekwater
2009-10-16 12:12           ` Hans Hagen
2009-10-16 12:30             ` Andreas Harder
2009-10-16 12:35               ` Hans Hagen
2009-10-16 12:41                 ` Andreas Harder
2009-10-16 13:39                   ` Aditya Mahajan
2009-10-16 13:58                     ` Andreas Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=969E906C-973F-423C-B71C-B014BE6F65C4@uni-koblenz.de \
    --to=aharder@uni-koblenz.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).