No tienes permiso para eliminar mensajes de este grupo
Copiar enlace
Denunciar mensaje
Mostrar el mensaje original
Las direcciones de correo electrónico de este grupo son anónimas o necesitas el permiso para ver las direcciones de correo electrónico de los miembros para poder ver el mensaje original
a sympy
I was recently made aware that only variables should be in italics in equations (see e.g. [1], [2], [3]). I never really reflected over the distinction, but now it seems obvious. Should we make LaTeX output of SymPy follow this?
e.g. change:
>>> x = sympy.Symbol('x') >>> print(sympy.latex(sympy.Integral(x, x)))
\int x\, dx
to:
>>> x = sympy.Symbol('x') >>> print(sympy.latex(sympy.Integral(x, x)))
\int x\, \mathrm{d}x
what do you think?
Best regards, Björn
Kalevi Suominen
no leída,
24 may 2016, 7:32:2524/5/16
Responder al autor
Iniciar sesión para responder al autor
Reenviar
Iniciar sesión para reenviar
Eliminar
No tienes permiso para eliminar mensajes de este grupo
Copiar enlace
Denunciar mensaje
Mostrar el mensaje original
Las direcciones de correo electrónico de este grupo son anónimas o necesitas el permiso para ver las direcciones de correo electrónico de los miembros para poder ver el mensaje original
a sympy
I have always disliked the trend to interpret the single letter d in dx (with no space between d and x) as an 'operator' comparable to sin, cos, etc. (with a space between sin and its argument). The result is typographically displeasing. I prefer to consider the d as paired with the integral sign. In other words, if the integral sign is slanted, so should be d.
Ondřej Čertík
no leída,
24 may 2016, 8:16:1324/5/16
Responder al autor
Iniciar sesión para responder al autor
Reenviar
Iniciar sesión para reenviar
Eliminar
No tienes permiso para eliminar mensajes de este grupo
Copiar enlace
Denunciar mensaje
Mostrar el mensaje original
Las direcciones de correo electrónico de este grupo son anónimas o necesitas el permiso para ver las direcciones de correo electrónico de los miembros para poder ver el mensaje original
a sympy
Hi Björn,
Indeed, I always define
\def\d{{\rm d}}
and use as:
\d x
(I guess I should rather use the Latex's style \mathrm, as you did,
but that's minor.)
So I am in fact following this rule, but I didn't realize that the
rule is as simple as "only variables should be in italics", but it
does make sense.
Regarding "dx", there are two styles in typesetting, and I've seen
lots of textbooks in the U.S. to type "d" in italics. Also some people
prefer that, as Kalevi wrote above.
As such, I think the solution is to add an option to the printer so
that the user can choose which style he or she prefers.
Ondrej
Aaron Meurer
no leída,
24 may 2016, 13:03:4224/5/16
Responder al autor
Iniciar sesión para responder al autor
Reenviar
Iniciar sesión para reenviar
Eliminar
No tienes permiso para eliminar mensajes de este grupo
Copiar enlace
Denunciar mensaje
Mostrar el mensaje original
Las direcciones de correo electrónico de este grupo son anónimas o necesitas el permiso para ver las direcciones de correo electrónico de los miembros para poder ver el mensaje original
a sy...@googlegroups.com
I remember discussing this once in an issue (I can't find it right
now). We decided to use dx with no roman type, which is what is done
now. I can't remember what the reason for the decision was, although
I do recall that I personally prefer using dx with no roman type, as
the roman d to me looks bad and out of place.