Re: [NTG-context] access to system fonts under MacOSX
On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/20/2014 07:31 PM, j. van den hoff wrote: newbie question: how can I get access to fonts installed outside the TeX tree under MacOSX (10.9 to be precise)? mtxrun --script font --list --name --pattern=* shows lots of fonts (so they are recognized by context, I'd guess) but the simple-minded approach, namely to trying something like \starttypescript [stix] \definetypeface [stix] [rm] [serif] [stix] [default] \definetypeface [stix] [ss] [sans] [adventor] [default] \definetypeface [stix] [tt] [mono] [cursor][default] \definetypeface [stix] [mm] [math] [stix] [default] \stoptypescript \usetypescript[stix] \setupbodyfont[stix,12pt] fails with `unknown library stix'. obviously I am doing something wrong -- or is this a luatex problem not being able to find the system fonts? Hi Jörg, hi pablo, I don’t have a Mac, but this works in ConTeXt: \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \definefontfamily [mainface] [sans] [Helvetica] \definefontfamily [mainface] [mono] [Courier] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface] yes this seems to work (mostly, at least -- there are still some hickups). thanks a lot for this solution. You don’t need to define a typescript. \definefontfamily is the command you need. Typeface should be defined only once ([rm] and [serif] are redundant). essentially, I copied/pasted this from contextgarden and my understanding was that `rm' and `serif' are aliases? also: why does the typescript definition does not work in the first place? Default body font size is 12pt. I think it is easier to invoke typefaces with the system font name. I mean, use the same name as you use in Word or any other MacOS X program. understood. OTOH, ` mtxrun --script font --list --name --pattern=*' lists the fonts using a different convention (lower case, no blanks), so I am undecided what might be the best practice here? I hope this helps. Don’t hesitate to ask, if you have further questions. well, see above ;-). joerg Pablo -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] setting margins in makeup
On 12/20/2014 11:55 PM, Pablo Rodriguez wrote: On 12/19/2014 04:38 PM, Mark Szepieniec wrote: [...] Incidentally, what threw me off was the phrasing in the manual: 4.19 Makeup A document may have a titlepage, a colofon and some pages that are not directly related to the main part of the document. Mostly these pages are not numbered and can do without headers and footers. Because their layout needs extra attention we prefer the word makeup for defining their specific layout. Since my makeup pages indeed don't have page numbers, I presumed they wouldn't have headers either. I may have read too much into that, but perhaps that passage can be improved? Hi Mark, makeups don’t have either headers or footers, but have the document layout unless otherwise specified. You are right: makeups don’t have header or footer /texts/, although they don’t have the space for headers and footers removed. they have them but their state is empty (headerstate etc parameters) 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 - ___ 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] Strange bug with overviewpage module.
Hi Aditya, Now that you realize that your module works so well, I have two questions :—) How can one tweak your module so that in a presentation: 1) each overviewpage is included at the end; 2) each oveviewpage is clickabel and linked to the corresponding page of the presentation. If this is already implemented and if you have an example presentation, could you please share it? Best regards: OK On 20 Dec 2014, at 08:20, Aditya Mahajan adit...@umich.edu wrote: On Sat, 20 Dec 2014, Otared Kavian wrote: Hi Aditya, Thanks for sharing, but here your module works fine… Please see the attached file. Otared, thanks for testing! Updating ConTeXt does fix this issue. 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 : 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 ___
Re: [NTG-context] access to system fonts under MacOSX
On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez oi...@gmx.es wrote: Hi Jörg, I don’t have a Mac, but this works in ConTeXt: \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \definefontfamily [mainface] [sans] [Helvetica] \definefontfamily [mainface] [mono] [Courier] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface] I've now looked a bit closer: this works (on my Mac) _except_ for the teletype font: `\tt{some text}' ends up being typeset in the serif font. `Courier' is there, for sure (meaning: it is listed by `mtxrun --script font...' but it does not work. on closer inspection, the actually found fontfiles are `courier new.ttf' and specifying [couriernew] _does_ work. so it seems you are right regarding using the full names, e.g. \definefontfamily [mainface] [sans] [adventor] does not work while \definefontfamily [mainface] [sans] [TeX Gyre Adventor] does. any ideas, why all this is happening? or: _how_ exactly can fonts be specified? how is the mapping from symbolic names to actual font files performed. it seems, sometimes symbolic (short) names work, sometimes they don't. so, is there some prescription, what is the right (TM) way to do it? -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] access to system fonts under MacOSX
On 12/21/2014 11:51 AM, j. van den hoff wrote: On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez wrote: You don’t need to define a typescript. \definefontfamily is the command you need. Typeface should be defined only once ([rm] and [serif] are redundant). essentially, I copied/pasted this from contextgarden and my understanding was that `rm' and `serif' are aliases? also: why does the typescript definition does not work in the first place? Hi Jörg, rm and serif are aliases Your typescript definition seems to be lacking previous definitions, according to http://wiki.contextgarden.net/Paratype_typescript_for_mkiv. I must say that never defined typescripts, because I never needed them. I think it is easier to invoke typefaces with the system font name. I mean, use the same name as you use in Word or any other MacOS X program. understood. OTOH, ` mtxrun --script font --list --name --pattern=*' lists the fonts using a different convention (lower case, no blanks), so I am undecided what might be the best practice here? I would say that best practice is the one that suits your needs best. If there is one, I don”t know it. But Using system names is easier to remember (I think). 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] access to system fonts under MacOSX
On 12/21/2014 02:31 PM, j. van den hoff wrote: On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez oi...@gmx.es wrote: Hi Jörg, I don’t have a Mac, but this works in ConTeXt: \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \definefontfamily [mainface] [sans] [Helvetica] \definefontfamily [mainface] [mono] [Courier] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface] I've now looked a bit closer: this works (on my Mac) _except_ for the teletype font: `\tt{some text}' ends up being typeset in the serif font. `Courier' is there, for sure (meaning: it is listed by `mtxrun --script font...' but it does not work. on closer inspection, the actually found fontfiles are `courier new.ttf' and specifying [couriernew] _does_ work. Hi Jörg, \tt is a switch, so the right way to deploy it is: {\tt this text should be typewritten text} I have just discovered that Courier doesn’t work on my system either. I cannot find it. Could you give the output from the following command? $ mtxrun --script font --list --name --pattern=courier* so it seems you are right regarding using the full names, e.g. \definefontfamily [mainface] [sans] [adventor] does not work while \definefontfamily [mainface] [sans] [TeX Gyre Adventor] does. any ideas, why all this is happening? \definefontfamily [mainface] [sans] [texgyreadventor] seems to be the right way to invoke the font. or: _how_ exactly can fonts be specified? how is the mapping from symbolic names to actual font files performed. it seems, sometimes symbolic (short) names work, sometimes they don't. so, is there some prescription, what is the right (TM) way to do it? I think using full names is a good way to do it. But TeX Gyre Adventor comes with ConTeXt. You don’t have it installed on your system. 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] access to system fonts under MacOSX
On Sun, 21 Dec 2014 17:20:33 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/21/2014 02:31 PM, j. van den hoff wrote: On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez oi...@gmx.es wrote: Hi Jörg, I don’t have a Mac, but this works in ConTeXt: \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \definefontfamily [mainface] [sans] [Helvetica] \definefontfamily [mainface] [mono] [Courier] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface] I've now looked a bit closer: this works (on my Mac) _except_ for the teletype font: `\tt{some text}' ends up being typeset in the serif font. `Courier' is there, for sure (meaning: it is listed by `mtxrun --script font...' but it does not work. on closer inspection, the actually found fontfiles are `courier new.ttf' and specifying [couriernew] _does_ work. Hi Jörg, \tt is a switch, so the right way to deploy it is: {\tt this text should be typewritten text} yes, that's right. I have just discovered that Courier doesn’t work on my system either. I cannot find it. Could you give the output from the following command? $ mtxrun --script font --list --name --pattern=courier* sure: couriercourierpcrr8a.afm courierboldcourierboldpcrb8a.afm courierboldoblique courierboldoblique pcrbo8a.afm couriermedium courierpcrr8a.afm couriernew couriernewpsmt /Library/Fonts/Courier New.ttf couriernewbold couriernewpsboldmt /Library/Fonts/Courier New Bold.ttf couriernewbolditalic couriernewpsbolditalicmt /Library/Fonts/Courier New Bold Italic.ttf couriernewitalic couriernewpsitalicmt /Library/Fonts/Courier New Italic.ttf couriernewnormal couriernewpsitalicmt /Library/Fonts/Courier New Italic.ttf couriernewpsbolditalicmt couriernewpsbolditalicmt /Library/Fonts/Courier New Bold Italic.ttf couriernewpsboldmt couriernewpsboldmt /Library/Fonts/Courier New Bold.ttf couriernewpsitalicmt couriernewpsitalicmt /Library/Fonts/Courier New Italic.ttf couriernewpsmt couriernewpsmt /Library/Fonts/Courier New.ttf couriernewregular couriernewpsmt /Library/Fonts/Courier New.ttf courieroblique courieroblique pcrro8a.afm as I wrote in the last mail, only the `courier new' fonts are represented by actual font-files it seems (don't know what the *afm files are). so if only those (and their abbreviations) were reported I would not have any problem. but as it stands, `courier' is reported as well -- but does not map to any actual font-file. so it seems you are right regarding using the full names, e.g. \definefontfamily [mainface] [sans] [adventor] does not work while \definefontfamily [mainface] [sans] [TeX Gyre Adventor] does. any ideas, why all this is happening? \definefontfamily [mainface] [sans] [texgyreadventor] seems to be the right way to invoke the font. or: _how_ exactly can fonts be specified? how is the mapping from symbolic names to actual font files performed. it seems, sometimes symbolic (short) names work, sometimes they don't. so, is there some prescription, what is the right (TM) way to do it? I think using full names is a good way to do it. But TeX Gyre Adventor comes with ConTeXt. You don’t have it installed on your system. yes, that I know. they are part of the texlive distribution I use. thanks for your help, joerg Pablo -- kUsing Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] access to system fonts under MacOSX
On 12/21/2014 06:37 PM, j. van den hoff wrote: On Sun, 21 Dec 2014 17:20:33 +0100, Pablo Rodriguez wrote: On 12/21/2014 02:31 PM, j. van den hoff wrote: [...] as I wrote in the last mail, only the `courier new' fonts are represented by actual font-files it seems (don't know what the *afm files are). so if only those (and their abbreviations) were reported I would not have any problem. but as it stands, `courier' is reported as well -- but does not map to any actual font-file. .afm is an Adobe font metrics file. This is the way (old) PostScript fonts are designed. Font glyphs in PostScript fonts are cotained in .pfa or .pfb files. Wikipedia has a good article explaining PostScript fonts (https://en.wikipedia.org/wiki/PostScript_fonts). But unless you have an special interest, I’d simply ignore it. If I‘m not wrong, only system font files are listed with their path. The fonts that come with ConTeXt are listed, but their paths are ignored. BTW, this should work (if I’m not completely wrong [it doesn’t work on my system, because the courier fonts aren’t listed]): \definefontfamily [mainface] [tt] [courier] so it seems you are right regarding using the full names, e.g. \definefontfamily [mainface] [sans] [adventor] does not work while \definefontfamily [mainface] [sans] [TeX Gyre Adventor] does. any ideas, why all this is happening? \definefontfamily [mainface] [sans] [texgyreadventor] seems to be the right way to invoke the font. Sorry, I’m afraid my explanation was incomplete. adventor is the name of a(n already predefined) typescript. So you can use it with \setupbodyfont and \switchtobodyfont. texgyreadventor is the name of the typeface or font family. You should use it with \definefontfamily. But typefaces cannot be invoked with typescript names and typescripts cannot be invoked with typeface names. This is why \definefontfamily[mainface][sans][adventor] or \setupbodyfont[texgyreadventor] don’t work. Wolfgang will know that better, but [mainface] in the previous \definefontfamily is the new and easy way to create typescripts in ConTeXt. Using the full font name has the main advantage of not having to know whether a given name designs a typescript or a typeface ;-). I hope it will be clearer now. Let me know if it isn’t. 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] Strange bug with overviewpage module.
On Sun, 21 Dec 2014, Otared Kavian wrote: Hi Aditya, Now that you realize that your module works so well, I have two questions :—) How can one tweak your module so that in a presentation: 1) each overviewpage is included at the end; 2) each oveviewpage is clickabel and linked to the corresponding page of the presentation. If this is already implemented and if you have an example presentation, could you please share it? That was the original idea of the module. See: http://randomdeterminism.wordpress.com/2014/01/01/announcing-the-overview-module/ I am thinking of adding the abilityto manually create overview pages as well. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange bug with overviewpage module.
I am using the standalone context ( $ mtxrun --version gives me == ConTeXt TDS Runner Tool 1.31 ) I want to try the overview module. I copied the example given on the references html page, but context needs the module to parse it. How do I install a module? ( This one specifically if different from others in installation.) Regards On 2014å¹´12月21æ—¥ 10:50, Aditya Mahajan wrote: On Sun, 21 Dec 2014, Otared Kavian wrote: Hi Aditya, Now that you realize that your module works so well, I have two questions :—) How can one tweak your module so that in a presentation: 1) each overviewpage is included at the end; 2) each oveviewpage is clickabel and linked to the corresponding page of the presentation. If this is already implemented and if you have an example presentation, could you please share it? That was the original idea of the module. See: http://randomdeterminism.wordpress.com/2014/01/01/announcing-the-overview-module/ I am thinking of adding the abilityto manually create overview pages as well. 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 : 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 ___
Re: [NTG-context] vertical alignment of table of contents in makeup
Hi Pablo, thanks for your clarifications. My thinking was that I didn't want my table of contents page to have a page number, but I didn't realize that the ToC head acts as a chapter head, so you can just get rid of the page number in the way you suggest. So just leaving out the makeup works fine, thanks! On Sat, Dec 20, 2014 at 11:41 PM, Pablo Rodriguez oi...@gmx.es wrote: On 12/20/2014 03:13 AM, Mark Szepieniec wrote: There is a trick mentioned on the wiki for top-aligning the contents of a makeup page, namely adding top=,, which cancels the default value of \vss, which is infinitely strechable space. However, that doesn't seem to work when the first element in the makeup page is \completecontent: Hi Mark, this is what it happens when you start a makeup page with a \chapter command. \chapter inserts a page break before the heading. [...] Here, the table of contents and the section are both placed on the makeup page, but they are centered vertically. If the \completecontent line is commented out, the correct vertical alignment of the section header is obtained. Is there a way to get top-alignment when a makeup page starts with \completecontent? Is this a bug? As far as I know, this isn’t a bug. You can disable the page break before chapter with: \setuphead[chapter][page=] This way it works as you intend. Or should I even be using makeup pages in my table of contents? I wonder whether this makes sense at all. Why do you want or why do you think you need the table of contents wrapped in a makeup page? A makeup page is fine for contents such as title pages, colophons or similar ones. Their contents should fit in a single page, because the contents won’t be split across pages. Here you have a sample that shows why makeup pages shouldn’t be used for table of contents: \starttext \startmakeup[standard][top=,] \chapter{Contents} \dorecurse{50}{\section{testsection}} \stopmakeup \stoptext 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 ___
Re: [NTG-context] setting margins in makeup
On Sun, Dec 21, 2014 at 12:02 PM, Hans Hagen pra...@wxs.nl wrote: On 12/20/2014 11:55 PM, Pablo Rodriguez wrote: On 12/19/2014 04:38 PM, Mark Szepieniec wrote: [...] Incidentally, what threw me off was the phrasing in the manual: 4.19 Makeup A document may have a titlepage, a colofon and some pages that are not directly related to the main part of the document. Mostly these pages are not numbered and can do without headers and footers. Because their layout needs extra attention we prefer the word makeup for defining their specific layout. Since my makeup pages indeed don't have page numbers, I presumed they wouldn't have headers either. I may have read too much into that, but perhaps that passage can be improved? Hi Mark, makeups don’t have either headers or footers, but have the document layout unless otherwise specified. You are right: makeups don’t have header or footer /texts/, although they don’t have the space for headers and footers removed. they have them but their state is empty (headerstate etc parameters) Hans Thanks for the clarification both of you, that was exactly what I was getting wrong. Best, Mark - 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 - ___ 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 ___
Re: [NTG-context] access to system fonts under MacOSX
On Sun, 21 Dec 2014 19:22:22 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/21/2014 06:37 PM, j. van den hoff wrote: On Sun, 21 Dec 2014 17:20:33 +0100, Pablo Rodriguez wrote: On 12/21/2014 02:31 PM, j. van den hoff wrote: [...] as I wrote in the last mail, only the `courier new' fonts are represented by actual font-files it seems (don't know what the *afm files are). so if only those (and their abbreviations) were reported I would not have any problem. but as it stands, `courier' is reported as well -- but does not map to any actual font-file. .afm is an Adobe font metrics file. This is the way (old) PostScript fonts are designed. Font glyphs in PostScript fonts are cotained in .pfa or .pfb files. I see. Wikipedia has a good article explaining PostScript fonts (https://en.wikipedia.org/wiki/PostScript_fonts). But unless you have an special interest, I’d simply ignore it. If I‘m not wrong, only system font files are listed with their path. The fonts that come with ConTeXt are listed, but their paths are ignored. BTW, this should work (if I’m not completely wrong [it doesn’t work on my system, because the courier fonts aren’t listed]): \definefontfamily [mainface] [tt] [courier] no, that does not work (despite it being listed by `mtxrun...fonts'. I need to specify 'courier new' here. so it seems you are right regarding using the full names, e.g. \definefontfamily [mainface] [sans] [adventor] does not work while \definefontfamily [mainface] [sans] [TeX Gyre Adventor] does. any ideas, why all this is happening? \definefontfamily [mainface] [sans] [texgyreadventor] seems to be the right way to invoke the font. Sorry, I’m afraid my explanation was incomplete. adventor is the name of a(n already predefined) typescript. So you can use it with \setupbodyfont and \switchtobodyfont. texgyreadventor is the name of the typeface or font family. You should use it with \definefontfamily. But typefaces cannot be invoked with typescript names and typescripts cannot be invoked with typeface names. This is why \definefontfamily[mainface][sans][adventor] or \setupbodyfont[texgyreadventor] don’t work. Wolfgang will know that better, but [mainface] in the previous \definefontfamily is the new and easy way to create typescripts in ConTeXt. Using the full font name has the main advantage of not having to know whether a given name designs a typescript or a typeface ;-). I hope it will be clearer now. Let me know if it isn’t. yes it is (to an extent ;-)). I'll keep this labeled for lookup... but I'm already stumbling about the next thing. while playing around with some nice fonts I also tried out `optima' (like palatino by h. zapf). so that is what I see: mtxrun --script font --list --all --name --pattern=*optima* optima optimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimablackoptimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimabold optimabold /System/Library/Fonts/Optima.ttc index: 3 optimabolditalic optimabolditalic /System/Library/Fonts/Optima.ttc index: 1 optimaextrablack optimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimaitalic optimaitalic /System/Library/Fonts/Optima.ttc index: 2 optimanormal optimaitalic /System/Library/Fonts/Optima.ttc index: 2 optimaregular optimaregular /System/Library/Fonts/Optima.ttc index: 4 then, when using, e.g., \definefontfamily [mainface] [serif] [Optima] \definefontfamily [mainface] [sans] [Optima] \definefontfamily [mainface] [mono] [dejavusansmono] [scale=0.865] %dejavumono/optima x-height ratio \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface,11pt] neither \it nor \bf (italic and bold) variants are working in the body text (but are just rendered in the regular \rm font). when using \definefontfamily [mainface] [serif] [ebgaramond] instead, \it _does_ work, while \bf is not available. _this_ I might understand since there seems to be no bold variant of that font in the texlive distro (only 'regular' and 'italic'. but I would have thought that the different variants (italic, bold) can always be expected to just work if they are present (as they are for `optima')? joerg Pablo -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] vertical alignment of table of contents in makeup
On 12/21/2014 09:01 PM, Mark Szepieniec wrote: Hi Pablo, thanks for your clarifications. My thinking was that I didn't want my table of contents page to have a page number, but I didn't realize that the ToC head acts as a chapter head, so you can just get rid of the page number in the way you suggest. So just leaving out the makeup works fine, thanks! Hi Mark, to get rid of page numbers in the table of contents, http://wiki.contextgarden.net/Table_of_Contents#Suppressing_page_numbering_for_the_ToC_pages may help you. Just in case it helps, Pablo On Sat, Dec 20, 2014 at 11:41 PM, Pablo Rodriguez wrote: On 12/20/2014 03:13 AM, Mark Szepieniec wrote: There is a trick mentioned on the wiki for top-aligning the contents of a makeup page, namely adding top=,, which cancels the default value of \vss, which is infinitely strechable space. However, that doesn't seem to work when the first element in the makeup page is \completecontent: Hi Mark, this is what it happens when you start a makeup page with a \chapter command. \chapter inserts a page break before the heading. [...] Here, the table of contents and the section are both placed on the makeup page, but they are centered vertically. If the \completecontent line is commented out, the correct vertical alignment of the section header is obtained. Is there a way to get top-alignment when a makeup page starts with \completecontent? Is this a bug? As far as I know, this isn’t a bug. You can disable the page break before chapter with: \setuphead[chapter][page=] This way it works as you intend. Or should I even be using makeup pages in my table of contents? I wonder whether this makes sense at all. Why do you want or why do you think you need the table of contents wrapped in a makeup page? A makeup page is fine for contents such as title pages, colophons or similar ones. Their contents should fit in a single page, because the contents won’t be split across pages. Here you have a sample that shows why makeup pages shouldn’t be used for table of contents: \starttext \startmakeup[standard][top=,] \chapter{Contents} \dorecurse{50}{\section{testsection}} \stopmakeup \stoptext 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 ___
Re: [NTG-context] vertical alignment of table of contents in makeup
On Sun, Dec 21, 2014 at 10:12 PM, Pablo Rodriguez oi...@gmx.es wrote: On 12/21/2014 09:01 PM, Mark Szepieniec wrote: Hi Pablo, thanks for your clarifications. My thinking was that I didn't want my table of contents page to have a page number, but I didn't realize that the ToC head acts as a chapter head, so you can just get rid of the page number in the way you suggest. So just leaving out the makeup works fine, thanks! Hi Mark, to get rid of page numbers in the table of contents, http://wiki.contextgarden.net/Table_of_Contents#Suppressing_page_numbering_for_the_ToC_pages may help you. Just in case it helps, Pablo On Sat, Dec 20, 2014 at 11:41 PM, Pablo Rodriguez wrote: On 12/20/2014 03:13 AM, Mark Szepieniec wrote: There is a trick mentioned on the wiki for top-aligning the contents of a makeup page, namely adding top=,, which cancels the default value of \vss, which is infinitely strechable space. However, that doesn't seem to work when the first element in the makeup page is \completecontent: Hi Mark, this is what it happens when you start a makeup page with a \chapter command. \chapter inserts a page break before the heading. [...] Here, the table of contents and the section are both placed on the makeup page, but they are centered vertically. If the \completecontent line is commented out, the correct vertical alignment of the section header is obtained. Is there a way to get top-alignment when a makeup page starts with \completecontent? Is this a bug? As far as I know, this isn’t a bug. You can disable the page break before chapter with: \setuphead[chapter][page=] This way it works as you intend. Or should I even be using makeup pages in my table of contents? I wonder whether this makes sense at all. Why do you want or why do you think you need the table of contents wrapped in a makeup page? A makeup page is fine for contents such as title pages, colophons or similar ones. Their contents should fit in a single page, because the contents won’t be split across pages. Here you have a sample that shows why makeup pages shouldn’t be used for table of contents: \starttext \startmakeup[standard][top=,] \chapter{Contents} \dorecurse{50}{\section{testsection}} \stopmakeup \stoptext I hope it helps, Pablo Interesting, thanks! ___ 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] access to system fonts under MacOSX
but I'm already stumbling about the next thing. while playing around with some nice fonts I also tried out `optima' (like palatino by h. zapf). so that is what I see: mtxrun --script font --list --all --name --pattern=*optima* optima optimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimablackoptimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimabold optimabold /System/Library/Fonts/Optima.ttc index: 3 optimabolditalic optimabolditalic /System/Library/Fonts/Optima.ttc index: 1 optimaextrablack optimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimaitalic optimaitalic /System/Library/Fonts/Optima.ttc index: 2 optimanormal optimaitalic /System/Library/Fonts/Optima.ttc index: 2 optimaregular optimaregular /System/Library/Fonts/Optima.ttc index: 4 then, when using, e.g., \definefontfamily [mainface] [serif] [Optima] \definefontfamily [mainface] [sans] [Optima] \definefontfamily [mainface] [mono] [dejavusansmono] [scale=0.865] %dejavumono/optima x-height ratio \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface,11pt] neither \it nor \bf (italic and bold) variants are working in the body text (but are just rendered in the regular \rm font). I guess your context version is too old because the current version in the standalone installation of context shows the italic and bold styles. 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] access to system fonts under MacOSX
On Sun, 21 Dec 2014 22:39:02 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: but I'm already stumbling about the next thing. while playing around with some nice fonts I also tried out `optima' (like palatino by h. zapf). so that is what I see: mtxrun --script font --list --all --name --pattern=*optima* optima optimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimablackoptimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimabold optimabold /System/Library/Fonts/Optima.ttc index: 3 optimabolditalic optimabolditalic /System/Library/Fonts/Optima.ttc index: 1 optimaextrablack optimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimaitalic optimaitalic /System/Library/Fonts/Optima.ttc index: 2 optimanormal optimaitalic /System/Library/Fonts/Optima.ttc index: 2 optimaregular optimaregular /System/Library/Fonts/Optima.ttc index: 4 then, when using, e.g., \definefontfamily [mainface] [serif] [Optima] \definefontfamily [mainface] [sans] [Optima] \definefontfamily [mainface] [mono] [dejavusansmono] [scale=0.865] %dejavumono/optima x-height ratio \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface,11pt] neither \it nor \bf (italic and bold) variants are working in the body text (but are just rendered in the regular \rm font). I guess your context version is too old because the current version in the standalone installation of context shows the italic and bold styles. I use mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/local/share/texmf-texlive/tex/context/base/context.mkiv mtx-context | current version: 2014.05.21 22:04 do you have any idea whether this already is 'too old'? if it is: is it recommendable to actually install standalone context beside/instead of the version included in texlive? (I mean, if the actual goal is to write some documents rather than diving deep into context for its own sake ;-)) Wolfgang -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] access to system fonts under MacOSX
Am 21.12.2014 um 22:45 schrieb j. van den hoff veedeeh...@googlemail.com: I guess your context version is too old because the current version in the standalone installation of context shows the italic and bold styles. I use mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/local/share/texmf-texlive/tex/context/base/context.mkiv mtx-context | current version: 2014.05.21 22:04 do you have any idea whether this already is 'too old'? if it is: is it recommendable to actually install standalone context beside/instead of the version included in texlive? (I mean, if the actual goal is to write some documents rather than diving deep into context for its own sake ;-)) Yes this version is too old, you need a context from august or later. 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] access to system fonts under MacOSX
On 12/21/2014 09:24 PM, j. van den hoff wrote: On Sun, 21 Dec 2014 19:22:22 +0100, Pablo Rodriguez wrote: [...] BTW, this should work (if I’m not completely wrong [it doesn’t work on my system, because the courier fonts aren’t listed]): \definefontfamily [mainface] [tt] [courier] no, that does not work (despite it being listed by `mtxrun...fonts'. I need to specify 'courier new' here. I‘m afraid I cannot say why it doesn’t (all I know is that it should work.) but I'm already stumbling about the next thing. while playing around with some nice fonts I also tried out `optima' (like palatino by h. zapf). so that is what I see: mtxrun --script font --list --all --name --pattern=*optima* optima optimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimablackoptimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimabold optimabold /System/Library/Fonts/Optima.ttc index: 3 optimabolditalic optimabolditalic /System/Library/Fonts/Optima.ttc index: 1 optimaextrablack optimaextrablack /System/Library/Fonts/Optima.ttc index: 0 optimaitalic optimaitalic /System/Library/Fonts/Optima.ttc index: 2 optimanormal optimaitalic /System/Library/Fonts/Optima.ttc index: 2 optimaregular optimaregular /System/Library/Fonts/Optima.ttc index: 4 then, when using, e.g., \definefontfamily [mainface] [serif] [Optima] \definefontfamily [mainface] [sans] [Optima] [...] neither \it nor \bf (italic and bold) variants are working in the body text (but are just rendered in the regular \rm font). when using \definefontfamily [mainface] [serif] [ebgaramond] instead, \it _does_ work, while \bf is not available. _this_ I might understand since there seems to be no bold variant of that font in the texlive distro (only 'regular' and 'italic'. but I would have thought that the different variants (italic, bold) can always be expected to just work if they are present (as they are for `optima')? Well, I’m afraid that I can only guess not having access to a MacOS computer. .ttc stands for TrueType collection, it isn’t actually a font. From what I read at the wiki, dealing with .ttc is problematic (or at least, it was in the past: http://wiki.contextgarden.net/Fonts_in_LuaTeX). Sorry, I have never dealt with a .ttc file before. I have installed Averia Serif and Sans TTC (http://iotic.com/averia/). They seem to work: \definefontfamily [mainface] [serif] [Averia Serif] \definefontfamily [mainface] [sans] [Averia Sans] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] {\rm a \em b \bf c \em d} {\ss a \em b \bf c \em d} \stopTEXpage \stoptext How about \definefontfamily [mainface] [serif] [Optima Regular]? Does it switch fonts? Just in case 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 ___
Re: [NTG-context] access to system fonts under MacOSX
On 12/21/2014 10:45 PM, j. van den hoff wrote: [...] do you have any idea whether this already is 'too old'? if it is: is it recommendable to actually install standalone context beside/instead of the version included in texlive? (I mean, if the actual goal is to write some documents rather than diving deep into context for its own sake ;-)) You can always install the latest standalone version beside TeX Live. They are totally independent. I had both TeX Live and ConTeXt Standalone. After I installed a new version of Linux, I didn’t have the need to reinstall TeX Live ;-). Just in case 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 ___
Re: [NTG-context] access to system fonts under MacOSX
On Sun, 21 Dec 2014 23:17:52 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/21/2014 10:45 PM, j. van den hoff wrote: [...] do you have any idea whether this already is 'too old'? if it is: is it recommendable to actually install standalone context beside/instead of the version included in texlive? (I mean, if the actual goal is to write some documents rather than diving deep into context for its own sake ;-)) You can always install the latest standalone version beside TeX Live. good to know. I'll try that (as this seems the way to go as I've learned from wolfgang schuster's mail). They are totally independent. I had both TeX Live and ConTeXt Standalone. After I installed a new version of Linux, I didn’t have the need to reinstall TeX Live ;-). Just in case it helps, sure did! joerg Pablo -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] access to system fonts under MacOSX
On Sun, 21 Dec 2014 22:56:42 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 21.12.2014 um 22:45 schrieb j. van den hoff veedeeh...@googlemail.com: I guess your context version is too old because the current version in the standalone installation of context shows the italic and bold styles. I use mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/local/share/texmf-texlive/tex/context/base/context.mkiv mtx-context | current version: 2014.05.21 22:04 do you have any idea whether this already is 'too old'? if it is: is it recommendable to actually install standalone context beside/instead of the version included in texlive? (I mean, if the actual goal is to write some documents rather than diving deep into context for its own sake ;-)) Yes this version is too old, you need a context from august or later. I'll try that. thank you joerg Wolfgang -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] Strange bug with overviewpage module.
On Sun, 21 Dec 2014, jdh wrote: I am using the standalone context ( $ mtxrun --version gives me == ConTeXt TDS Runner Tool 1.31 ) I want to try the overview module. I copied the example given on the references html page, but context needs the module to parse it. How do I install a module? ( This one specifically if different from others in installation.) I wasn't sure whether others would be interested in the module, so I did not upload it to context garden. To test the module, download t-overviewpage.mkiv from https://raw.githubusercontent.com/adityam/context-overviewpage/master/t-overviewpage.mkiv and put it in the current directory. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] access to system fonts under MacOSX
On Sun, 21 Dec 2014 22:56:42 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 21.12.2014 um 22:45 schrieb j. van den hoff veedeeh...@googlemail.com: I guess your context version is too old because the current version in the standalone installation of context shows the italic and bold styles. I use mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/local/share/texmf-texlive/tex/context/base/context.mkiv mtx-context | current version: 2014.05.21 22:04 do you have any idea whether this already is 'too old'? if it is: is it recommendable to actually install standalone context beside/instead of the version included in texlive? (I mean, if the actual goal is to write some documents rather than diving deep into context for its own sake ;-)) Yes this version is too old, you need a context from august or later. OK, I've just installed the standalone version and adjusted my search path. now the very same document does no longer compile. I get the error: 8--- ! Undefined control sequence recently read \doctitle l.106\doctitle 8--- where `doctitle' is defined in a small bare bones module (co-existing in the same dir as the doc) for setting up a title page. I guess I'm hitting some (context-) searchpath issue here that already is taken care of in the texlive distro? any help'd be appreciated. joerg Wolfgang -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] access to system fonts under MacOSX
On 12/22/2014 12:12 AM, j. van den hoff wrote: OK, I've just installed the standalone version and adjusted my search path. now the very same document does no longer compile. I get the error: 8--- ! Undefined control sequence recently read \doctitle l.106\doctitle 8--- where `doctitle' is defined in a small bare bones module (co-existing in the same dir as the doc) for setting up a title page. I guess I'm hitting some (context-) searchpath issue here that already is taken care of in the texlive distro? any help'd be appreciated. Hi Jörg, providing a minimal sample that reproduces the error (at least, in your computer) avoids the guesswork :-). I think it is better that you start a new thread for this (new) issue. It will help others to search when facing similar problems. From what I understand of your description, when the module is located in the same directory as the source document you compile, ConTeXt doesn’t need to search anything. But you need to compile it from that directory. BTW, is your module similar to the one suggested in http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_reusable_solution? 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 ___