ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Two interline space setup troubles
       [not found] <mailman.284.1266078273.26807.ntg-context@ntg.nl>
@ 2010-02-13 19:11 ` Vyatcheslav Yatskovsky
  2010-02-14 12:23   ` Philipp Gesang
  2010-02-14 13:33   ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-02-13 19:11 UTC (permalink / raw)
  To: ntg-context

Hello,

I have some troubles with interline space setup.

1) I want whole document to have medium interline space. When I put

\setupinterlinespace[medium]

in the preample (before \starttext), it has no effect at all. I want 
keep all style definitions in a separate environment module, so how to 
make this setting 'global'?

2) The inbetween key does not work in the following command:

\definestartstop[example][style={\tfx}, before={\blank[small]}, 
after={\blank[small]}, inbetween={\setupinterlinespace[big]}]

I can write

before={\blank[small]\setupinterlinespace[big]}, 
after={\setupinterlinespace[medium]\blank[small]}

but in this way I hard-code document  interlinespace (i.e., medium) in 
this definition, and this is not elegant solution at all.

Regards,
Vyatcheslav
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Two interline space setup troubles
  2010-02-13 19:11 ` Two interline space setup troubles Vyatcheslav Yatskovsky
@ 2010-02-14 12:23   ` Philipp Gesang
  2010-02-14 13:33   ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Philipp Gesang @ 2010-02-14 12:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi Vyatceslav,
On 2010-02-13 <21:11:34>, Vyatcheslav Yatskovsky wrote:
> Hello,
> 
> I have some troubles with interline space setup.
> 
> 1) I want whole document to have medium interline space. When I put
> 
> \setupinterlinespace[medium]
> 
> in the preample (before \starttext), it has no effect at all. I want
> keep all style definitions in a separate environment module, so how
> to make this setting 'global'?

this is strange, as you can specify line spacing globally using explicit
parameters, e.g.

\setupinterlinespace[line=19pt]                                                                                    
\starttext
\input knuth
\stoptext

this works for me.  The relative dimensions big|small|medium don't have
any noticable effect, though.


Philipp
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

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

* Re: Two interline space setup troubles
  2010-02-13 19:11 ` Two interline space setup troubles Vyatcheslav Yatskovsky
  2010-02-14 12:23   ` Philipp Gesang
@ 2010-02-14 13:33   ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2010-02-14 13:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 13.02.10 20:11, schrieb Vyatcheslav Yatskovsky:
> Hello,
>
> I have some troubles with interline space setup.
>
> 1) I want whole document to have medium interline space. When I put
>
> \setupinterlinespace[medium]
>
> in the preample (before \starttext), it has no effect at all. I want 
> keep all style definitions in a separate environment module, so how to 
> make this setting 'global'?
You can't use relative interlinespacing in MkIV anymore because
\starttext resets your setting. What you can do is to set a absolute
value with \setupinterlinespace[line=18pt].
> 2) The inbetween key does not work in the following command:
>
> \definestartstop[example][style={\tfx}, before={\blank[small]}, 
> after={\blank[small]}, inbetween={\setupinterlinespace[big]}]
>
> I can write
>
> before={\blank[small]\setupinterlinespace[big]}, 
> after={\setupinterlinespace[medium]\blank[small]}
>
> but in this way I hard-code document  interlinespace (i.e., medium) in 
> this definition, and this is not elegant solution at all.
\definestartstop
   [example]
   [before={\blank[small]},
    after={\blank[small]},
    style=\tfx,
    commands={\setupinterlinespace[big]}]

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


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

end of thread, other threads:[~2010-02-14 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.284.1266078273.26807.ntg-context@ntg.nl>
2010-02-13 19:11 ` Two interline space setup troubles Vyatcheslav Yatskovsky
2010-02-14 12:23   ` Philipp Gesang
2010-02-14 13:33   ` 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).