|
From: Jaime V. <vi...@fe...> - 2024-05-03 10:37:16
|
On 03/05/24 10:49, Foad Sojoodi Farimani wrote:
> ```maxima
> tex(sigma_x(x,y) = sin(x^2 + y^2));
> ```
> Maxima seems to misinterpret the subscript and outputs:
>
> ```latex
> $${\it sigma\_x}\left(x , y\right)=\sin \left(y^2+x^2\right)$$
> ```
> which is not what I expected. The subscript `x` is incorrectly typeset
> as part of the function name rather than as a subscript.
>
> Could anyone clarify how to properly format expressions with
> subscripts and superscripts in .mac/.mc files so that they are
> correctly rendered in LaTeX? Any pointers on ensuring accurate
> typesetting would be greatly appreciated.
Try:
tex(sigma[x](x,y) = sin(x^2 + y^2));
Regards,
Jaime
|