You are not logged in.

#1 2011-06-03 14:45:56

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

[SOLVED] LaTeX -- xlop package options don't work

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

#2 2011-06-03 15:35:30

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: [SOLVED] LaTeX -- xlop package options don't work

The problem is not with xlop but with the color definition. Put \usepackage{xcolor} in your preamble.

Offline

#3 2011-06-03 20:43:49

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED] LaTeX -- xlop package options don't work

Thanks so much...I suspected something like that, but I couldn't find it anywhere!

Scott

Offline

Board footer

Powered by FluxBB