Hi Folks
Can anyone give me some guidance on how to enter long division on Lyx 1.6 (for win XP)
I have found reference to the latex command \longdiv
I think I may have to add a package ?
I downloaded longdiv from http://ctan.org/pkg/ which gives me a tex package but I am unsure if Lyx can use it and if so where to put it.
best regards
Jim
LyX ⇒ Long division
NEW: TikZ book now 40% off at Amazon.com for a short time.
Long division
I don't use Lyx, and don't know why the 'package' has a .tex extension rather than .sty (I assume the fact that it is over 15 years old and has never been modified may be a reason), but this MWE works for me.
EDIT: It works after downloading the longdiv.tex file to the same directory as the above code.
Code: Select all
\documentclass[11pt,a4paper]{article}
\begin{document}
\include{longdiv}
\longdiv{45}{3}
\end{document}
Re: Long division
mmm
thanks for feedback
now you mention it I did also come across a longdiv.sty but cant remember from where.
though it is now located in the LYX/resources/tex directory
but will not show up in the document class menu, although other styles in that directory seem to ?
MWE ? is that minimal working example ?
I tried entering your code in lyx
selecting tex and pasting it but an error saying Latex error :can only be used in preamle
\maketitle your command was ignored
best regards
Jim
thanks for feedback
now you mention it I did also come across a longdiv.sty but cant remember from where.
though it is now located in the LYX/resources/tex directory
but will not show up in the document class menu, although other styles in that directory seem to ?
MWE ? is that minimal working example ?
I tried entering your code in lyx
selecting tex and pasting it but an error saying Latex error :can only be used in preamle
\maketitle your command was ignored
best regards
Jim
Long division
If you added the .sty file manually, did you tell latex that there are new packages? If you use linux then you need to run
Don't know how to do it in windows
I don't understand that error message, but yes MWE is minimal working example. If you post your code others may be able to help.
Code: Select all
$ sudo texhash
I don't understand that error message, but yes MWE is minimal working example. If you post your code others may be able to help.