[IPython-dev] py2tex

Johan Beke johanbeke at hotmail.com
Thu Aug 15 15:13:09 EDT 2013

Hello All,

As asked by Matthias B. on the Ipython-user mailing list, I sent hereby a copy of my e-mail sent to the user list:

I wrote a little update of the py2tex extension: https://gist.github.com/4032651
(Not yet tested with latest version of IPython because I dit not update yet, but I believe it should work)

- unum.units are always set in straight font + variables always in italic font  (some bug in previous version)
- assignment of a variable with units is detected by %%tex
previous version e.g. a=1.0*m/s would output a=1.0*m/s = 1.0 m/s
output now: a=1.0 m/s
(I changed this because lines cells with each line %%tex or %%texnr where not handy)

Possible future changes:
- support for function calls like someclass.somefunction(arguments ...)

 using this extension at my office with success and must say it is an 
easy replacement for mathcad. Doing unit aware calculations, with nice 


PS: installation link on the extension index page was not yet changed to this latest version. 
PS2: comments, idea's and bug reports are welcome. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130815/12df2e77/attachment.html>

More information about the IPython-dev mailing list