On Thu, 30 Apr 2015 23:48:51 +0200
André Wobst <[email protected]> wrote:

> 
> List of changes
> ===============
> 
> 0.14 (2015/04/30):
>   - new svgwriter module:
>     - complete SVG output
>     - SVG font output disabled by default due to missing support by
>       most browsers, fallback by rendering fonts as paths

I'm very excited to read this as I have been looking for a way
to render beautiful PyX figures in web pages (including scalable
math, etc.) Is this possible now ?

I had a go at making an svg figure, but when I include math I get the
following error (this works fine with the pdf backend):

Traceback (most recent call last):
  File "./render.py", line 228, in <module>
    c.text(0., 0., r"hi there! $1+1=2$")
  File "/usr/local/lib/python3.2/dist-packages/pyx/canvas.py", line 409, in text
    return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1428, in 
wrapped
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1464, in text
    return self.instance.text(*args, **kwargs)
  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1304, in text
    return self.text_pt(unit.topt(x), unit.topt(y), *args, **kwargs)
  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1278, in 
text_pt
    left_pt, right_pt, height_pt, depth_pt = self.do_typeset(expr, 
self.texmessages_run_default + self.texmessages_run + texmessages)
  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1204, in 
do_typeset
    return self._execute(expr, texmessages, STATE_TYPESET, STATE_TYPESET)
  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1125, in 
_execute
    raise e
  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1114, in 
_execute
    raise TexResultError("unhandled TeX response (might be an error)")
pyx.text.TexResultError: unhandled TeX response (might be an error)
The expression passed to TeX was:
  \ProcessPyXBox{hi there! $1+1=2$%
  }{1}%
  \PyXInput{6}%
After parsing the return message from TeX, the following was left:
  *
  *
  (/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd)
  
  
  (cut after 5 lines; use errordetail.full for all output)


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to