Hi, Would somebody explain me in detail, how I can use for example typeface Times New Roman instead of Computer Modern? Which command to use and how? I need syntax in detail. Descriptions are obscure for me. I need codes in detail for fontnames too. Best regards, Istvan
Istvan Hollerbach wrote:
Hi,
Would somebody explain me in detail, how I can use for example typeface Times New Roman instead of Computer Modern? Which command to use and how? I need syntax in detail. Descriptions are obscure for me. I need codes in detail for fontnames too.
\usetypescript[postscript][texnansi] \setupbodyfont[postscript,10pt] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Thu, 23 Aug 2007, Hans Hagen wrote:
Istvan Hollerbach wrote:
Hi,
Would somebody explain me in detail, how I can use for example typeface Times New Roman instead of Computer Modern? Which command to use and how? I need syntax in detail. Descriptions are obscure for me. I need codes in detail for fontnames too.
\usetypescript[postscript][texnansi] \setupbodyfont[postscript,10pt]
Also see http://pragma-ade.com/general/manuals/showfont.pdf for details about how to switch to other fonts. Aditya
Hi, Ok, I have seen showfont.pdf, and have tried \definetypeface [times] [rm] [serif] [times] [default] [encoding=ec] \switchtotypeface [times] [12pt,rm], and they work. But what are [rm], [encoding=ec] and why is included [times] twice? I do not understand the syntax. I have seen both mfonts.pdf and mtexfont.pdf, but I have found nothing, which would form the basis for start. Of course I have seen cont-enp.pdf too. Istvan
Am 2007-08-23 um 21:21 schrieb Istvan Hollerbach:
\definetypeface [times] [rm] [serif] [times] [default] [encoding=ec] \switchtotypeface [times] [12pt,rm],
and they work. But what are [rm], [encoding=ec] and why is included [times] twice? I do not understand the syntax. I have seen both mfonts.pdf and mtexfont.pdf, but I have found nothing, which would form the basis for start. Of course I have seen cont-enp.pdf too.
Please read http://wiki.contextgarden.net/TypeScripts Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Thu, 23 Aug 2007, Istvan Hollerbach wrote:
Hi,
Ok, I have seen showfont.pdf, and have tried
\definetypeface [times] [rm] [serif] [times] [default] [encoding=ec] \switchtotypeface [times] [12pt,rm],
and they work. But what are [rm], [encoding=ec] and why is included [times] twice? I do not understand the syntax.
This is the basic syntax of "using" a typeface (defining typefaces is different). \definetypeface [name of typeface] [style] [font style] [font name] [special mappings] [extras] You can give anything as the name of the typeface. In the above example it is times. When you switch to that font, you need to use the name of the typeface. So you could have also done \definetypeface [mainface] [rm] [serif] [times] [default] [encoding=ec] \switchtobodyfont[mainface, rm 12pt] The style (rm), and font style (serif) are needed for internal purposes. This is telling context that times is a serif font (http://en.wikipedia.org/wiki/Serif) and it will be used as the roman (rm) style of the typeface. Other options are sans serif (http://en.wikipedia.org/wiki/Sans-serif) used as sans-serif style, which is indicated by [ss] [sans]. The special mappings tell context if something special needs to be done for that font. I have only seen this being used for math fonts. In other cases you can leave it to default. The extras specify, encoding, scaling, (and in case of math fonts, the text typeface in math operators). In the above, encoding=ec tells ConTeXt to use ec encoding (also called cork encoding) see http://www.tug.org/fontname/html/Encodings.html#Encodings. The more commonly used encoding with context is texnansi (also called LY1). Aditya
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Henning Hraban Ramm
-
Istvan Hollerbach