ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupinterlinespace questions
@ 2011-01-10 19:41 Florian Wobbe
  2011-01-10 21:22 ` Wolfgang Schuster
  2011-01-10 22:13 ` Philipp Gesang
  0 siblings, 2 replies; 11+ messages in thread
From: Florian Wobbe @ 2011-01-10 19:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

a) this minimal example does not work as expected. The first column is not justified correctly on top. This does not change, even when swapping small, big, medium (e.g. make 1st col medium and 2nd small). The offset stays the same regardless of the linespacing.

\starttext
\startcolumns[n=3]
\setupinterlinespace[small]
\input knuth
\column
\setupinterlinespace[medium]
\input knuth
\column
\setupinterlinespace[big]
\input knuth
\stopcolumns
\stoptext

b) Is there a possibility to use relative sizes like \setupinterlinespace[2*big] (which does not work)?

Best,
Florian

___________________________________________________________________________________
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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-10 19:41 \setupinterlinespace questions Florian Wobbe
@ 2011-01-10 21:22 ` Wolfgang Schuster
  2011-01-10 21:36   ` Florian Wobbe
  2011-01-10 22:13 ` Philipp Gesang
  1 sibling, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2011-01-10 21:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.01.2011 um 20:41 schrieb Florian Wobbe:

> b) Is there a possibility to use relative sizes like \setupinterlinespace[2*big] (which does not work)?

You can write \setupinterlinespace[3].

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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-10 21:22 ` Wolfgang Schuster
@ 2011-01-10 21:36   ` Florian Wobbe
  2011-01-10 21:46     ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Florian Wobbe @ 2011-01-10 21:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> b) Is there a possibility to use relative sizes like \setupinterlinespace[2*big] (which does not work)?
> 
> You can write \setupinterlinespace[3].

Thanks!

Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the preamble? They only take effect inside \start... \stop...

Florian

___________________________________________________________________________________
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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-10 21:36   ` Florian Wobbe
@ 2011-01-10 21:46     ` Wolfgang Schuster
  2011-01-10 21:57       ` Florian Wobbe
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2011-01-10 21:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.01.2011 um 22:36 schrieb Florian Wobbe:

>>> b) Is there a possibility to use relative sizes like \setupinterlinespace[2*big] (which does not work)?
>> 
>> You can write \setupinterlinespace[3].
> 
> Thanks!
> 
> Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the preamble? They only take effect inside \start... \stop...

\setupinterlinespace is reset with \starttext, when you don’t like
setup-commands after \starttext use \startproduct.

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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-10 21:46     ` Wolfgang Schuster
@ 2011-01-10 21:57       ` Florian Wobbe
  2011-01-11  8:42         ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Florian Wobbe @ 2011-01-10 21:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>>>> b) Is there a possibility to use relative sizes like \setupinterlinespace[2*big] (which does not work)?
>>> 
>>> You can write \setupinterlinespace[3].
>> 
>> Thanks!
>> 
>> Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the preamble? They only take effect inside \start... \stop...
> 
> \setupinterlinespace is reset with \starttext, when you don’t like
> setup-commands after \starttext use \startproduct.

Hmm, does not seem to work here. I have following setup:

\environment env_draft % <-- setting \setupinterlinespace[big] here
\startproduct
%\setupinterlinespace[big] % works except for references when uncommented
\input chapters
\usepublications[publications]
\placepublications
\stopproduct

\placepublications seems to reset linespacing as well.

Setting \setupinterlinespace[line=1.7em] works throughout the document.

Florian

___________________________________________________________________________________
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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-10 19:41 \setupinterlinespace questions Florian Wobbe
  2011-01-10 21:22 ` Wolfgang Schuster
@ 2011-01-10 22:13 ` Philipp Gesang
  2011-01-11  7:40   ` Florian Wobbe
  1 sibling, 1 reply; 11+ messages in thread
From: Philipp Gesang @ 2011-01-10 22:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On 2011-01-10 <20:41:23>, Florian Wobbe wrote:
> Hi,
> 
> a) this minimal example does not work as expected. The first column is not justified correctly on top. This does not change, even when swapping small, big, medium (e.g. make 1st col medium and 2nd small). The offset stays the same regardless of the linespacing.
> 
> \starttext
> \startcolumns[n=3]
> \setupinterlinespace[small]
> \input knuth
> \column
> \setupinterlinespace[medium]
> \input knuth
> \column
> \setupinterlinespace[big]
> \input knuth
> \stopcolumns
> \stoptext



Hi Florian,

can I interest you in some columnsets?

··8<·····························································

\definecolumnset[three][n=3]
\starttext
\startcolumnset[three]
\setupinterlinespace[small]
\input knuth
\column
\setupinterlinespace[medium]
\input knuth
\column
\setupinterlinespace[big]
\input knuth
\stopcolumnset
\stoptext

··8<·····························································

This should get you even columns.

(Btw, there’s also “\setuplocalinterlinespace” which behaves the
same as “\setupinterlinespace” except for some magic it does to
selected dimensions, see spac-ver.mkiv.)

Regards, Philipp




> 
> b) Is there a possibility to use relative sizes like \setupinterlinespace[2*big] (which does not work)?
> 
> Best,
> Florian
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

-- 
()  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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-10 22:13 ` Philipp Gesang
@ 2011-01-11  7:40   ` Florian Wobbe
  0 siblings, 0 replies; 11+ messages in thread
From: Florian Wobbe @ 2011-01-11  7:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> Hi Florian,
> 
> can I interest you in some columnsets?
> 
> ··8<·····························································
> 
> \definecolumnset[three][n=3]
> \starttext
> \startcolumnset[three]
> \setupinterlinespace[small]
> \input knuth
> \column
> \setupinterlinespace[medium]
> \input knuth
> \column
> \setupinterlinespace[big]
> \input knuth
> \stopcolumnset
> \stoptext
> 
> ··8<·····························································
> 
> This should get you even columns.

Great, thank you!

Florian

___________________________________________________________________________________
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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-10 21:57       ` Florian Wobbe
@ 2011-01-11  8:42         ` Wolfgang Schuster
  2011-01-16 10:17           ` Florian Wobbe
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2011-01-11  8:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.01.2011 um 22:57 schrieb Florian Wobbe:

>>>>> b) Is there a possibility to use relative sizes like \setupinterlinespace[2*big] (which does not work)?
>>>> 
>>>> You can write \setupinterlinespace[3].
>>> 
>>> Thanks!
>>> 
>>> Why can't I put \setupinterlinespace[3] or \setupinterlinespace[big] in the preamble? They only take effect inside \start... \stop...
>> 
>> \setupinterlinespace is reset with \starttext, when you don’t like
>> setup-commands after \starttext use \startproduct.
> 
> Hmm, does not seem to work here. I have following setup:
> 
> \environment env_draft % <-- setting \setupinterlinespace[big] here
> \startproduct
> %\setupinterlinespace[big] % works except for references when uncommented

\startproduct <filenename>

\environment env_draft

\setupinterlinespace % can be moved to the environment file

> \input chapters
> \usepublications[publications]
> \placepublications
> \stopproduct
> 
> \placepublications seems to reset linespacing as well.

Can you make a example.

BTW: \startproduct takes the filename as argument, please add it.

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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-11  8:42         ` Wolfgang Schuster
@ 2011-01-16 10:17           ` Florian Wobbe
  2011-01-16 11:32             ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Florian Wobbe @ 2011-01-16 10:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

>> Hmm, does not seem to work here. I have following setup:
>> 
>> \environment env_draft % <-- setting \setupinterlinespace[big] here
>> \startproduct
>> %\setupinterlinespace[big] % works except for references when uncommented
> 
> \startproduct <filenename>
> 
> \environment env_draft
> 
> \setupinterlinespace % can be moved to the environment file
> 
>> \input chapters
>> \usepublications[publications]
>> \placepublications
>> \stopproduct
>> 
>> \placepublications seems to reset linespacing as well.

Wolfgang,

thanks for pointing me into the right direction. This did not work at first ether but it was my fault. I had \setupinterlinespace[big] before \setupbodyfont. This will reset the interlinespace. However, \setupinterlinespace[line=1.7em] before \setupbodyfont works.

Still, \setupinterlinespace[big] does not change anything in the publication list.

> Can you make a example.

Please see attached files. Apart from the wrong interline spacing in the references section, there is also a missing citation (ELECTRONIC: hh2010).

Best,
Florian

[-- Attachment #2: env_linespacing.tex --]
[-- Type: application/octet-stream, Size: 164 bytes --]

\startenvironment env_linespacing

\setupinterlinespace[big]
\setuppublications[state=start,refcommand=authoryear]
\setupbibtex[database=sample]

\stopenvironment


[-- Attachment #3: linespacing.tex --]
[-- Type: application/octet-stream, Size: 241 bytes --]

\startproduct linespacing

\environment env_linespacing

\section{Knuth}
\input knuth

\cite[hh2010] and \cite[Eijkhout1991].

\section{References}
\nocite[hh2010,hh2010a,hh2010b,Eijkhout1991]
\placepublications[criterium=all]

\stopproduct

[-- Attachment #4: 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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-16 10:17           ` Florian Wobbe
@ 2011-01-16 11:32             ` Wolfgang Schuster
  2011-01-16 11:42               ` Florian Wobbe
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2011-01-16 11:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 16.01.2011 um 11:17 schrieb Florian Wobbe:

> thanks for pointing me into the right direction. This did not work at first ether but it was my fault. I had \setupinterlinespace[big] before \setupbodyfont. This will reset the interlinespace. However, \setupinterlinespace[line=1.7em] before \setupbodyfont works.
> 
> Still, \setupinterlinespace[big] does not change anything in the publication list.

You have to make a distinction between a absolute and a relative value for the interlinespace.

With \setupinterlinespace[line=12pt] you set a fixed value of “12pt” for the distance between lines while \setupinterlinespace[big] use these value and multiplies it by the factor “1.5”. When you place a register (e.g. your bibliography) context goes back to the fixed value for the interlinespace and the factor is ignored. When you want the bigger linedistance for your whole document change the absolute value to 4.2ex (the default value from context is 2.8 multiplied by 1.5 from big).

>> Can you make a example.
> 
> Please see attached files. Apart from the wrong interline spacing in the references section, there is also a missing citation (ELECTRONIC: hh2010).


No idea, wait for the bib experts on the list.

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] 11+ messages in thread

* Re: \setupinterlinespace questions
  2011-01-16 11:32             ` Wolfgang Schuster
@ 2011-01-16 11:42               ` Florian Wobbe
  0 siblings, 0 replies; 11+ messages in thread
From: Florian Wobbe @ 2011-01-16 11:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> thanks for pointing me into the right direction. This did not work at first ether but it was my fault. I had \setupinterlinespace[big] before \setupbodyfont. This will reset the interlinespace. However, \setupinterlinespace[line=1.7em] before \setupbodyfont works.
>> 
>> Still, \setupinterlinespace[big] does not change anything in the publication list.
> 
> You have to make a distinction between a absolute and a relative value for the interlinespace.
> 
> With \setupinterlinespace[line=12pt] you set a fixed value of “12pt” for the distance between lines while \setupinterlinespace[big] use these value and multiplies it by the factor “1.5”. When you place a register (e.g. your bibliography) context goes back to the fixed value for the interlinespace and the factor is ignored.

Thanks for the explanation, I didn't know that the scale factor is ignored in the bibliography intentionally.

> When you want the bigger linedistance for your whole document change the absolute value to 4.2ex (the default value from context is 2.8 multiplied by 1.5 from big).

All right, I will do that.

Florian

___________________________________________________________________________________
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] 11+ messages in thread

end of thread, other threads:[~2011-01-16 11:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-10 19:41 \setupinterlinespace questions Florian Wobbe
2011-01-10 21:22 ` Wolfgang Schuster
2011-01-10 21:36   ` Florian Wobbe
2011-01-10 21:46     ` Wolfgang Schuster
2011-01-10 21:57       ` Florian Wobbe
2011-01-11  8:42         ` Wolfgang Schuster
2011-01-16 10:17           ` Florian Wobbe
2011-01-16 11:32             ` Wolfgang Schuster
2011-01-16 11:42               ` Florian Wobbe
2011-01-10 22:13 ` Philipp Gesang
2011-01-11  7:40   ` Florian Wobbe

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).