TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've edited a document. The edited document works well on my system, but apparently reports this error on another system:

Undefined control sequence.
<argument> ...ontspec_tmp_int\endcsname 255*\real{0.5}\relax

What is this error about?

The error appears when calling \maketitle which has been redefined to (not my doing):

    \vskip 1cm
    {\fontsize{50}{60}\fontspec[Color=red,Opacity=0.5]{Adobe Garamond Pro}\textbf{\@title}\par}
    \vskip 1cm
    {\Huge {\textit{\@author}\par}}
        {\Large Name}
          {\Large \href{mailto:name@name.edu}{name@name.edu}}
          {\Large \href{http://name.com}{http://name.com}}
    {\Large \@date\par}
share|improve this question
Please reduce your document to a minimal working example (MWE) and edit it into your question. – doncherry Mar 14 '12 at 0:20
@doncherry I am not able to do that, because I don't have access to the system with the error thrown to be able to reduce the document to only the non-functioning part. I only have the log file. – ipavlic Mar 14 '12 at 0:21
Probably the other system is more up-to-date than yours. This is the same problem that caused me to be unable to compile the example in your previous question: Fontspec transparency problem. Try adding \usepackage{calc} to your preamble. – Alan Munn Mar 14 '12 at 1:52
@Alan You are right. Can you please add your comment as an answer so that I can accept it? – ipavlic Mar 14 '12 at 7:28
up vote 2 down vote accepted

This error is due to changes in the LaTeX3 code that fontspec depends on. This code used to load the calc package, but no longer does, and fontspec hasn't yet reflected this change. The offending line of code is the \fontspec command, which sets the font opacity. You can solve the problem by adding.


to your preamble. It is likely that the this will be fixed relatively soon.

By the way, the offending line is not the way you should do this. In general, you should avoid using the \fontspec command to change fonts. Instead, you should define a new font family outside your title definition using e.g.

\newfontfamily\mytitlefont[Color=red,Opacity=0.5]{Adobe Garamond Pro}

and then inside your title redefinition use \mytitlefont.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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