Huge subscripts in latex rendering of vector expressions

37 views
Skip to first unread message

Amine Aboufirass

unread,
Sep 3, 2017, 1:27:46 PM9/3/17
to sympy


I've been playing around with the sympy vector module and the expressions created in latex contain very large subscripts denoting their reference system. Please see the attachment if the graphic does not appear below.

I have x and y defined as symbols and C as the reference system. The inclusion of the subscript C for every term is not necessary for my application and quickly gets very ugly for larger expressions with many variables.

I want to get rid of these subscripts. They are discouraging me from working with the vector module. How can I disable them please?
capture.png

Kalevi Suominen

unread,
Sep 3, 2017, 2:38:50 PM9/3/17
to sympy

You can define a subclass of CoordSys3D that redefines vector_names and variable_names in its __init__ function. (Some experimentation may be necessary to see exactly which attributes need to be changed.)

Kalevi Suominen

szymon.m...@gmail.com

unread,
Sep 3, 2017, 2:55:19 PM9/3/17
to sympy

Aaron Meurer

unread,
Sep 4, 2017, 1:55:13 AM9/4/17
to sy...@googlegroups.com
We should fix the coordinate system class to be able to not include the coordinate system name in the latex representation. 

As a workaround, you could name the coordinate system the empty string or ' ' so that the latex subscript gets ignored.

Aaron Meurer

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/4e71dcbf-5e20-4eb7-bc11-973fc58f9ec4%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages