9

I would like to use MnSymbol alongside Springer's LNCS class file, llncs.cls, which can be found in this zip file and in many other places on the web.

\documentclass{llncs}
\usepackage{MnSymbol}
\begin{document}
\end{document}

I get the dreaded ! LaTeX Error: Command\vec' already defined.`

What's the cleanest, simplest way to undefine the \vec introduced by llncs.cls so that I can \usepackage{MnSymbol}?

1
  • 1
    put \let\vec\relax before the usepackage Feb 12, 2014 at 13:58

2 Answers 2

10

The class llncs redefines \vec unless the orivec option is used.

\documentclass[orivec]{llncs}
\usepackage{MnSymbol}
\begin{document}

Hello! $\vec{x}$

\end{document}

enter image description here

Usual caveat: using MnSymbol without setting the main font to Minion is not really typographically sound, as MnSymbol changes all symbols to a style that's rather different from other fonts' style.

5
  • Ah, I wasn't aware of this caveat. Is there another question or some examples you can point me to?
    – Roly
    Feb 12, 2014 at 14:15
  • 1
    @Roly Check tex.stackexchange.com/questions/14386/…
    – egreg
    Feb 12, 2014 at 14:18
  • I have consulted that entry before. Looking at it again, I don't see any mention of Minion, though. Am I missing something?
    – Roly
    Feb 12, 2014 at 14:20
  • 3
    @Roly That's a general problem with packages such as MnSymbol, mathabx or newtx: they change all symbols to a possibly incompatible style; if only one symbol that's missing is needed, it's better to load only that one, rather than the whole set.
    – egreg
    Feb 12, 2014 at 14:24
  • Ah, good to have that concisely summarised. Thanks. (And Mn stands for Minion, presumably?)
    – Roly
    Feb 13, 2014 at 10:38
2

I just found this solution in an old project:

\let\oldvec\vec% Store \vec in \oldvec
\documentclass{llncs}
\let\vec\oldvec% Restore \vec from \oldvec

I guess this answers my own question, but maybe there's something less hacky.

1
  • 1
    Probably \documentclass[orivec]{llncs} is better.
    – egreg
    Feb 12, 2014 at 13:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .