[IPython-User] py2tex

Johan Beke johanbeke@hotmail....
Tue Aug 13 14:01:46 CDT 2013


Hello All,

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)

Changes:
- 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 ...)

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

Johan

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.scipy.org/pipermail/ipython-user/attachments/20130813/3dc31b58/attachment.html 


More information about the IPython-User mailing list