Zim

Using LaTeX macros for more math

Asked by Compintuit

I'm trying to use the polynom latex package so that I can generate math of long divisions, polynomial divisions, and synthetic division in my Zim notebooks. I don't know what's stopping this from working, as I added the package polynom to _Equations.tex, with the line
\usepackage{polynom}
The package definitely works, as I can tell in Gummi, but I can't get it to work at all in zim. Any idea?

Question information

Language:
English Edit question
Status:
Solved
For:
Zim Edit question
Assignee:
No assignee Edit question
Solved by:
Compintuit
Solved:
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

On Mon, May 16, 2011 at 5:25 AM, Compintuit <
<email address hidden>> wrote:

> New question #157684 on Zim:
> https://answers.launchpad.net/zim/+question/157684
>
> I'm trying to use the polynom latex package so that I can generate math of
> long divisions, polynomial divisions, and synthetic division in my Zim
> notebooks. I don't know what's stopping this from working, as I added the
> package polynom to _Equations.tex, with the line
> \usepackage{polynom}
> The package definitely works, as I can tell in Gummi, but I can't get it to
> work at all in zim. Any idea?
>

Do you get some kind of error message or is the package ignored ?
In the later case where did you store the template ?

You might want to run zim as "zim -D" from a terminal to get verbose output
(I think this includes what template is being read).

-- Jaap

Revision history for this message
Compintuit (permanentlylostinsightofland) said :
#2

I have eventually pinned this down to zim's use of
\begin{align*}
and then
\end{align*}
Which I'm guessing my function doesn't work with, as if I have any idea how latex works. The polynom package was indeed being imported correctly. Though I looked through latex's log for why it wouldn't, I have yet to figure it out. The relevant part of the error message is:
! Argument of \pld@InsertItems@find has an extra }.
<inserted text>
                \par
l.13 \end{align*}
 Which means exactly nothing to me. I tried removing the align statements from the template, but found that other functions didn't render then. I did figure out that, thanks to zim's flexible plugin, I can just add my function as:
\end{align*}
\polylongdiv{x^3-7x+6}{x-1}
\begin{align*}
Which works fine as a workaround. Until I learn more of latex, I imagine that's the best I'll get. Thanks for the help.