From: Foad S. F. <f.s...@gm...> - 2024-05-03 09:50:03
|
Following up on my earlier query about using Greek letters and generating LaTeX output from Maxima batch files, I have encountered a specific issue with superscript notation. According to the documentation and examples (such as those found on this page <http://www.hippasus.com/resources/symmath/maximatypeset.html>, I understand that Maxima can directly convert expressions to LaTeX format. For example, running: ```maxima tex(sigma_2(x,y) = sin(alpha^2 + beta^2)); ``` correctly yields: ```latex $$\sigma_{2}\left(x , y\right)=\sin \left(\beta^2+\alpha^2\right)$$ ``` However, when I try to use characters in the superscripts, as in: ```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. Thank you for your help. On Fri, May 3, 2024 at 11:32 AM Foad Sojoodi Farimani < f.s...@gm...> wrote: > Hello Maxima Community, > > I am currently working on a project that involves symbolic calculations > with Maxima, which I plan to include in a LaTeX document. To ensure my > repository is git-friendly, I prefer using Maxima batch files (.mac/.mc) > over WxMaxima (.wxmx) documents. Occasionally, I need to load these batch > files into WxMaxima to render LaTeX outputs. > > My calculations involve a significant use of Greek letters, such as 𝜌 > (rho) and 𝜎 (sigma). I am looking for the correct syntax to use in the > Maxima batch files so that when loaded into WxMaxima, the Greek letters are > correctly displayed in the outputs. Furthermore, I am interested in whether > there is a native Maxima command to directly generate LaTeX outputs that I > can include in my LaTeX documents. > > Could anyone provide guidance on how to properly format Greek letters in > the .mac/.mc files for correct LaTeX rendering, or point me towards a > command in Maxima that outputs LaTeX code directly? > > Thank you for your assistance. > |