TeX Live and MacTeXpolynom | Installation on Mac OS X

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
ajaffary
Posts: 2
Joined: Mon Apr 02, 2012 8:27 pm

polynom | Installation on Mac OS X

Post by ajaffary »

Hello.

I hope this is the right place to post this question.

I am trying to use the polynom package for long division of polynomials.

I am running Mac OS X 10.6.8.

I originally downloaded the polynom package from CTAN. Everything I've read says that I just needed to have the package files in the ~/Library/texmf/tex/ or /tex/latex subdirectory, and it should be recognized. I've tried that and keep receiving "undefined control sequence" when I try to publish, no matter what editor.

I then updated Texlive and saw that the polynom package was installed, but I'm still not able to use it - I keep getting the same errors in any editor. The editors I've tried are Ooolatex, LaTeXiT, TeXShop and TeXworks.

How can I tell if this package is installed correctly?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

polynom | Installation on Mac OS X

Post by Stefan Kottwitz »

ajaffary wrote:How can I tell if this package is installed correctly?
Run

Code: Select all

kpsewhich polynom.sty
in a terminal window, i.e. at the command prompt. If it's not found, run

Code: Select all

sudo texhash
or

Code: Select all

sudo mktexlsr
at the command prompt.

Stefan
LaTeX.org admin
ajaffary
Posts: 2
Joined: Mon Apr 02, 2012 8:27 pm

polynom | Installation on Mac OS X

Post by ajaffary »

Thank you for the fast response.

I did that, and it's finding it exactly in my ~/Library/texmf/tex directory. However, I am still getting "undefined control sequence" when I enter something like:

Code: Select all

\polylongdiv{x^2+2x+1}{x-1}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

polynom | Installation on Mac OS X

Post by Stefan Kottwitz »

Besides installing, you have to load it in your document preamble:

Code: Select all

\usepackage{polynom}
Stefan
LaTeX.org admin
Post Reply