[NTG-context] Setting expansion depth limit for metapost
I'm preparing quite long presentation -- nearly 3000 sides, 900 figures (500 distinct PNG files). I'm using ConTeXt MkIV installed using minimals (2010.03.12 19:49). Recently I'm hitting MetaPost capacity limit on expansion depth: !mplib : mp terminal: ! MetaPost capacity exceeded, sorry [expansion depth=1]. Increasing expand_depth in texmf.cnf and regenerating formats with context --make doesn't help. expansion depth is still at 1 in error message. texmf.cnf in texmf-local I've changed is reported by context as first one in log line starting with mkiv lua stats : used config path What am I missing? Michal ___ 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] typescripts
On Wed, Mar 17, 2010 at 09:20, Wolfgang Schuster wrote: Am 17.03.10 02:26, schrieb Michael Saunders: 2. As far as I can tell from trying to decode examples, there is some hidden connection between the first arguments of the second typescript block and the font switches. So, for example, a secret connection between SerifBoldItalic and \bi seems to connect Junicode-BoldItalic to \bi. Fine, but, in all the examples I've seen, there are no more than two weights and no widths. In some cases, I have five weights (light, book, medium, semi-bold, bold). How do I set up the typescript for this and the switches in the text? Must I learn more pairs like (SerifBoldItalic, \bi)? Yes, but there are not many (tf, it, sl, bf, bi, bs, sc) and I assume that they are extensible. See also below. You need more typefaces. One for light, another one for condensed etc. styles: Serif - \rm Sans - \ss Mono - \tt Handwriting - \hw Calligraphy - \cg alternatives: -- Italic - \tf Slanted - \sl Bold - \bf BoldItalic - \bi BoldSlanted - \bs Caps - \sc combinations: SerifItalic - \rm\it, \rmit SansSlanted - \ss\sl, \sssl MonoBold - \tt\bf, \ttbf Maybe I'm wrong, but shouldn't it be possible (I didn't test) to modify font-unk.mkiv and add a few extra definitions to the following? (Maybe not modify font-unk itself, but just adding a couple of more definitons to the typescript.) \definebodyfont [default] [rm] [tf=Serif sa 1, bf=SerifBold sa 1, it=SerifItalic sa 1, sl=SerifSlanted sa 1, bi=SerifBoldItalic sa 1, bs=SerifBoldSlanted sa 1, sc=SerifCaps sa 1] You could add your in=SerifYourFontVariantName sa 1, bd=SerifYourOtherFontVariantName sa 1, And then \definefontsynonym[SerifYourFontVariantName][YourFontName] It's true that most people don't do that, but I see no reason for not extending the model for your particular needs. Mojca ___ 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] typescripts
Am 17.03.10 10:04, schrieb Mojca Miklavec: Maybe I'm wrong, but shouldn't it be possible (I didn't test) to modify font-unk.mkiv and add a few extra definitions to the following? (Maybe not modify font-unk itself, but just adding a couple of more definitons to the typescript.) \definebodyfont [default] [rm] [tf=Serif sa 1, bf=SerifBold sa 1, it=SerifItalic sa 1, sl=SerifSlanted sa 1, bi=SerifBoldItalic sa 1, bs=SerifBoldSlanted sa 1, sc=SerifCaps sa 1] You could add your in=SerifYourFontVariantName sa 1, bd=SerifYourOtherFontVariantName sa 1, The last time i did this you needed for MkIV also \definefontalternative[in] \definefontalternative[bd] but be carefull with the shortcuts, \in is already used (references). And then \definefontsynonym[SerifYourFontVariantName][YourFontName] It's true that most people don't do that, but I see no reason for not extending the model for your particular needs. 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] Setting expansion depth limit for metapost
Michal Suszko wrote: I'm preparing quite long presentation -- nearly 3000 sides, 900 figures (500 distinct PNG files). I'm using ConTeXt MkIV installed using minimals (2010.03.12 19:49). Recently I'm hitting MetaPost capacity limit on expansion depth: !mplib : mp terminal: ! MetaPost capacity exceeded, sorry [expansion depth=1]. Increasing expand_depth in texmf.cnf and regenerating formats with context --make doesn't help. expansion depth is still at 1 in error message. This is because recursion in metapost takes place on the C stack, and that does not allow growth. But do you really need 1 expansion levels? That seems a little weird. Best wishes, Taco ___ 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] xml TeX expansion?
Typesetting material containing macro's from inside a xml-node does not give TeX-ed results. How can this be accomplished? Minimal example ConTeXt code: \startxmlsetups xml:testsetups \xmlsetsetup{test}{test}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:test \xmlflush{#1}% same with: \xmltext{#1}{} \stopxmlsetups \setuppapersize[A6][A6] \starttext By \type{\xmlprocessfile{test}{test.xml}{}}:\par \xmlprocessfile{test}{test.xml}{} \blank Directly:\par This must be {\bf bold text}. \stoptext Input: ?xml version=1.0 encoding=UTF-8? test This must be {\bf bold text}. /test Output: test.pdf Description: Adobe PDF document Hans van der Meer ___ 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] context beta not found
Did I miss some change in the ConTeXt beta location? Or a server blackout? On refreshing my ConTeXt beta I get from: curl -o first-setup.sh http://minimals.contextgarden.net/setup/first-setup.sh the error message: curl: (6) Couldn't resolve host 'minimals.contextgarden.net' Hans van der Meer ___ 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] xml TeX expansion?
On 2010-03-17 11:28:30, Hans van der Meer wrote: Typesetting material containing macro's from inside a xml-node does not give TeX-ed results. How can this be accomplished? Hi Hans, I'm using extra tags with setups because no TeX code seems to be processed directly from the xml file. ---8-test.xml- ?xml version=1.0 encoding=UTF-8? test This must be {\bf bold text}. This is bfbold text/bf. /test ---8-- ---8-test.tex- \startxmlsetups xml:testsetups \xmlsetsetup{test}{test|bf}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:bf {\bold \xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:test \xmlflush{#1}% same with: \xmltext{#1}{} \stopxmlsetups \setuppapersize[A6][A6] \starttext By \type{\xmlprocessfile{test}{test.xml}{}}:\par \xmlprocessfile{test}{test.xml}{} \blank Directly:\par This must be {\bf bold text}. \stoptext ---8-- Like this it works here, Philipp Minimal example ConTeXt code: \startxmlsetups xml:testsetups \xmlsetsetup{test}{test}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:test \xmlflush{#1}% same with: \xmltext{#1}{} \stopxmlsetups \setuppapersize[A6][A6] \starttext By \type{\xmlprocessfile{test}{test.xml}{}}:\par \xmlprocessfile{test}{test.xml}{} \blank Directly:\par This must be {\bf bold text}. \stoptext Input: ?xml version=1.0 encoding=UTF-8? test This must be {\bf bold text}. /test Output: Hans van der Meer ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments signature.asc Description: Digital signature ___ 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] context beta not found
Hello Hans, Did I miss some change in the ConTeXt beta location? Or a server blackout? a server blackout, better: a nameserver blackout. I am currently moving the domain contextgarden.net (not the machine, just the name) to a different provider, because of the bad support of the old one. In the mean time all the subdomains (except for wiki - perhaps the others show up in 24 hours?) are broken. I deeply apologize for the inconvenience and will report back once the move is over (hopefully in one week ore before). Patrick ___ 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] xml TeX expansion?
On 17 mrt 2010, at 11:49, Philipp Gesang wrote: On 2010-03-17 11:28:30, Hans van der Meer wrote: Typesetting material containing macro's from inside a xml-node does not give TeX-ed results. How can this be accomplished? Hi Hans, I'm using extra tags with setups because no TeX code seems to be processed directly from the xml file. Yes, I know that and already have made a setup for common commands like b=\bf, hr/=\hairline etc. My point however is: How to avoid the need to rewrite in this manner all ConTeXt macros one needs? ---8- test .xml- ?xml version=1.0 encoding=UTF-8? test This must be {\bf bold text}. This is bfbold text/bf. /test ---8 -- Like this it works here, Hans van der Meer ___ 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] context beta not found
On Wed, Mar 17, 2010 at 11:34, Hans van der Meer wrote: Did I miss some change in the ConTeXt beta location? Or a server blackout? On refreshing my ConTeXt beta I get from: curl -o first-setup.sh http://minimals.contextgarden.net/setup/first-setup.sh There's also a secret mirror on http://minimals.metatex.org. the error message: curl: (6) Couldn't resolve host 'minimals.contextgarden.net' It should be theoretically possible to use the hidden functionality: rsync -av rsync://metatex.org/minimals/setup/first-setup.sh . ./first-setup.sh --server=metatex.org (But the rsync server on the garden is responding here.) Mojca ___ 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] context beta not found
Patrick, Thanks for the prompt reply. I will await your message then. Good luck with the move over. Hans van der Meer On 17 mrt 2010, at 11:51, Patrick Gundlach wrote: Hello Hans, Did I miss some change in the ConTeXt beta location? Or a server blackout? a server blackout, better: a nameserver blackout. I am currently moving the domain contextgarden.net (not the machine, just the name) to a different provider, because of the bad support of the old one. In the mean time all the subdomains (except for wiki - perhaps the others show up in 24 hours?) are broken. I deeply apologize for the inconvenience and will report back once the move is over (hopefully in one week ore before). Patrick ___ 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] xml TeX expansion?
Am 17.03.10 12:03, schrieb Hans van der Meer: Yes, I know that and already have made a setup for common commands like b=\bf, hr/=\hairline etc. My point however is: How to avoid the need to rewrite in this manner all ConTeXt macros one needs? Maybe there is a way to let ConTeXt interpret the CDATA content, at the moment it is printed verbatim. What you can also do is to write TeX content in a tex element and disable xml parsing. A better way is to minimize your markup and inlcude rules etc. in other elements/environments (e.g. headers, descriptions ...) \startbuffer[test] ?xml version=1.0 encoding=UTF-8? test ![CDATA[ This must be {\bf bold text}. ]] This is bfbold text/bf. texThis is bfbold text/bf./tex /test \stopbuffer \savebuffer[test][test.xml] \startxmlsetups xml:testsetups \xmlsetsetup{test}{test|bf|tex}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:bf {\bf\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:test \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:tex \disableXML \xmlflush{#1} \stopxmlsetups \starttext \xmlprocessfile{test}{test.xml}{} \stoptext 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] typescripts
On Wed, Mar 17, 2010 at 10:11, Wolfgang Schuster wrote: Am 17.03.10 10:04, schrieb Mojca Miklavec: Maybe I'm wrong, but shouldn't it be possible (I didn't test) to modify font-unk.mkiv and add a few extra definitions to the following? (Maybe not modify font-unk itself, but just adding a couple of more definitons to the typescript.) \definebodyfont [default] [rm] [tf=Serif sa 1, bf=SerifBold sa 1, it=SerifItalic sa 1, sl=SerifSlanted sa 1, bi=SerifBoldItalic sa 1, bs=SerifBoldSlanted sa 1, sc=SerifCaps sa 1] You could add your in=SerifYourFontVariantName sa 1, bd=SerifYourOtherFontVariantName sa 1, The last time i did this you needed for MkIV also \definefontalternative[in] \definefontalternative[bd] but be carefull with the shortcuts, \in is already used (references). I know, but it's up to Michael to choose the names for his scheme. It's not very wise to override existing comands anyway; and almost any two-letter could could be taken for language switching. (\sl should stand for Slovenian, though it has a lower priority than font switching.) If he decides not to use cross-references, it may even work (with zero guarantee). Mojca ___ 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 expansion depth limit for metapost
* Taco Hoekwater t...@elvenkind.com [2010-03-17 10:27:41 +0100]: Michal Suszko wrote: I'm preparing quite long presentation -- nearly 3000 sides, 900 figures (500 distinct PNG files). I'm using ConTeXt MkIV installed using minimals (2010.03.12 19:49). Recently I'm hitting MetaPost capacity limit on expansion depth: !mplib : mp terminal: ! MetaPost capacity exceeded, sorry [expansion depth=1]. Increasing expand_depth in texmf.cnf and regenerating formats with context --make doesn't help. expansion depth is still at 1 in error message. This is because recursion in metapost takes place on the C stack, and that does not allow growth. But do you really need 1 expansion levels? That seems a little weird. I don't see where this could come from. If I split document in half both parts are building fine. Michał ___ 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] typescripts
Am 17.03.10 12:33, schrieb Mojca Miklavec: I know, but it's up to Michael to choose the names for his scheme. It's not very wise to override existing comands anyway; and almost any two-letter could could be taken for language switching. (\sl should stand for Slovenian, though it has a lower priority than font switching.) You loose the language shortcut but you're still able to change hyphenation patterns with \language[...], that's not possible with references. 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] Setting expansion depth limit for metapost
Michal Suszko wrote: * Taco Hoekwater t...@elvenkind.com [2010-03-17 10:27:41 +0100]: Michal Suszko wrote: I'm preparing quite long presentation -- nearly 3000 sides, 900 figures (500 distinct PNG files). I'm using ConTeXt MkIV installed using minimals (2010.03.12 19:49). Recently I'm hitting MetaPost capacity limit on expansion depth: !mplib : mp terminal: ! MetaPost capacity exceeded, sorry [expansion depth=1]. Increasing expand_depth in texmf.cnf and regenerating formats with context --make doesn't help. expansion depth is still at 1 in error message. This is because recursion in metapost takes place on the C stack, and that does not allow growth. But do you really need 1 expansion levels? That seems a little weird. I don't see where this could come from. If I split document in half both parts are building fine. It could be a bug in mplib then, but I can't test that without an input example. Can you create me one? (it could consist of one massive \dorecurse call, I assume?). Best wishes, Taco ___ 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] typescripts
Wolfgang Schuster: You can apply only *one* feature to \definefontfeatures. I've seen examples like this: \definefontfeature [fea] [mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,tlig=yes, calt=yes,trep=yes,mark=yes,mkmk=yes, kern=yes,curs=yes] so I think you mean to say that I can apply only one feature to \definefontsynonym or to \definetypeface. I tried this and it checks out. Thanks---it's nice to see hz working. Protrusion is only on the right margin? 2. As far as I can tell from trying to decode examples, there is some hidden connection between the first arguments of the second typescript block and the font switches. So, for example, a secret connection between SerifBoldItalic and \bi seems to connect Junicode-BoldItalic to \bi. Fine, but, in all the examples I've seen, there are no more than two weights and no widths. In some cases, I have five weights (light, book, medium, semi-bold, bold). How do I set up the typescript for this and the switches in the text? Must I learn more pairs like (SerifBoldItalic, \bi)? You need more typefaces. One for light, another one for condensed etc. -- Mojca Miklavec: Must I learn more pairs like (SerifBoldItalic, \bi)? Yes, but there are not many (tf, it, sl, bf, bi, bs, sc) and I assume that they are extensible. See also below. You need more typefaces. One for light, another one for condensed etc. Maybe I'm wrong, but shouldn't it be possible (I didn't test) to modify font-unk.mkiv and add a few extra definitions to the following? (Maybe not modify font-unk itself, but just adding a couple of more definitons to the typescript.) \definebodyfont [default] [rm] [tf=Serif sa 1, bf=SerifBold sa 1, it=SerifItalic sa 1, sl=SerifSlanted sa 1, bi=SerifBoldItalic sa 1, bs=SerifBoldSlanted sa 1, sc=SerifCaps sa 1] You could add your in=SerifYourFontVariantName sa 1, bd=SerifYourOtherFontVariantName sa 1, And then \definefontsynonym[SerifYourFontVariantName][YourFontName] It's true that most people don't do that, but I see no reason for not extending the model for your particular needs. Mojca -- Wolfgang Schuster: The last time i did this you needed for MkIV also \definefontalternative[in] \definefontalternative[bd] but be carefull with the shortcuts, \in is already used (references). Thank you both. I want to begin experimenting with this, but there's one thing that still confuses me. If I have a font with say, forty different combinations of weight/width/shape (5x4x2), I will need to come up with forty different pairs like: myNewFontSwitch=SerifMyFontVariantName sa 1, a strain on the poetic imagination, but possible. It would be nicer though, if I could change weight/width/shape independently of each other (then I need have only 5+4+2 switches). For example, when I see something like: \rm\tf roman \it italic \bf bold resulting in: book roman book italic bold roman, it's surprising to see that \bf has turned off the italic---you don't expect a switch of the weight to have a hidden switch of the shape in it. Could the typescript be set up with fewer switches, so that: \rm\tf roman \it italic \bf bold would result in: book roman book italic bold italic, or, e.g., \rm\tf (regular book roman) \cd (condensed) \it (italic) \bf (bold) would result in: regular book roman condensed book roman condensed book italic condensed bold italic? (Also, I'm hoping that having a dozen different sets of font features won't require twelve times as many switches and feature names as this. I think there is some easier method for switching---Hans mentioned \addff{}, but I can't find anything in the docs. If that works, that would make two kinds of switches, one for some kinds of features and another for other kinds.) ___ 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] typescripts
Am 17.03.10 13:16, schrieb Michael Saunders: You can apply only *one* feature to \definefontfeatures. I've seen examples like this: [...] so I think you mean to say that I can apply only one feature to \definefontsynonym or to \definetypeface. Yes. I tried this and it checks out. Thanks---it's nice to see hz working. Protrusion is only on the right margin? Left and right but quotation marks do not appear so often on the left margin. (Also, I'm hoping that having a dozen different sets of font features won't require twelve times as many switches and feature names as this. I think there is some easier method for switching---Hans mentioned \addff{}, but I can't find anything in the docs. If that works, that would make two kinds of switches, one for some kinds of features and another for other kinds.) \addff, \subff etc. are rather new commands and therefore only documented in the source, you're free to add them to the wiki. 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] xml TeX expansion?
On 17-3-2010 12:14, Wolfgang Schuster wrote: \startxmlsetups xml:tex \disableXML \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:tex \xmlraw{#1}{} \stopxmlsetups - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xml TeX expansion?
Strange. First ran the Schuster code and got two bold outputs. Then changing to the Hagen code (xmlraw) the tex-enclosed code gives: This is bfbold text/bf. That code doesn't work where the first did. How come? On 17 mrt 2010, at 13:46, Hans Hagen wrote: On 17-3-2010 12:14, Wolfgang Schuster wrote: \startxmlsetups xml:tex \disableXML \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:tex \xmlraw{#1}{} \stopxmlsetups Hans van der Meer ___ 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] xml TeX expansion?
I do not understand the following. Running the Schuster code exactly as it is, the tex/tex enclosure works. If however I incorporate the data from file instead of through \savebuffer, then it doesn't work. What crucial detail am I missing here? Hans van der Meer On 17 mrt 2010, at 12:14, Wolfgang Schuster wrote: Am 17.03.10 12:03, schrieb Hans van der Meer: Yes, I know that and already have made a setup for common commands like b=\bf, hr/=\hairline etc. My point however is: How to avoid the need to rewrite in this manner all ConTeXt macros one needs? Maybe there is a way to let ConTeXt interpret the CDATA content, at the moment it is printed verbatim. What you can also do is to write TeX content in a tex element and disable xml parsing. A better way is to minimize your markup and inlcude rules etc. in other elements/environments (e.g. headers, descriptions ...) \startbuffer[test] ?xml version=1.0 encoding=UTF-8? test ![CDATA[ This must be {\bf bold text}. ]] This is bfbold text/bf. texThis is bfbold text/bf./tex /test \stopbuffer \savebuffer[test][test.xml] \startxmlsetups xml:testsetups \xmlsetsetup{test}{test|bf|tex}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:bf {\bf\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:test \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:tex \disableXML \xmlflush{#1} \stopxmlsetups \starttext \xmlprocessfile{test}{test.xml}{} \stoptext 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 ___ ___ 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] xml TeX expansion?
On 17-3-2010 14:09, Hans van der Meer wrote: Strange. First ran the Schuster code and got two bold outputs. Then changing to the Hagen code (xmlraw) the tex-enclosed code gives: This is bfbold text/bf. That code doesn't work where the first did. How come? well, it depends on what you want ... Wolfgangs code disabled xml but not really (\disableXML is a no-op in mkiv xml) the xml file is loaded in memory and the b... is therefore no text but a node (with text) so if you want to see what it was when input you need to use \xmlverbatim or \xmlraw Hans - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] tlig not active in register
Dear list, I'd love to provide a minimal example but before I figure out how to do that a short question: I'm using the same font in the body text and registers: Jannon Text, tex ligatures via fontfeatures work in the body text but not in registers in page scopes. Any ideas? Piotr -- http://okle.pl ___ 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] Footnotes and interaction again
Hi again, I just ran into the footnote problem again, this time when referring to labels inside footnotes. As in the earlier thread the issue occurs with mkiv only. Example: ---8-- \setupinteraction[state=start,focus=standard] \starttext \startfootnote A label \reference[label:1]{} we will refer to. \stopfootnote \page[yes] \goto{Here}[label:1] we refer somewhere. It all happens on Page \ref[p][label:1]. \stoptext ---8-- To be precise, you don't actually have to refer to the label, having it inside a footnote causes the error. Thanks for any suggestions, Philipp pgpL6F7pXOU29.pgp Description: PGP signature ___ 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] tlig not active in register
Is there a simple way to force replacing of double hyphen by a unicode en dash in registers? P. 2010/3/17 Piotr Kopszak kops...@gmail.com: Dear list, I'd love to provide a minimal example but before I figure out how to do that a short question: I'm using the same font in the body text and registers: Jannon Text, tex ligatures via fontfeatures work in the body text but not in registers in page scopes. Any ideas? Piotr -- http://okle.pl -- http://okle.pl ___ 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] tlig not active in register
On 17-3-2010 19:30, Piotr Kopszak wrote: Is there a simple way to force replacing of double hyphen by a unicode en dash in registers? can you make a test file that shows the problem - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xml TeX expansion?
Took me quite some time to discover: \startxmlsetups xml:common:tex \xmlflushcontext{#1}{} \stopxmlsetups but worthwhile because it seems to do what I wanted. Hans van der Meer On 17 mrt 2010, at 13:46, Hans Hagen wrote: On 17-3-2010 12:14, Wolfgang Schuster wrote: \startxmlsetups xml:tex \disableXML \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:tex \xmlraw{#1}{} \stopxmlsetups ___ 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] xml TeX expansion?
Am 17.03.10 14:20, schrieb Hans van der Meer: I do not understand the following. Running the Schuster code exactly as it is, the tex/tex enclosure works. If however I incorporate the data from file instead of through \savebuffer, then it doesn't work. \savebuffer writes the content into the external file test.xml, you never process the buffer content What crucial detail am I missing here? I wonder why you haven't noticed this nonsense in my example texThis is bfbold text/bf./tex while you wanted texThis is {\bf bold text.}/tex D’oh ;) 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] tlig not active in register
Here it is, for archives only, as the bug is no longer there with today's minimals. I noticed it with context version of 2009.09.25 23:52. Evidently time to update. \setupregister[index][pagestyle=\it] \usetypescript[iwona] \switchtobodyfont[iwona] \starttext first \index[first]{first item} \page first \index[first]{first item} \page first \index[first]{first item} \page \placeindex[compress=yes] \stoptext Piotr 2010/3/17 Hans Hagen pra...@wxs.nl: On 17-3-2010 19:30, Piotr Kopszak wrote: Is there a simple way to force replacing of double hyphen by a unicode en dash in registers? can you make a test file that shows the problem - 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 - -- http://okle.pl ___ 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] xml TeX expansion?
On 17-3-2010 22:27, Hans van der Meer wrote: Took me quite some time to discover: \startxmlsetups xml:common:tex \xmlflushcontext{#1}{} \stopxmlsetups but worthwhile because it seems to do what I wanted. that's indeed a new one (added recently), there's also a filter: \xmlfilter{#1}{/whatever/context()} Hans - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnotes and interaction again
On 17-3-2010 18:53, Philipp Gesang wrote: \setupinteraction[state=start,focus=standard] \starttext \startfootnote A label \reference[label:1]{} we will refer to. \stopfootnote \page[yes] \goto{Here}[label:1] we refer somewhere. It all happens on Page \ref[p][label:1]. \stoptext in strc-ref.mkiv patch \unexpanded\def\textreference {\dosingleargument\dotextreference} \unexpanded\def\pagereference {\dosingleargument\dopagereference} \unexpanded\def\reference {\dosingleargument\doreference} \unexpanded\def\setreference {\dodoubleargument\dosetreference } (make them unexpandable) - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typescripts
Hi Michael, do you need all of your fonts at the same time in your document? Do you plan to switch between oldstyle and lining figures each sentence? Do you need condensed and regular width together in the running text or do you want one in the text and the other in the header? ConTeXt is not a DTP program and has a completely different concept. Before we can give you better answers think about what do want to achieve and where do you need a certain font feature and style, when you have a clear picture about this ty to describe it and we try to help you. 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 ___
[NTG-context] Using external libraries in LuaTeX
Dear All In a the recent Luatex 0.46.0 announcement http://tug.org/pipermail/luatex/2009-November/001118.html experimental support for loading external libraries was reported. I am running Windows Vista with ConTeXt ver: 2010.03.12 19:49 MKIV fmt: 2010.3.16 int: english/english with LuaTeX, Version beta-0.51.0-2010031309 (rev 3479) I have also downloaded Lua 5.1 from http://luaforwindows.luaforge.net/ and so have Lua5.1.dll installed. This distribution has a number of interesting extenal libraries (ie DLLs) that I would like to try out with LuaTeX. If I can make progress I would be happy to document and write-up my experiments for posting on the Wiki in case they may be of interest to others. I should say that my coding skills are somewhat rusty as I've been away from programming/TeX for a few years... so do please excuse my simplistic questions :-) So, I was wondering if anyone has a minimal example they would be kind enough to share, or can give me a few pointers/guidelines so that I can start experimenting. In particular, I'm interested to call external libraries and inject the output from an external library into TeX for typesetting. For example, is it possible to load a library once, keep it loaded and access the library functions from different commands during the TeX run? In outline... --- run some code to load the library (initialisation) --- keeping the library available --- some commands\definitions to accss library functions eg \calltolibrary{) --- make callsto library and pass the output into TeX for typesetting I would be very grateful for any guidance/help that can be offered. Warm wishes to all Graham ___ 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] typescripts
Wolfgang Schuster: do you need all of your fonts at the same time in your document? Most of the time, one serif and one sans. I'd be happy to get these installed. Of course, High quality fonts often come in large sets. The varying weights turn up most often in the variations between different kinds of heads, occasionally in other things. Variations in optical size occur more frequently, besides in heads, in things like quotations, footnotes, and captions. Smallcaps (and sometimes, all-caps environments) often turn up in headers. It's nice to be able to switch easily between roman/italic and other things within environments like that---it's very nice if things like shape, weight and so on can be switched independently. It's also very nice if optical design sizes switch automatically with the current size. Consider, for example, something like this: a book on film with a header: Fellini's Roma and 8 1/2. I'm used to setting something like this in this way: Fellini's \it{Roma} and \it{\cvfrac{8}{1}{2}} (where \cvfrac{}{}{} is a macro that gives me a compound vulgar fraction). The header is itself in smallcaps, so what comes out is: Fellini's small caps Roma italic small caps and small caps 8 italic proportional lining (italic and lining (i.e., uppercase) because it's a title) 1/2 italic numeratoritalicitalic denominator all with minimal effort on the part of the writer. It seems natural that way. Do you plan to switch between oldstyle and lining figures each sentence? I've certainly done that before, with lining for quantities and oldstyle for everything else (mostly chapter and page numbers). Of course, other sorts of numerals turn up a lot too---the numerator and denominator variants for fractions, the superiors for footnotemarks and ordinals, and occasionally inferiors as well. Do you need condensed and regular width together in the running text or do you want one in the text and the other in the header? The different widths of my sans is one thing I hadn't counted on using much (I spend more time in serif) but, since I have the fonts, I thought it would be nice to be able to use them. More than the specific uses I've mentioned above, I'm used to the freedom of being able to use what I have when the need arises. ConTeXt is not a DTP program and has a completely different concept. I'm aware of that. I've been using LaTeX for fifteen years now. I keep hearing about Context and the work with Luatex and I want to try it out to see whether I can get higher quality. Loading and switching fonts is just the first hurdle. If it's too difficult to do this in Context, that's okay. I realize that it's a work in progress and these things may be improved someday. I just want to get as much working as I can right now so I can try out more things. I have two fonts to install. I've been at it for two weeks. I realize it might take a few more weeks and a lot of work. I know it's not as easy as dropping them in a folder. That's okay. I'll keep at it. Before we can give you better answers think about what do want to achieve and where do you need a certain font feature and style, when you have a clear picture about this ty to describe it and we try to help you. ___ 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] Using external libraries in LuaTeX
On Thu, Mar 18, 2010 at 1:10 AM, Graham Douglas graham.doug...@readytext.co.uk wrote: Dear All In a the recent Luatex 0.46.0 announcement http://tug.org/pipermail/luatex/2009-November/001118.html experimental support for loading external libraries was reported. I am running Windows Vista with ConTeXt ver: 2010.03.12 19:49 MKIV fmt: 2010.3.16 int: english/english with LuaTeX, Version beta-0.51.0-2010031309 (rev 3479) I have also downloaded Lua 5.1 from http://luaforwindows.luaforge.net/ and so have Lua5.1.dll installed. This distribution has a number of interesting extenal libraries (ie DLLs) that I would like to try out with LuaTeX. If I can make progress I would be happy to document and write-up my experiments for posting on the Wiki in case they may be of interest to others. I should say that my coding skills are somewhat rusty as I've been away from programming/TeX for a few years... so do please excuse my simplistic questions :-) So, I was wondering if anyone has a minimal example they would be kind enough to share, or can give me a few pointers/guidelines so that I can start experimenting. In particular, I'm interested to call external libraries and inject the output from an external library into TeX for typesetting. For example, is it possible to load a library once, keep it loaded and access the library functions from different commands during the TeX run? In outline... --- run some code to load the library (initialisation) --- keeping the library available --- some commands\definitions to accss library functions eg \calltolibrary{) --- make callsto library and pass the output into TeX for typesetting I would be very grateful for any guidance/help that can be offered. http://www.ntg.nl/EuroTeX2009/slides/luigi-slides.pdf -- luigi ___ 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 ___