Re: displaying long division of polynomials in lyx

2008-12-02 Thread Jamesdaff

OK, I think I got it to work.  I did a bunch of things (mostly uninformed),
and some combination of them seems to have worked, but I'm guessing these
were the three key steps:
1. I installed the polynom package and put it in my LaTeX directory:
C:\Program Files\MiKTeX 2.7\tex\latex.  I probably could have put it
somewhere else in my path; I'm not sure.
2. In LyX, I did Tools -- Reconfigure
3. In my document, I did Document -- Settings -- LaTeX preamble, and added
the following, which I more or less copied from some LyX help files:
% 
% used to check for needed LaTeX packages
\usepackage{ifthen}

% check for package polynom
\newboolean{polynom}
\IfFileExists{polynom.sty}
 {\usepackage{polynom}
  \setboolean{polynom}{true}}
 {\setboolean{polynom}{false}}

Then, in my document, I can click Insert -- TeX Code (or Control-L, or
click on the TeX button), and enter the TeX code for polynomial division,
e.g. \polylongdiv{x^3-7x+6}{x-1}.  Then when I compile the document (e.g.
click the PDF button), the division is beautifully formatted.




Jamesdaff wrote:
 
 I'm writing an Algebra textbook and I need to show division of polynomials
 (both long division and synthetic division / Horner's method).  I am new
 to LyX, and have just kind of been stumbling my way through what I need to
 know to get by.  I see there is a cool package on CTAN (polynom) which
 would be cool to use, but I have absolutely no idea how I would use that
 in LyX.  Is it even possible?
 
 The description of the polynom package is here:
 
 http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
 http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
  
 
 Alternatively, if someone can suggest a simpler way to display long
 division of polynomials without installing something extra, that might
 work, too, but I kind of want to understand things well enough to know how
 to install this package, if that is possible.
 
 Help?
 
 Jeff
 

-- 
View this message in context: 
http://n2.nabble.com/displaying-long-division-of-polynomials-in-lyx-tp1579774p1605535.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: displaying long division of polynomials in lyx

2008-12-02 Thread Jamesdaff

OK, I think I got it to work.  I did a bunch of things (mostly uninformed),
and some combination of them seems to have worked, but I'm guessing these
were the three key steps:
1. I installed the polynom package and put it in my LaTeX directory:
C:\Program Files\MiKTeX 2.7\tex\latex.  I probably could have put it
somewhere else in my path; I'm not sure.
2. In LyX, I did Tools -- Reconfigure
3. In my document, I did Document -- Settings -- LaTeX preamble, and added
the following, which I more or less copied from some LyX help files:
% 
% used to check for needed LaTeX packages
\usepackage{ifthen}

% check for package polynom
\newboolean{polynom}
\IfFileExists{polynom.sty}
 {\usepackage{polynom}
  \setboolean{polynom}{true}}
 {\setboolean{polynom}{false}}

Then, in my document, I can click Insert -- TeX Code (or Control-L, or
click on the TeX button), and enter the TeX code for polynomial division,
e.g. \polylongdiv{x^3-7x+6}{x-1}.  Then when I compile the document (e.g.
click the PDF button), the division is beautifully formatted.




Jamesdaff wrote:
 
 I'm writing an Algebra textbook and I need to show division of polynomials
 (both long division and synthetic division / Horner's method).  I am new
 to LyX, and have just kind of been stumbling my way through what I need to
 know to get by.  I see there is a cool package on CTAN (polynom) which
 would be cool to use, but I have absolutely no idea how I would use that
 in LyX.  Is it even possible?
 
 The description of the polynom package is here:
 
 http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
 http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
  
 
 Alternatively, if someone can suggest a simpler way to display long
 division of polynomials without installing something extra, that might
 work, too, but I kind of want to understand things well enough to know how
 to install this package, if that is possible.
 
 Help?
 
 Jeff
 

-- 
View this message in context: 
http://n2.nabble.com/displaying-long-division-of-polynomials-in-lyx-tp1579774p1605535.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: displaying long division of polynomials in lyx

2008-12-02 Thread Jamesdaff

OK, I think I got it to work.  I did a bunch of things (mostly uninformed),
and some combination of them seems to have worked, but I'm guessing these
were the three key steps:
1. I installed the polynom package and put it in my LaTeX directory:
C:\Program Files\MiKTeX 2.7\tex\latex.  I probably could have put it
somewhere else in my path; I'm not sure.
2. In LyX, I did Tools --> Reconfigure
3. In my document, I did Document --> Settings --> LaTeX preamble, and added
the following, which I more or less copied from some LyX help files:
% 
% used to check for needed LaTeX packages
\usepackage{ifthen}

% check for package polynom
\newboolean{polynom}
\IfFileExists{polynom.sty}
 {\usepackage{polynom}
  \setboolean{polynom}{true}}
 {\setboolean{polynom}{false}}

Then, in my document, I can click Insert --> TeX Code (or Control-L, or
click on the TeX button), and enter the TeX code for polynomial division,
e.g. \polylongdiv{x^3-7x+6}{x-1}.  Then when I compile the document (e.g.
click the PDF button), the division is beautifully formatted.




Jamesdaff wrote:
> 
> I'm writing an Algebra textbook and I need to show division of polynomials
> (both long division and synthetic division / Horner's method).  I am new
> to LyX, and have just kind of been stumbling my way through what I need to
> know to get by.  I see there is a cool package on CTAN ("polynom") which
> would be cool to use, but I have absolutely no idea how I would use that
> in LyX.  Is it even possible?
> 
> The description of the polynom package is here:
> 
> http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
> http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
>  
> 
> Alternatively, if someone can suggest a simpler way to display long
> division of polynomials without installing something extra, that might
> work, too, but I kind of want to understand things well enough to know how
> to install this package, if that is possible.
> 
> Help?
> 
> Jeff
> 

-- 
View this message in context: 
http://n2.nabble.com/displaying-long-division-of-polynomials-in-lyx-tp1579774p1605535.html
Sent from the LyX - Users mailing list archive at Nabble.com.



displaying long division of polynomials in lyx

2008-11-25 Thread Jamesdaff

I'm writing an Algebra textbook and I need to show division of polynomials
(both long division and synthetic division / Horner's method).  I am new to
LyX, and have just kind of been stumbling my way through what I need to know
to get by.  I see there is a cool package on CTAN (polynom) which would be
cool to use, but I have absolutely no idea how I would use that in LyX.  Is
it even possible?

The description of the polynom package is here:
http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
 

Alternatively, if someone can suggest a simpler way to display long division
of polynomials without installing something extra, that might work, too, but
I kind of want to understand things well enough to know how to install this
package, if that is possible.

Help?

Jeff
-- 
View this message in context: 
http://n2.nabble.com/displaying-long-division-of-polynomials-in-lyx-tp1579774p1579774.html
Sent from the LyX - Users mailing list archive at Nabble.com.



displaying long division of polynomials in lyx

2008-11-25 Thread Jamesdaff

I'm writing an Algebra textbook and I need to show division of polynomials
(both long division and synthetic division / Horner's method).  I am new to
LyX, and have just kind of been stumbling my way through what I need to know
to get by.  I see there is a cool package on CTAN (polynom) which would be
cool to use, but I have absolutely no idea how I would use that in LyX.  Is
it even possible?

The description of the polynom package is here:
http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
 

Alternatively, if someone can suggest a simpler way to display long division
of polynomials without installing something extra, that might work, too, but
I kind of want to understand things well enough to know how to install this
package, if that is possible.

Help?

Jeff
-- 
View this message in context: 
http://n2.nabble.com/displaying-long-division-of-polynomials-in-lyx-tp1579774p1579774.html
Sent from the LyX - Users mailing list archive at Nabble.com.



displaying long division of polynomials in lyx

2008-11-25 Thread Jamesdaff

I'm writing an Algebra textbook and I need to show division of polynomials
(both long division and synthetic division / Horner's method).  I am new to
LyX, and have just kind of been stumbling my way through what I need to know
to get by.  I see there is a cool package on CTAN ("polynom") which would be
cool to use, but I have absolutely no idea how I would use that in LyX.  Is
it even possible?

The description of the polynom package is here:
http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
http://sunsite.utk.edu/ftp/pub/software/CTAN/macros/latex/contrib/polynom/polynom.pdf
 

Alternatively, if someone can suggest a simpler way to display long division
of polynomials without installing something extra, that might work, too, but
I kind of want to understand things well enough to know how to install this
package, if that is possible.

Help?

Jeff
-- 
View this message in context: 
http://n2.nabble.com/displaying-long-division-of-polynomials-in-lyx-tp1579774p1579774.html
Sent from the LyX - Users mailing list archive at Nabble.com.