2

I'm trying to do a long division in Latex but using the letter e, not x. My code is:

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{polynom}

\polyset{%
  style=A,
  delims={\big(}{\big)},
  div=:
}

\begin{document}
  \[
    \polylongdiv{e^4 + e^3 + 0e^2 - e - 1}{e-1}
  \]
\end{document}

The output is not the same as using x, which works perfectly.

2

The problem is with how polynom parses the equation for the symbol e. According to the documentation, declare a macro for it.

So, for example,

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{polynom}

\polyset{%
  style=A,
  delims={\big(}{\big)},
  div=:
}

\newcommand\e{\mathit{E}}

\begin{document}
  \[
    \polylongdiv{\e^4 + \e^3 + 0\e^2 - \e - 1}{\e-1}
  \]
\end{document}
1
  • 1
    Thanks, I have just worked it out. Just needed to put a vars=e in the polyset command. – Stephan May 9 at 4:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.