Re: [NTG-context] [***SPAM***] Can't find recommended tool
Pable, thanks, but it doesn't work. so easily. mxtrun only see what is in the TeX directory tree and uses that font database. My question is how to register the font to that system so that mtxrun can find it. How does one do that with a ttf font file? Thanks Pablo Rodríguez wrote: > On 22/06/13 16:41, hwit...@gmail.com wrote: > > > > > > I am trying to install a font so that Context cn use it. I am using > > the simplefont module and have a ttf that I'd like to use. > > > > There is a lot of conflicting information out about to do this and > > som is outdated. As for ContTeX I did find a nice article, but it > > says to use the program texfont, "which ships with ConTex", but I do > > not have any such file. > > > > texfont --ve=sil --co=gentium --makepath --install > > > > > > I am using the TexLive version. Is there any simple method to get > > this font so that it can be used by ConTex MKIV ? > > Yes, install your font (I assume is Gentium) on your operative system. > > Run "mtxrun --script fonts --reload". (Not sure it is required, but I > need this each time I install a font.) > > And (assuming you installed Gentium), here is the sample code: > > \usemodule[simplefonts] > \setmainfont[Gentium] > \starttext > \input knuth > \stoptext > > Compile it with "context gentium.tex" (change file name accordingly) and > it should work. > > If not, please try to describe what happened. > > I hope it helps, > > > Pablo > -- > http://www.ousia.tk > ___ > 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 > ___ ___ 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] (mathematics) Stretching Unicode big operator
If I decide to use, for instance, "Σ" instead of "\sum", this operator is no longer stretched/scaling regardless of the sub/superscripts specified tot it. Is it possible to keep stretching/scaling while using Inicode characters for such operators? ___ 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] wrong interlinespace or wrong font?
Dear list, with the following sample: \setupinterlinespace[line=3.2ex] \usemodule[simplefonts] \setmainfont[UnifrakturMaguntia] \starttext xAAbfas\\xAAbfas\\xAAbfas\\ \stoptext I have the impression that the interline space is too small. Has the font wrong defined metrics or is there something I'm missing? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] [***SPAM***] Can't find recommended tool
On 22/06/13 16:41, hwit...@gmail.com wrote: > > > I am trying to install a font so that Context cn use it. I am using > the simplefont module and have a ttf that I'd like to use. > > There is a lot of conflicting information out about to do this and > som is outdated. As for ContTeX I did find a nice article, but it > says to use the program texfont, "which ships with ConTex", but I do > not have any such file. > > texfont --ve=sil --co=gentium --makepath --install > > > I am using the TexLive version. Is there any simple method to get > this font so that it can be used by ConTex MKIV ? Yes, install your font (I assume is Gentium) on your operative system. Run "mtxrun --script fonts --reload". (Not sure it is required, but I need this each time I install a font.) And (assuming you installed Gentium), here is the sample code: \usemodule[simplefonts] \setmainfont[Gentium] \starttext \input knuth \stoptext Compile it with "context gentium.tex" (change file name accordingly) and it should work. If not, please try to describe what happened. I hope it helps, Pablo -- http://www.ousia.tk ___ 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] [***SPAM***] Can't find recommended tool
I am trying to install a font so that Context cn use it. I am using the simplefont module and have a ttf that I'd like to use. There is a lot of conflicting information out about to do this and som is outdated. As for ContTeX I did find a nice article, but it says to use the program texfont, "which ships with ConTex", but I do not have any such file. texfont --ve=sil --co=gentium --makepath --install I am using the TexLive version. Is there any simple method to get this font so that it can be used by ConTex MKIV ? ___ 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] faked fonts not working
Dear list, as far as I can remember, this used to work in the past: \setupbodyfontenvironment[default][em=italic] \usemodule[simplefonts] \definefontfeature[fakeitalic][default][slant=.25] \definefontfeature[fakebold][default][extend=2] \definefontfeature[fakebolditalic][default][slant=.25, extend=2] \setmainfont[Larabiefont][italicfont={* Regular}, boldfont={* Regular}, bolditalicfont={* Regular}, italicfeatures=fakeitalic, boldfeatures=fakebold, bolditalicfeatures=fakebolditalic] \starttext regular, {\em fake italics (actually slanted)}, {\bf fake bold} and {\bf\em fakebolditalics}. \stoptext Is this a bug, or have I forgotten something? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] Auto selecting optical sizes for a font
On 6/22/2013 1:43 AM, Andres Conrado Montoya wrote: Hello friends. I'm trying to design a book using the typescript you can find at the end of this message. I'm using the beautiful EBGaramond fonts from Georg Duffner (http://www.georgduffner.at/ebgaramond/). This font provides optical sizes to be used in different sizes (named "12" for 10.1pt or more, and "8" for 10 or less. These fonts automatically work as expected in latex, thanks to a recent package included in CTAN (ebgaramond package), selecting the correct font for the appropriate size. However, the typescript I'm using selects the "8" size for everything, without taking the type size into consideration. Is there any way to make ConTeXt do this automatic selection of fonts regarding of type size? I'm using version 2013.06.10 22:51. We have no feature 'size' (or I must have forgotten about it). As there is no consistency in designsizes and there is always some esthetic choice involved no automatic mechanism is (and will be) build in. However, as the traditional tex fonts come in designsizes we do have a way to deal with them via so called font goodies. I made you a goodie file for ebgaramond as well as typescript. (You need to convince Mojca to add the otf fonts to the distribution.) Just put the goodie and typescript files in the base path and run mtxrun --generate after that. We need to choose a proper matching math font (or seek funding for a gust garamond math font project). The demo file shows how to kick in Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - return { name = "eb garamond", version = "1.00", comment = "Goodies that complement eb garamond.", author = "Hans Hagen", copyright = "ConTeXt development team", designsizes = { ["EBGaramond-Italic"] = { ["8pt"] = "file:EBGaramond08-Italic", ["9pt"] = "file:EBGaramond08-Italic", ["10pt"] = "file:EBGaramond08-Italic", ["11pt"] = "file:EBGaramond12-Italic", ["12pt"] = "file:EBGaramond12-Italic", default = "file:EBGaramond12-Italic", }, ["EBGaramond-Regular"] = { ["8pt"] = "file:EBGaramond08-Regular", ["9pt"] = "file:EBGaramond08-Regular", ["10pt"] = "file:EBGaramond08-Regular", ["11pt"] = "file:EBGaramond12-Regular", ["12pt"] = "file:EBGaramond12-Regular", default = "file:EBGaramond12-Regular", }, ["EBGaramond-SC"] = { ["8pt"] = "file:EBGaramond08-SC", ["9pt"] = "file:EBGaramond08-SC", ["10pt"] = "file:EBGaramond08-SC", ["11pt"] = "file:EBGaramond12-SC", ["12pt"] = "file:EBGaramond12-SC", default = "file:EBGaramond12-SC", }, ["EBGaramond-Bold"] = { default = "file:EBGaramond12-Bold", }, ["EBGaramond-AllSC"] = { default = "file:EBGaramond12-AllSC", }, ["EBGaramond-Initials"] = { default = "file:EBGaramondInitials", }, ["EBGaramond-InitialsF1"] = { default = "file:EBGaramondInitialsF1", }, ["EBGaramond-InitialsF2"] = { default = "file:EBGaramondInitialsF2", }, } } %D \module %D [ file=type-imp-ebgaramond, %Dversion=2013.06.22, %D title=\CONTEXT\ Typescript Macros, %D subtitle=EB Garamond, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \definefontfeature [eb-garamond-normal] [default] [mode=node,ccmp=yes,calt=yes, liga=yes,dlig=yes,hlig=yes, kern=yes,mark=yes,mkmk=yes, onum=yes,pnum=yes,salt=yes, script=latn] \definefontfeature [eb-garamond-smallcaps] [eb-garamond-normal] [smcp=yes,c2sc=yes] \starttypescriptcollection[ebgaramond] \starttypescript [serif] [ebgaramond] \loadfontgoodies[ebgaramond] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:ebgaramond-regular] [features=eb-garamond-normal] \definefontsynonym [SerifItalic] [file:ebgaramond-italic] [features=eb-garamond-normal] \definefontsynonym [SerifBold] [file:ebgaramond-bold] [features=eb-garamond-normal] \definefontsynonym [SerifCaps] [Serif] [features=eb-garamond-smallcaps] \stoptypescript \starttypescript[ebgaramond] \definetypeface [ebgaramond] [rm] [seri
Re: [NTG-context] Auto selecting optical sizes for a font
On 22/06/13 01:43, Andres Conrado Montoya wrote: > Hello friends. > I'm trying to design a book using the typescript you can find at the > end of this message. I'm using the beautiful EBGaramond fonts from > Georg Duffner (http://www.georgduffner.at/ebgaramond/). This font > provides optical sizes to be used in different sizes (named "12" for > 10.1pt or more, and "8" for 10 or less. These fonts automatically work > as expected in latex, thanks to a recent package included in CTAN > (ebgaramond package), selecting the correct font for the appropriate > size. However, the typescript I'm using selects the "8" size for > everything, without taking the type size into consideration. Is there > any way to make ConTeXt do this automatic selection of fonts regarding > of type size? I'm using version 2013.06.10 22:51. Hi Andrés, sorry for not giving more information on this, because I don't understand how it works. Here you have an example: http://wiki.contextgarden.net/Optical_Size. (I guess you forgot the font assignment.) Wolfgang, wouldn't it be possible to implement optical sizes in simplefonts? So the user could benefit from ease of use. Pablo -- http://www.ousia.tk ___ 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] counters identifying notes
On 21/06/13 23:07, Wolfgang Schuster wrote: > Am 21.06.2013 um 19:40 schrieb Pablo Rodríguez : >> [..] >> And I would like to make \variant operative, so I thought I could >> replace 0 with a counter, redefining it so: >> >>\def\variant#1#2{% >>\startlinenote[\getnumber[lnt]]{#1] #2}#1% >>\stoplinenote[\getnumber[lnt]]% >>\incrementnumber[lnt]} > > 1. Use came case for your own command names to avoid conflicts with > core commands. > > 2. Don’t use simple numbers as reference names. > > 3. You can’t use nested brackets which causes problems with the > parser for the arguments. What you have to do in this such a case is > to hide the pair with braces, e.g. [{[…]}]. > > 4. ConTeXt has another counter mechanism which doesn’t has this > problem > > \newcounter\LineNote Many thanks for your advice, Wolfgang. Pablo -- http://www.ousia.tk ___ 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 ___