Re: [NTG-context] latest beta - Math error
Am 03.03.2009 um 12:23 schrieb Hans Hagen: A ConTeXt version of the filecontents for LaTeX would be handy in such cases. i have no clue what this means Thomas was unable to show his problem with a buffer, the filecontents environment is like a buffer but writes the content to a file with a given name, e.g. \begin{filecontentents}{example.xml} Hello < \end{filecontents} ... \starttext \xmlprocess{main}{example.xml}{} \stoptext Everything between \begin/end{filecontents} is written to the file example.xml. This is handy for example given on the list because attatchments are a problem in the mail archive and you have to create only one tex file for the example. Here is a example but it works only on MkII. \unprotect \def\startfilecontents {\bgroup \protectbuffersfalse \dosingleargument\dostartfilecontents} \def\dostartfilecontents[#1]% {\beforesplitstring#1\at.\to\filename \aftersplitstring #1\at.\to\extension \let\f!temporaryextension\extension \dostartbuffer[\filename][startfilecontents][stopfilecontents]} \def\stopfilecontents {\doifdefined{savebuffer}{\savebuffer[\filename]}\egroup} \protect \startfilecontents[a1.txt] 1 5 2 4 3 8 4 9 8 8 \stopfilecontents \starttext \readfile{a1.txt}{}{} \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
Wolfgang Schuster wrote: On Tue, Mar 3, 2009 at 11:44 AM, Thomas A. Schmitz wrote: Anyway, I have now found a minimal file that shows one error. I couldn't make the error appear with a buffer, only when I had xml + environment file. so ... what is the test file then? A ConTeXt version of the filecontents for LaTeX would be handy in such cases. i have no clue what this means 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
On Tue, Mar 3, 2009 at 11:44 AM, Thomas A. Schmitz wrote: > Anyway, I have now found a minimal file that shows one error. I couldn't > make the error appear with a buffer, only when I had xml + environment file. A ConTeXt version of the filecontents for LaTeX would be handy in such cases. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
On Mar 3, 2009, at 9:09 AM, Hans Hagen wrote: Yes, unfortunately it does... strange, since it works ok here; maybe deleting the font cache helps I meant, unfortunately it does work since this made finding the error much harder... Anyway, I have now found a minimal file that shows one error. I couldn't make the error appear with a buffer, only when I had xml + environment file. Here comes: Hello < teststyle.tex Description: Binary data Hope this is reproducible All best Thomas___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
Hans Hagen wrote: > Thomas A. Schmitz wrote: >> >> On Mar 2, 2009, at 11:32 PM, Hans Hagen wrote: >> >>> does this work at your end? >>> >>> \starttext >>> >>> $\approx$ >>> >>> \stoptext >> >> Yes, unfortunately it does... > > strange, since it works ok here; maybe deleting the font cache helps If both work, then maybe the xml is using a different math font set? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
Thomas A. Schmitz wrote: On Mar 2, 2009, at 11:32 PM, Hans Hagen wrote: does this work at your end? \starttext $\approx$ \stoptext Yes, unfortunately it does... strange, since it works ok here; maybe deleting the font cache helps 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
On Mar 2, 2009, at 11:32 PM, Hans Hagen wrote: does this work at your end? \starttext $\approx$ \stoptext Yes, unfortunately it does... Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta - Math error
Thomas A. Schmitz wrote: Sorry, I don't have a minimal example yet, but processing some of my xml files dies with this error: ! Math error: parameter \Umathquad\crampedscriptscriptstyle is not set. \XML:ent:approx ->$\approx $ does this work at your end? \starttext $\approx$ \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] latest beta - Math error
Sorry, I don't have a minimal example yet, but processing some of my xml files dies with this error: ! Math error: parameter \Umathquad\crampedscriptscriptstyle is not set. \XML:ent:approx ->$\approx $ l.2 ≈ \xmlflush #1->\ctxlua {lxml.flush("#1")} \@@su:xml:content #1->\xmlflush {#1} \par l.1 \xmlsetup{292}{xml:content} \xmlfirst #1#2->\ctxlua {lxml.first("#1","#2")} ... or ! Math error: parameter \Umathquad\crampedscriptscriptstyle is not set. \mathematics #1->\relax \ifmmode #1\else $#1$ \fi \XML:ent:lt ...ies \string <\else \mathematics {<} \fi l.5 < \xmlflush #1->\ctxlua {lxml.flush("#1")} \@@su:xml:content #1->\xmlflush {#1} \par l.1 \xmlsetup{880}{xml:content} I haven't succeeded in narrowing down the error, but what does \Umathquad and \crampedscriptscriptstyle mean? I couldn't find it in the source. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___