You are not logged in.
Hey all,
Wondering if anyone can help out with these cryptic messages from the xlop package. I've got the statdard texlive install from the repos...no customizations at all. Here's a brief document:
\documentclass[letterpaper,12pt]{article}
\usepackage{xlop}
\begin{document}
\opadd{1}{2}
\opsub[operandstyle=\color{blue}]{17}{7}
\end{document}
It generates a pdf and the first /opadd works correctly, but the second statement produces a garbled output with a literal 'blue' printed. I've tried the examples in the documentation and any with options (operandstyle, resultstyle, etc.) inside [] don't work correctly. I wanted to ask here, because I don't know if it's a problem with my installation or just an incompatibility because xlop is rather old.
Here are the error messages:
test.tex|9 error| Undefined control sequence. {blue} \opsub[operandstyle=\color{blue}]{17}{7}
! Undefined control sequence.
\op@operandstyle.0 ->\color
{blue}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Thanks!
Scott
Last edited by firecat53 (2011-06-03 20:44:20)
Offline
The problem is not with xlop but with the color definition. Put \usepackage{xcolor} in your preamble.
Offline