Re: [NTG-context] Problems with linespacing
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 ___
Re: [NTG-context] Problems with linespacing
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 ___
Re: [NTG-context] Problems with linespacing
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 /
Re: [NTG-context] Problems with linespacing
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 ___
Re: [NTG-context] Problems with linespacing
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 ___
Re: [NTG-context] Problems with linespacing - typescript
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 ypescripts I used the names from fontsquirrel. You are right - my aller und my libertine were from other website with diferences in the naming. Now I have them from font-squirrel and cpan. \setupbodyfont[aller] is now working. But your example above for the typescript does not work: \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 I don't get allerlt and also no 36pt. Error-message while compiling: 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** I hope someone knows an answer. Janis ___ 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 ___
Re: [NTG-context] Problems with linespacing - typescript
Am 05.11.2011 um 16:17 schrieb Jan Heinen: 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 ypescripts I used the names from fontsquirrel. You are right - my aller und my libertine were from other website with diferences in the naming. Now I have them from font-squirrel and cpan. \setupbodyfont[aller] is now working. But your example above for the typescript does not work: \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 I don't get allerlt and also no 36pt. Error-message while compiling: 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** I hope someone knows an answer. Regenerate the font database with “mtxrun --script font --reload” and try it again. 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 ___
Re: [NTG-context] Problems with linespacing - typescript
Regenerate the font database with “mtxrun --script font --reload” and try it again. That was not successful. However, I changed your code a bit and now it seems ok: When I use: \definedfont[name:allerlight*default at 36pt] instead of: \definedfont[file:allerlt*default at 36pt] then it works. Changed: file: - name: allerlt - allerlight Do I still use type-aller? Or did I destroy the connection to the typescript with my changes? Maybe important? The aller-files are ttf not otf. 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 ___
Re: [NTG-context] Problems with linespacing - typescript
Am 05.11.2011 um 17:34 schrieb Jan Heinen: Regenerate the font database with “mtxrun --script font --reload” and try it again. That was not successful. However, I changed your code a bit and now it seems ok: When I use: \definedfont[name:allerlight*default at 36pt] instead of: \definedfont[file:allerlt*default at 36pt] then it works. Changed: file: - name: allerlt - allerlight 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* alleraller /Users/wolf/Library/Fonts/Aller_Rg.ttf allerboldallerbold /Users/wolf/Library/Fonts/Aller_Bd.ttf allerbolditalic allerbolditalic/Users/wolf/Library/Fonts/Aller_BdIt.ttf allerdisplay allerdisplay /Users/wolf/Library/Fonts/AllerDisplay.ttf allerdisplaynormal allerdisplay /Users/wolf/Library/Fonts/AllerDisplay.ttf alleritalic alleritalic/Users/wolf/Library/Fonts/Aller_It.ttf allerlight allerlight /Users/wolf/Library/Fonts/Aller_Lt.ttf allerlightitalic allerlightitalic /Users/wolf/Library/Fonts/Aller_LtIt.ttf allerlightlight allerlight /Users/wolf/Library/Fonts/Aller_Lt.ttf allernormal alleritalic/Users/wolf/Library/Fonts/Aller_It.ttf Do I still use type-aller? Or did I destroy the connection to the typescript with my changes? \definefont and \definedfont don’t use the typescript but context’s database where all recognized fonts are listed. A typescript is simple spoken a list where you specify which file should be used for the regular, italic or bold alternative and with a typescript file these settings are available as module which can be reused for different document without putting the code in each document, all you need is a referenced to the file. Maybe important? The aller-files are ttf not otf. Both versions I found are also in truetype format but it doesn’t matter which format the fonts have because context supports both and a truetype font can be also a opentype font. 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 ___
Re: [NTG-context] Problems with linespacing
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 ___
[NTG-context] Problems with linespacing
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 ___
Re: [NTG-context] Problems with linespacing
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 ___
Re: [NTG-context] Problems with linespacing
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 ___
Re: [NTG-context] Problems with linespacing
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 ___