Hi Björn,
On Tue, May 24, 2016 at 11:09 AM, Björn Dahlgren <[email protected]> wrote:
> 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?
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
--
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 [email protected].
To post to this group, send email to [email protected].
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/CADDwiVCseDMagGt4sGsV1PpecTA2Xx7uyV5dWNeV5nxP_ps6Fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.