Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Currently I have a TeX document, written using sig-alternate.cls class file. I need to change it and use llncs.cls. However, when I attempt to compile the document with the class changed, I get the following error:

! Undefined control sequence.
<recently read> \mathbb 

If I comment the corresponding line, it gives an error on the next one:

! Undefined control sequence.
<recently read> \rightarrowtail 

and so on, deprecating me of several mathematical symbols' usage, which seems strange to me - aren't \mathbb and \rightarrowtail standard keywords in TeX? And how can it be that some style file prevents me from using them? I have checked this on a simple example:

\documentclass{llncs}
\begin{document}
$\rightarrowtail$
\end{document}

This leads to an error, but when I change the documentclass to sig-alternate.cls, everything works well. Also, if I write a simple document with llncs.cls without usage of these symbols, everything is OK too. I will be very grateful for your help. Thanks in advance.

share|improve this question

migrated from stackoverflow.com Nov 5 '11 at 8:16

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 7 down vote accepted

You have to use the amssymb package to use \mathbb and \rightarrowtail. It seems as if sig-alternate.cls loads this package, whereas llncs.cls does not.

From sig-alternate.cls:

[...]
\usepackage{epsfig}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
[...]
share|improve this answer
    
Thanks, this resolved my problem :) –  Grigor Gevorgyan Nov 5 '11 at 9:25
1  
@GrigorGevorgyan: feel free to accept his answer then :) –  Axioplase Nov 5 '11 at 10:42
    
@Axioplase: oops, double-clicked on accept button ))) –  Grigor Gevorgyan Nov 5 '11 at 11:39

Your Answer

 
discard

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.