Re: [NTG-context] OSX fonts
Ah thanks to all! I’ll dive into it Best -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ --> http://www.flickr.com/photos/vanderaalle/sets/ --> http://vimeo.com/vanderaalle --> andrea.va...@unito.it -- "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) > On 3 Apr 2017, at 21:07, Aditya Mahajanwrote: > > On Mon, 3 Apr 2017, Andrea Valle wrote: > >> Dear list, >> >> I have a question which is really basic. MacOSX here. >> I looked at the wiki, but the whole matter is a bit far from my knowledge. >> Is there a way to use system fonts? I *think* I remember something like >> simpletypescript package > > > 1. First, let's check if context is seeing the fonts that ship with OSX. > > mtxrun --script fonts --list --pattern="palatino*" --all > > palatino palatinobolditalic > /System/Library/Fonts/Palatino.ttc index: 4 > palatinobold palatinobolditalic > /System/Library/Fonts/Palatino.ttc index: 4 > palatinobolditalic palatinobolditalic > /System/Library/Fonts/Palatino.ttc index: 4 > palatinolinotype palatinolinotyperoman > /Library/Fonts/Microsoft/Palatino Linotype.ttf > palatinolinotypebold palatinolinotypebold > /Library/Fonts/Microsoft/Palatino Linotype Bold.ttf > palatinolinotypebolditalic palatinolinotypebolditalic > /Library/Fonts/Microsoft/Palatino Linotype Bold Italic.ttf > palatinolinotypeitalic palatinolinotypeitalic > /Library/Fonts/Microsoft/Palatino Linotype Italic.ttf > palatinolinotypenormal palatinolinotyperoman > /Library/Fonts/Microsoft/Palatino Linotype.ttf > palatinolinotyperegular palatinolinotyperoman > /Library/Fonts/Microsoft/Palatino Linotype.ttf > palatinolinotyperomanpalatinolinotyperoman > /Library/Fonts/Microsoft/Palatino Linotype.ttf > > OK. So, I have a palatino that ships with apple and Palatino Linotype that > ships with Microsoft Office (I think). > > 2. Let's create a typescript to use this (I haven't check the font license to > see if you can distribute a pdf of this document. Please check your font > license!): > > \definefontfamily [myfont] [serif] [Palatino Linotype] > \setupbodyfont [myfont] > > \starttext > This is a test \bold{Does bold work} and does \italic{italic}? > \stoptext > > That's it! Simply compile the file and everything works. Of course, for a > real document, you need to set the sans serif, mono, and math font style 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] bug in index sorting with latest beta?
Dear list, I have this minimal sample: \mainlanguage[fr] \setupregister[method=default] \starttext Aristote\index{Aristote}, %~ Œdipe\index{Œdipe} Platon\index{Platon} d'Ænésidème\index{Ænésidème} \placeindex \stoptext If I comment the “Platon” entry, a is only one head. But if I compile with that entry uncommented using latest beta from 2017.04.02 19:51, a are two heads. Isn’t it a bug in index sorting? 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Presentations
Dear ConTeXt users, me again. I tried to send this emails before, but it seemed to be blocked, because I attached a sample file that seemed too big. This time I have a question concerning presentations. I was not able to figure out how I can define presentation steps in a way that each step is shipped as a single PDF page in the output. By this I mean steps in one slide that unfold step by step by moving on to the next pdf page. (This means one slide is represented in the PDF as a whole bunch of pages.) The command \StartSetps and \FlushStep does something like that, but this seems to use some JAVA script magic that only works using Adobe Acrobat (and the steps are unfolded by hitting the mouse button and not by going on to the next PDF page). How can it be modified in a way that a new page per step is created containing the next step in a way that going to the next pdf page unfolds the next step? You can get an example using (code out of the file present-stepper-001.tex out of the distribution) \usemodule[present-stepper] \starttext \Topic{Female Artists} \StartSteps \startitemize \item Fiona Apple \FlushStep \item Tori Amos \FlushStep \item Kate Bush \FlushStep \item Heather Nova \FlushStep \item Alanis Morissette \FlushStep \item Suzanne Vega \FlushStep \stopitemize \StopSteps \stoptext I really like the step solution ConTeXt uses but it would be nice to be able to switch between the (supposed) JAVA script solution and the presentation of a the steps of a slide as several pages. Besides that, it would be nice, too, to be able to configure the step mechanism in a way that the arrow keys of the keyboard unfold the next step (instead of hitting the mouse button). Is there any possibility to do that (if it would be, I would in deed prefer the ConTeXt approach to steps before the LaTeX one with several pages per slide). Apart from that, I have noticed that viewing the steps the first time disables them if you go back in the presentation. This means there is no way to go back that preserves the steps as such (or I was not able to found that way :-) ). (Especially it does not seem to be able to go back one step.) It would be more intuitive if going forward and backward followed the same steps. Another way to achieve something like that would be a reset button for each page that resets the step behaviour after having viewed the slide and it steps for the first time (in a way that for second viewing the steps mechanism could be reset). Apart form that the beamer package of LaTeX knows some commands like \only<[number of slide]>{} that places the content in the brackets {} on the slide only at slide number [number of slide]. Does ConTeXt have a command like that? Thank you for your assistance! Kind regards Mathias Schickel ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OSX fonts
On Mon, 3 Apr 2017, Andrea Valle wrote: Dear list, I have a question which is really basic. MacOSX here. I looked at the wiki, but the whole matter is a bit far from my knowledge. Is there a way to use system fonts? I *think* I remember something like simpletypescript package 1. First, let's check if context is seeing the fonts that ship with OSX. mtxrun --script fonts --list --pattern="palatino*" --all palatino palatinobolditalic /System/Library/Fonts/Palatino.ttc index: 4 palatinobold palatinobolditalic /System/Library/Fonts/Palatino.ttc index: 4 palatinobolditalic palatinobolditalic /System/Library/Fonts/Palatino.ttc index: 4 palatinolinotype palatinolinotyperoman /Library/Fonts/Microsoft/Palatino Linotype.ttf palatinolinotypebold palatinolinotypebold /Library/Fonts/Microsoft/Palatino Linotype Bold.ttf palatinolinotypebolditalic palatinolinotypebolditalic /Library/Fonts/Microsoft/Palatino Linotype Bold Italic.ttf palatinolinotypeitalic palatinolinotypeitalic /Library/Fonts/Microsoft/Palatino Linotype Italic.ttf palatinolinotypenormal palatinolinotyperoman /Library/Fonts/Microsoft/Palatino Linotype.ttf palatinolinotyperegular palatinolinotyperoman /Library/Fonts/Microsoft/Palatino Linotype.ttf palatinolinotyperomanpalatinolinotyperoman /Library/Fonts/Microsoft/Palatino Linotype.ttf OK. So, I have a palatino that ships with apple and Palatino Linotype that ships with Microsoft Office (I think). 2. Let's create a typescript to use this (I haven't check the font license to see if you can distribute a pdf of this document. Please check your font license!): \definefontfamily [myfont] [serif] [Palatino Linotype] \setupbodyfont [myfont] \starttext This is a test \bold{Does bold work} and does \italic{italic}? \stoptext That's it! Simply compile the file and everything works. Of course, for a real document, you need to set the sans serif, mono, and math font style 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OSX fonts
Am 2017-04-03 um 16:07 schrieb Andrea Valle: > I have a question which is really basic. MacOSX here. > I looked at the wiki, but the whole matter is a bit far from my knowledge. > Is there a way to use system fonts? I *think* I remember something like > simpletypescript package See http://wiki.contextgarden.net/Fonts_in_LuaTeX Depends a bit on the actual fonts. Usually it’s no problem to use system fonts. You need to setup the variable OSFONTDIR as a path to your font directories, e.g.: export OSFONTDIR="/System/Library/Fonts//:/Library/Fonts//:~/Library/Fonts//:~/Library/texmf/fonts//:~/FontExplorer\\ X/Font\\ Library//" Put this in ~/.bashrc, ~/.bash_profile or ~/.profile (don’t know any more which is default). Then reload the font database: mtxrun --script fonts --reload Try, if your desired font is already known, e.g. \setupbodyfont[gentium,rm,10pt] Or check if there is a typescript in the distribution (look for the font name in the source browser). If not, then you should setup a typescript. I attached examples. If that doesn’t help, ask with details. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD type-alegreya.tex Description: Binary data type-devroye.tex Description: Binary data ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Textbackground issue with margin pictures
On 4/3/2017 2:58 PM, Tom wrote: On 3. Apr 2017, at 10:16, Hans Hagenwrote: On 4/3/2017 2:20 AM, Tom wrote: Hi, today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15. I noticed that my textbackgrounds now interfere with margin pictures, that is, if there is a margin picture at the side of a textbackground, then the textbackground is suppressed for the entire height of the margin picture. Here is a minimal: \setuplayout [ leftmargin=0mm, rightmargin=45mm, height=fit, width=fit, ] \definetextbackground [test] \starttext \placefigure [margin]{}{} \starttextbackground [test] \dorecurse{3}{\readfile{ward}{}{}} \stoptextbackground \stoptext With the ConTeXt Current from 2016.05.19 13:43 I don’t see the issue, everything’s fine there. Here are two screenshots: Desired behavior (Ctx Current): http://d.pr/i/Xgtc Non-desired behavior (Ctx Beta): http://d.pr/i/1gyi Is this a bug? \definetextbackground [test] [location=paragraph] \setupfloat[figure][freeregion=no] Thank you, Hans, this works absolutely great! Two little questions: I have set it now globally for _all_ floats as \setupfloats[freeregion=no]. At a first glance it doesn’t seem to cause any issues. Is there any pitfall when setting it globally, which I might not be aware? Is 'freeregion=no' an option that is meant to stay, or is it a workaround for the recent betas? it will stay (being a feature) Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] OSX fonts
Dear list, I have a question which is really basic. MacOSX here. I looked at the wiki, but the whole matter is a bit far from my knowledge. Is there a way to use system fonts? I *think* I remember something like simpletypescript package Thanks, sorry for the dumbness -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ --> http://www.flickr.com/photos/vanderaalle/sets/ --> http://vimeo.com/vanderaalle --> andrea.va...@unito.it -- "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Font Fallbacks
Dear ConTeXt users, I have a question concerning font fallbacks in math fonts. I have not been able to find an option to specify optical sizes in fallbacks. I want to use Minion Math for the alphabetical symbols, and this font ships with single font files for each optical size. So I am searching for the right command to get for example the following behaviour: Use the CambriaMath fonts for mathematical symbols and use Minion Math (Minion-Math-Regular.otf for standard size, Minion-Math-Caption.otf for indices and Minion-Math-Tiny for sub-indices) for alphabetical symbols. Can anyone tell me which commands I have to use to achieve this? So the general question is paraphrased as follows: Use some font as a general math font (here CambriaMath) and replace some symbols out of another fonts that ships with single files for each optical size. One remark about that: Minion Math has supporting mkiv-files. So you can use this font (specifying all optical sizes) by writing \setupbodyfont[minion]. One could make use of that and maybe use a command like \definefamilyfallback[MathFallback][family:minion][][force=yes]. As far as I know a command like that does not exist at present. Maybe it could be designed to take use of existing font definition files. And I have some similar problem: I do not like the mathematical symbols of the STIX2 fonts that much (since they are mainly taken from STIX1) and let us suppose now that I want to use again CambriaMath instead for mathematical symbols. I was able to figure out the following commands that nearly achieve what I want to get: \definefontfallback[MathFallback][file:STIX2Math.otf][lowercasescript,uppercasescript,lowercasefraktur,uppercasefraktur][force=yes] % \starttypescriptcollection[stix2own] % \starttypescript [\s!math][stix2own][\s!all] \loadfontgoodies[cambria-math] \definefontsynonym[\s!MathRoman] [Cambria-Math] [\s!features={\s!math\mathsizesuffix},\s!designsize=\s!auto,\s!fallbacks={MathFallback},\s!goodies=cambria-math] \stoptypescript % \starttypescript [stix2own] \definetypeface [\typescriptone] [\s!mm] [\s!math] [stix2own] [\s!default] \stoptypescript % \stoptypescriptcollection This font can be used by the command \setupbodyfont[stix2own]. The only problem is that STIX2 has design sizes embedded in the file STIX2Math.otf that are used if I am using this file as whole for math, but that are not used any longer using the mechanism defined above. That means: If I use Cambria as Math font and replace the alphabetical symbols out of STIX2Math.otf the optical sizes for indices are not used any longer. What can be done to solve this second problem? One last question remains: I dislike the summation symbol of CambriaMath (because it is too large in my eyes) and this is why I want to replace it by the version of STIX2Math again (this symbols is indeed redesigned in STIX2Math and looks very nice in my eyes). So I could add a second font fallback that should be applied besides the one above. The unicode slot of the summation symbol is 0x2211in STIX2Math. So I could define \definefontfallback[SummationFallback][file:STIX2Math.otf][0x2211][force=yes] and pass it as a second fallback as follows (changing the following line in the example above): \definefontsynonym[\s!MathRoman] [Cambria-Math] [\s!features={\s!math\mathsizesuffix},\s!designsize=\s!auto,\s!fallbacks={MathFallback,SummationFallback},\s!goodies=cambria-math] The problem is that only one of those fallbacks is used if I pass two arguments for fallbacks. Of course this problem can be solved easily if I add the summation symbol to the list of replaced symbols in the first fallback definition. But if I want to use a summation symbol out of another font this trick does not work any longer. Besides there is a second problem in replacing the summation symbol in the way described: Every time I am using $\sum$, ConTeXt uses the bigger symbol designed for displayed formulas and not the one designed for inline formulas. How can I solve this problem? Thank you very much for your assistance! If running minimal examples are required I can of course provide them. But I hope someone understands the fallback mechanism better than I do and then the minimal examples written by me would be obsolete (besides the require some font definition files which makes them more of less a little complex). Besides because of Minion Math is commercial not everyone owns this font an thus is unable to run the minimal example. Kind regards Mathias ___ 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://context.aanhet.net archive :
Re: [NTG-context] Textbackground issue with margin pictures
> On 3. Apr 2017, at 10:16, Hans Hagenwrote: > > On 4/3/2017 2:20 AM, Tom wrote: >> Hi, >> >> today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15. >> >> I noticed that my textbackgrounds now interfere with margin pictures, that >> is, >> if there is a margin picture at the side of a textbackground, then the >> textbackground is suppressed for the entire height of the margin picture. >> >> >> Here is a minimal: >> >> \setuplayout [ >> leftmargin=0mm, >> rightmargin=45mm, >> height=fit, >> width=fit, >> ] >> >> \definetextbackground [test] >> >> \starttext >> >> \placefigure [margin]{}{} >> >> \starttextbackground [test] >> \dorecurse{3}{\readfile{ward}{}{}} >> \stoptextbackground >> >> \stoptext >> >> >> With the ConTeXt Current from 2016.05.19 13:43 I don’t see the issue, >> everything’s fine there. >> >> Here are two screenshots: >> >> Desired behavior (Ctx Current): http://d.pr/i/Xgtc >> Non-desired behavior (Ctx Beta): http://d.pr/i/1gyi >> >> Is this a bug? > > \definetextbackground [test] [location=paragraph] > > \setupfloat[figure][freeregion=no] Thank you, Hans, this works absolutely great! Two little questions: I have set it now globally for _all_ floats as \setupfloats[freeregion=no]. At a first glance it doesn’t seem to cause any issues. Is there any pitfall when setting it globally, which I might not be aware? Is 'freeregion=no' an option that is meant to stay, or is it a workaround for the recent betas? Thanks again, Best, -- Tom > > \starttext > > \placefigure [margin]{}{} > > \starttextbackground [test] >\dorecurse{3}{\readfile{ward}{}{}} >\placefigure {}{} >\dorecurse{3}{\readfile{ward}{}{}} > \stoptextbackground > > \stoptext > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Textbackground issue with margin pictures
On 4/3/2017 2:20 AM, Tom wrote: Hi, today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15. I noticed that my textbackgrounds now interfere with margin pictures, that is, if there is a margin picture at the side of a textbackground, then the textbackground is suppressed for the entire height of the margin picture. Here is a minimal: \setuplayout [ leftmargin=0mm, rightmargin=45mm, height=fit, width=fit, ] \definetextbackground [test] \starttext \placefigure [margin]{}{} \starttextbackground [test] \dorecurse{3}{\readfile{ward}{}{}} \stoptextbackground \stoptext With the ConTeXt Current from 2016.05.19 13:43 I don’t see the issue, everything’s fine there. Here are two screenshots: Desired behavior (Ctx Current): http://d.pr/i/Xgtc Non-desired behavior (Ctx Beta): http://d.pr/i/1gyi Is this a bug? \definetextbackground [test] [location=paragraph] \setupfloat[figure][freeregion=no] \starttext \placefigure [margin]{}{} \starttextbackground [test] \dorecurse{3}{\readfile{ward}{}{}} \placefigure {}{} \dorecurse{3}{\readfile{ward}{}{}} \stoptextbackground \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___