ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* latest beta - Math error
@ 2009-03-02 21:32 Thomas A. Schmitz
  2009-03-02 22:32 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas A. Schmitz @ 2009-03-02 21:32 UTC (permalink / raw)
  To: mailing ConTeXt users list for

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  &lt;

\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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latest beta - Math error
  2009-03-02 21:32 latest beta - Math error Thomas A. Schmitz
@ 2009-03-02 22:32 ` Hans Hagen
  2009-03-02 22:39   ` Thomas A. Schmitz
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2009-03-02 22:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latest beta - Math error
  2009-03-02 22:32 ` Hans Hagen
@ 2009-03-02 22:39   ` Thomas A. Schmitz
  2009-03-03  8:09     ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas A. Schmitz @ 2009-03-02 22:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latest beta - Math error
  2009-03-02 22:39   ` Thomas A. Schmitz
@ 2009-03-03  8:09     ` Hans Hagen
  2009-03-03  8:29       ` Taco Hoekwater
  2009-03-03 10:44       ` Thomas A. Schmitz
  0 siblings, 2 replies; 9+ messages in thread
From: Hans Hagen @ 2009-03-03  8:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latest beta - Math error
  2009-03-03  8:09     ` Hans Hagen
@ 2009-03-03  8:29       ` Taco Hoekwater
  2009-03-03 10:44       ` Thomas A. Schmitz
  1 sibling, 0 replies; 9+ messages in thread
From: Taco Hoekwater @ 2009-03-03  8:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latest beta - Math error
  2009-03-03  8:09     ` Hans Hagen
  2009-03-03  8:29       ` Taco Hoekwater
@ 2009-03-03 10:44       ` Thomas A. Schmitz
  2009-03-03 11:07         ` Wolfgang Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Thomas A. Schmitz @ 2009-03-03 10:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]


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:


[-- Attachment #2: test.xml --]
[-- Type: text/xml, Size: 109 bytes --]

<?xml version="1.0" encoding="utf-8"?>

<auth> 

<section><content>Hello &lt;</content></section>

</auth> 


[-- Attachment #3: teststyle.tex --]
[-- Type: application/octet-stream, Size: 396 bytes --]

\startxmlsetups xml:hessetups
	\xmlsetsetup{\xmldocument}{auth|section|content}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:hessetups}

\startxmlsetups xml:auth
	\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:section
	\xmlflush{#1}\par \midaligned{\hl[5]}
\stopxmlsetups

\startxmlsetups xml:content
	\xmlflush{#1}\par
\stopxmlsetups

\starttext
\xmlprocess{main}{\inputfilename}{}
\stoptext

[-- Attachment #4: Type: text/plain, Size: 45 bytes --]



Hope this is reproducible

All best

Thomas

[-- Attachment #5: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latest beta - Math error
  2009-03-03 10:44       ` Thomas A. Schmitz
@ 2009-03-03 11:07         ` Wolfgang Schuster
  2009-03-03 11:23           ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2009-03-03 11:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Mar 3, 2009 at 11:44 AM, Thomas A. Schmitz
<thomas.schmitz@uni-bonn.de> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latest beta - Math error
  2009-03-03 11:07         ` Wolfgang Schuster
@ 2009-03-03 11:23           ` Hans Hagen
  2009-03-03 11:48             ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2009-03-03 11:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster wrote:
> On Tue, Mar 3, 2009 at 11:44 AM, Thomas A. Schmitz
> <thomas.schmitz@uni-bonn.de> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latest beta - Math error
  2009-03-03 11:23           ` Hans Hagen
@ 2009-03-03 11:48             ` Wolfgang Schuster
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2009-03-03 11:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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.

<test.tex>
\begin{filecontentents}{example.xml}
<?xml version="1.0" encoding="utf-8"?>
<auth>
<section><content>Hello &lt;</content></section>
</auth>
\end{filecontents}

...

\starttext
\xmlprocess{main}{example.xml}{}
\stoptext
</test.tex>

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-03 11:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-02 21:32 latest beta - Math error Thomas A. Schmitz
2009-03-02 22:32 ` Hans Hagen
2009-03-02 22:39   ` Thomas A. Schmitz
2009-03-03  8:09     ` Hans Hagen
2009-03-03  8:29       ` Taco Hoekwater
2009-03-03 10:44       ` Thomas A. Schmitz
2009-03-03 11:07         ` Wolfgang Schuster
2009-03-03 11:23           ` Hans Hagen
2009-03-03 11:48             ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).