LyXMaxima TeX Conversion not Working in Lyx . . .

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
BuntuLyX
Posts: 2
Joined: Thu Jan 16, 2014 6:58 pm

Maxima TeX Conversion not Working in Lyx . . .

Post by BuntuLyX »

Greetings!

I have a simple question for the community today; but it's been troubling me for a while.

Suppose we have a straightforward equation formatted for Maxima,

Code: Select all

integrate(4*sqrt(1-(x^2)),x,0,1);
Then, desiring syntax for direct insertion into a *.lyx document, we run

Code: Select all

tex ('integrate(4*sqrt(1-(x^2)),x,0,1));
yielding

Code: Select all

4\,\int_{0}^{1}{\sqrt{1-x^2}\;dx}
Then, into a normally-headered *.lyx document, we insert

Code: Select all

\begin_body

\begin_layout Standard
\begin_inset Formula 
\begin{eqnarray*}
4\,\int_{0}^{1}{\sqrt{1-x^2}\;dx}
\end{eqnarray*}

\end_inset


\end_layout

\end_body
which, when opened in LyX (using either Octave or Maxima to solve/edit), does not return an answer to the document.

What might this newbie be missing to allow an equation converted through Maxima (tex) to run directly in a *.lyx document?

Thanks a bunch ;)
Last edited by BuntuLyX on Fri Jan 24, 2014 4:28 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

BuntuLyX
Posts: 2
Joined: Thu Jan 16, 2014 6:58 pm

Re: Maxima TeX Conversion not Working in LyX . . .

Post by BuntuLyX »

Bump?
daacosta
Posts: 5
Joined: Tue Jun 21, 2016 8:00 am

Maxima TeX Conversion not Working in Lyx . . .

Post by daacosta »

Great question. The problem stems from juxtaposing 4 with the integral sign without a the times sign. Instead of:

4\,\int_{0}^{1}{\sqrt{1-x^2}\;dx}

Fix it by removing blank spaces in the formula (\, and \;) and including a dot after the four:

4\cdot\int_{0}^{1}\sqrt{1-x^2}dx

runs OK... The result is \pi
Post Reply