* changing typeface @ 2007-08-23 15:49 Istvan Hollerbach 2007-08-23 16:22 ` Hans Hagen 0 siblings, 1 reply; 6+ messages in thread From: Istvan Hollerbach @ 2007-08-23 15:49 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing typeface 2007-08-23 15:49 changing typeface Istvan Hollerbach @ 2007-08-23 16:22 ` Hans Hagen 2007-08-23 16:46 ` Aditya Mahajan 0 siblings, 1 reply; 6+ messages in thread From: Hans Hagen @ 2007-08-23 16:22 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing typeface 2007-08-23 16:22 ` Hans Hagen @ 2007-08-23 16:46 ` Aditya Mahajan 2007-08-23 19:21 ` Istvan Hollerbach 0 siblings, 1 reply; 6+ messages in thread From: Aditya Mahajan @ 2007-08-23 16:46 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing typeface 2007-08-23 16:46 ` Aditya Mahajan @ 2007-08-23 19:21 ` Istvan Hollerbach 2007-08-23 20:29 ` Henning Hraban Ramm 2007-08-23 20:44 ` Aditya Mahajan 0 siblings, 2 replies; 6+ messages in thread From: Istvan Hollerbach @ 2007-08-23 19:21 UTC (permalink / raw) To: mailing list for ConTeXt users, mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing typeface 2007-08-23 19:21 ` Istvan Hollerbach @ 2007-08-23 20:29 ` Henning Hraban Ramm 2007-08-23 20:44 ` Aditya Mahajan 1 sibling, 0 replies; 6+ messages in thread From: Henning Hraban Ramm @ 2007-08-23 20:29 UTC (permalink / raw) To: mailing list for ConTeXt users 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) ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing typeface 2007-08-23 19:21 ` Istvan Hollerbach 2007-08-23 20:29 ` Henning Hraban Ramm @ 2007-08-23 20:44 ` Aditya Mahajan 1 sibling, 0 replies; 6+ messages in thread From: Aditya Mahajan @ 2007-08-23 20:44 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-23 20:44 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-08-23 15:49 changing typeface Istvan Hollerbach 2007-08-23 16:22 ` Hans Hagen 2007-08-23 16:46 ` Aditya Mahajan 2007-08-23 19:21 ` Istvan Hollerbach 2007-08-23 20:29 ` Henning Hraban Ramm 2007-08-23 20:44 ` Aditya Mahajan
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).