ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Problems with linespacing
@ 2011-11-05  9:01 Jan Heinen
  2011-11-05 12:07 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Heinen @ 2011-11-05  9:01 UTC (permalink / raw)
  To: ntg-context

As a newby I am already able to do lot's of nice things with 
ConTeXt -
but I am struggling with some basics: fonts and linespacing.

Ok ... I have to learn more than I thought :-)

1. Where can I find the typescript for aller? Or do I have 
to write my own typescripts?

2. As a second font I am using Linux-libertine ... is there 
a typescript for this font anywhere too?

Regards
Jannis

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

* Re: Problems with linespacing
  2011-11-05  9:01 Problems with linespacing Jan Heinen
@ 2011-11-05 12:07 ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2011-11-05 12:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 05.11.2011 um 10:01 schrieb Jan Heinen:

> As a newby I am already able to do lot's of nice things with ConTeXt -
> but I am struggling with some basics: fonts and linespacing.
> 
> Ok ... I have to learn more than I thought :-)
> 
> 1. Where can I find the typescript for aller? Or do I have to write my own typescripts?
> 
> 2. As a second font I am using Linux-libertine ... is there a typescript for this font anywhere too?

The typescript for Libertine are in the core but you need the files from ctan
and not the website of Libertine, to use them add

  \setupbodyfont[libertine]

to your document.

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

* Re: Problems with linespacing
  2011-11-05 17:54 Jan Heinen
@ 2011-11-07 13:44 ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2011-11-07 13:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 05.11.2011 um 18:54 schrieb Jan Heinen:

> Linespacing is still not working in every case - I try a little bit more, maybe I find my error ... otherwise I start another thead.

TeX (the program) has a few rules when to change the linespacing. Below is example where you can see in which case TeX use the local or global setting. Because TeX will always use the last value which is active at the *end*
it’s important to add \par or a blank at the end of the group. The paragraph in the first group end after \stop and this is why the global setting is used but in the second and third group I ended the paragraph in the group and now you get the local setting.

\starttext

\setupinterlinespace[line=14pt]

The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day — and we humans are the cigarettes.

\blank

\start \setupinterlinespace[line=30pt]
The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day — and we humans are the cigarettes.
\stop

\blank

\start \setupinterlinespace[line=30pt]
The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day — and we humans are the cigarettes.\par
\stop

\blank

\start \setupinterlinespace[line=30pt]

The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day — and we humans are the cigarettes.

\stop

\stoptext

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

* Re: Problems with linespacing
@ 2011-11-05 17:54 Jan Heinen
  2011-11-07 13:44 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Heinen @ 2011-11-05 17:54 UTC (permalink / raw)
  To: ntg-context

 > When “file:allerlt” doesn’t work your fonts have a 
different filename than mine.
 > What output on the command line do you get?
 > keima:TeX wolf$ mtxrun --script font --list --all aller*
 >
 > aller aller /Users/wolf/Library/Fonts/Aller_Rg.ttf
 > allerbold allerbold /Users/wolf/Library/Fonts/Aller_Bd.ttf

Was my fault: I had installed both versions of aller: from 
daltonmaag and from font-squirell.
I think that caused a conflict. I now deleted the 
daltonmaag-version and the typescript is running well.

Linespacing is still not working in every case - I try a 
little bit more, maybe I find my error ... otherwise I start 
another thead.

Regards
Jannis

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

* Re: Problems with linespacing
  2011-11-05 11:24 Jan Heinen
@ 2011-11-05 12:04 ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2011-11-05 12:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 05.11.2011 um 12:24 schrieb Jan Heinen:

> Excuse me Wolfgang ...
> your typescript type-aller.mkii and type-aller.mkiv was already on my computer.
> 
> I ran:
> first-setup.sh --modules=t-typescripts
> 
> And then I compiled your code with: context test.tex
> 
> \starttext
> \start \setupalign[right,broad]\definedfont[file:allerlt*default at
> 36pt]\setupinterlinespace
> Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis ich begriffen
> habe, was es bedeutet, ein blinder Text zu wer wer wer wer wer wer wer wer wer
> wer wer keinen Sinn. Man wirkt hier und da aus dem Zusammenhang gerissen. Oft
> wird man gar nicht erst gelesen.
> 
> Aber bin ich deshalb ein schlechter Text? Ich weiss, dass ich nie die Chance
> haben werde, im Stern zu erscheinen.
> \stop
> \stoptext
> 
> 
> The result: instead of the font aller the default-font (and fontsize) is used:

Where do you got the font files from, I checked the version from fontsquirrel [1]
and dalton maag [2] and saw that both use different file names and in my
typescripts I used the names from fontsquirrel.

[1] http://www.fontsquirrel.com/fonts/Aller
[2] http://www.daltonmaag.com/about/aller.html

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

* Re: Problems with linespacing
@ 2011-11-05 11:24 Jan Heinen
  2011-11-05 12:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Heinen @ 2011-11-05 11:24 UTC (permalink / raw)
  To: ntg-context

Excuse me Wolfgang ...
your typescript type-aller.mkii and type-aller.mkiv was 
already on my computer.

I ran:
first-setup.sh --modules=t-typescripts

And then I compiled your code with: context test.tex

\starttext
\start 
\setupalign[right,broad]\definedfont[file:allerlt*default at
36pt]\setupinterlinespace
Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis 
ich begriffen
habe, was es bedeutet, ein blinder Text zu wer wer wer wer 
wer wer wer wer wer
wer wer keinen Sinn. Man wirkt hier und da aus dem 
Zusammenhang gerissen. Oft
wird man gar nicht erst gelesen.

Aber bin ich deshalb ein schlechter Text? Ich weiss, dass 
ich nie die Chance
haben werde, im Stern zu erscheinen.
\stop
\stoptext


The result: instead of the font aller the default-font (and 
fontsize) is used:

The messages I got while compiling your example, you can 
find at the bottom of this post.

Regards
Jannis


Janis@Heinen:~/Buero/ConText/Uebungen/test$ context x.tex

mtx-context     | run 1: luatex 
--fmt="/home/joerg/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" 
--lua="/home/joerg/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" 
--backend="pdf" "./x.tex" \stoptext
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
  \write18 enabled.
(x.tex

ConTeXt  ver: 2011.11.04 14:15 MKIV  fmt: 2011.11.5  int: 
english/english

system > cont-new.mkiv loaded
(/home/joerg/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > x.top loaded
(x.top)
fonts > latin modern fonts are not preloaded
languages > language en is active
{/home/joerg/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
(/home/joerg/context/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(/home/joerg/context/tex/texmf-context/tex/context/base/type-otf.mkiv)
files > readfile > asked name: 'loc', not found
{/home/joerg/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/joerg/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > virtual math > unable to resolve name mapsfromchar
fonts > fallback modern rm 12pt is loaded
fonts > defining > font with asked name 'allerlt' is not 
found using lookup 'file'
fonts > defining > unknown font allerlt, loading aborted
fonts > defining > unable to define allerlt as 
\**thedefinedfont**
backend > xmp > using file 
'/home/joerg/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1, subpage 1
  )</home/joerg/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats > used config file          - 
selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path           - 
/home/joerg/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats > resource resolver         - loadtime 0.007 
seconds, 0 scans with scantime 0.000 seconds, 0 shared 
scans, 47 found files, scanned paths:
mkiv lua stats > stored bytecode data      - 302 modules, 63 
tables, 365 chunks
mkiv lua stats > cleaned up reserved nodes - 39 nodes, 9 
lists of 427
mkiv lua stats > node memory usage         - 2 glue, 2 
penalty, 9 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats > node list callback tasks  - 6 unique task 
lists, 5 instances (re)created, 2440 calls
mkiv lua stats > used backend              - pdf (backend 
for directly generating pdf output)
mkiv lua stats > loaded patterns           - en::2
mkiv lua stats > callbacks                 - 2587 direct, 
3036 indirect, 5623 total
mkiv lua stats > randomizer                - resumed with 
value 0.95138319626049
mkiv lua stats > lxml preparation time     - 0.000 seconds, 
0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats > result saved in file      - x.pdf
mkiv lua stats > loaded fonts              - 33 files: 
stmary10.afm lmmono12-regular.otf lmmono8-regular.otf 
lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf 
lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf 
lmroman9-regular.otf lmsans12-regular.otf 
lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm 
eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm 
msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm 
lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm 
rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats > fonts load time           - 0.244 seconds
mkiv lua stats > luatex banner             - this is luatex, 
version beta-0.70.1-2011051923 (rev 4277)
mkiv lua stats > control sequences         - 31309 of 165536
mkiv lua stats > current memory usage      - 31 MB (ctx: 31 MB)
mkiv lua stats > runtime                   - 0.765 seconds, 
1 processed pages, 1 shipped pages, 1.307 pages/second


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

* Re: Problems with linespacing
  2011-11-04 14:45 Jan Heinen
@ 2011-11-04 15:01 ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2011-11-04 15:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.11.2011 um 15:45 schrieb Jan Heinen:

> Wolfgang, thanx for your fast response.
> 
> The typescript does not find my allerlight. I have tried "name:allerlight" ... without success.

The typescript for aller is like all modules a separate package
and you have to install it with “first-setup --modules=t-typescripts”

> But I am happy with
>    \definefont[name:.......]
> and
>    \setupinterlinespace
> 
> Now I still need a possibility to have a bigger linespacing after a paragraph
>    and
> why does (3) runs to the right end of the page?
> 
> > http://www.imagebanana.com/view/bipcpje7/Linespacing.png

\starttext

\start \setupalign[right,broad]\definedfont[file:allerlt*default at 36pt]\setupinterlinespace

Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis ich begriffen habe, was es bedeutet, ein blinder Text zu wer wer wer wer wer wer wer wer wer wer wer keinen Sinn. Man wirkt hier und da aus dem Zusammenhang gerissen. Oft wird man gar nicht erst gelesen.

Aber bin ich deshalb ein schlechter Text? Ich weiss, dass ich nie die Chance haben werde, im Stern zu erscheinen.

\stop

\stoptext

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

* Re: Problems with linespacing
@ 2011-11-04 14:45 Jan Heinen
  2011-11-04 15:01 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Heinen @ 2011-11-04 14:45 UTC (permalink / raw)
  To: ntg-context

Wolfgang, thanx for your fast response.

The typescript does not find my allerlight. I have tried 
"name:allerlight" ... without success.

But I am happy with
     \definefont[name:.......]
and
     \setupinterlinespace

Now I still need a possibility to have a bigger linespacing 
after a paragraph
     and
why does (3) runs to the right end of the page?

 > http://www.imagebanana.com/view/bipcpje7/Linespacing.png

Regards
Jannis

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

* Re: Problems with linespacing
  2011-11-04 10:17 Jan Heinen
@ 2011-11-04 13:59 ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2011-11-04 13:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.11.2011 um 11:17 schrieb Jan Heinen:

> I can't find what I am doing wrong in my tex-file.
> 
> 1.
> I have little problems with the linespacing when I use big fontsizes.
> The text looks uneasy.
> 
> Here you can see the problem ... (1) and (2) on the image
> http://www.imagebanana.com/view/bipcpje7/Linespacing.png
> And why does (3) runs to the right end of the page?
> 
> 
> ... and here my tex-file:
> 
> 
> 
> \definefont[Gross] [name:allerlight at 36pt]
> \starttext
> \Gross
> Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis ich begriffen habe, was es bedeutet, ein blinder Text zu wer wer wer wer wer wer wer wer wer wer wer keinen Sinn. Man wirkt hier und da aus dem Zusammenhang gerissen. Oft wird man gar nicht erst gelesen.

\Gross \setupinterlinespace … \par

You don’t need \par when there is a empty line after the paragraph.

You can also write a typescript and enable your typeface, the \setupinterlinespace can than be omitted (my typescript package provides support for Aller):

\usetypescriptfile[type-aller]

\starttext

\start \switchtobodyfont[aller-light,36pt]

Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis ich begriffen habe, was es bedeutet, ein blinder Text zu wer wer wer wer wer wer wer wer wer wer wer keinen Sinn. Man wirkt hier und da aus dem Zusammenhang gerissen. Oft wird man gar nicht erst gelesen.

Aber bin ich deshalb ein schlechter Text? Ich weiss, dass ich nie die Chance haben werde, im Stern zu erscheinen.

\stop

\stoptext

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

* Problems with linespacing
@ 2011-11-04 10:17 Jan Heinen
  2011-11-04 13:59 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Heinen @ 2011-11-04 10:17 UTC (permalink / raw)
  To: ntg-context

I can't find what I am doing wrong in my tex-file.

1.
I have little problems with the linespacing when I use big 
fontsizes.
The text looks uneasy.

Here you can see the problem ... (1) and (2) on the image
http://www.imagebanana.com/view/bipcpje7/Linespacing.png
And why does (3) runs to the right end of the page?


... and here my tex-file:



\definefont[Gross] [name:allerlight at 36pt]
\starttext
\Gross
Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis 
ich begriffen habe, was es bedeutet, ein blinder Text zu wer 
wer wer wer wer wer wer wer wer wer wer keinen Sinn. Man 
wirkt hier und da aus dem Zusammenhang gerissen. Oft wird 
man gar nicht erst gelesen.

Aber bin ich deshalb ein schlechter Text? Ich weiss, dass 
ich nie die Chance haben werde, im Stern zu erscheinen.

\stoptext



2.
And using a very small fontsize, eg. 8pt the linespacing 
looks to be the same in every line
but it is to big.


3.
What is to do to have only a small linespacing in a 
paragraph and a bigger linespacing after a break and then 
again a small linespacing in the next paragraph, and so on.
And I don't want to put \blank after a paragraph.

---------
-------
---------
--


--------
---------
----------


---------
-------
-----
-------
--





Regards
Jannis

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

end of thread, other threads:[~2011-11-07 13:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-05  9:01 Problems with linespacing Jan Heinen
2011-11-05 12:07 ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2011-11-05 17:54 Jan Heinen
2011-11-07 13:44 ` Wolfgang Schuster
2011-11-05 11:24 Jan Heinen
2011-11-05 12:04 ` Wolfgang Schuster
2011-11-04 14:45 Jan Heinen
2011-11-04 15:01 ` Wolfgang Schuster
2011-11-04 10:17 Jan Heinen
2011-11-04 13:59 ` 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).