4

I use \usepackage[utopia]{mathdesign} for math numbers, symbols, etc. but I want to change the \sum symbol to default computer modern one. When I use

\DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n}
\DeclareMathSymbol{\‎‏‎sum‎}{\mathop}{CMlargesymbols}{"50}‎‎‎

it results an error: Command '\sum' already defined. How can I change the \sum symbol?

4
  • 1
    Try "undefining" it first via \let\sum\relax before your \DeclareMathSymbol definition.
    – Werner
    Dec 7, 2012 at 18:27
  • 1
    Related: Importing a single symbol from a different font
    – Werner
    Dec 7, 2012 at 18:28
  • I get no error. Please, add a minimal working example (MWE). The two commands about \sum should go after loading mathdesign.
    – egreg
    Dec 7, 2012 at 18:50
  • @egreg the cause of this error is calling amsmath package. but i don't know why this happens?
    – smh
    Dec 8, 2012 at 11:15

2 Answers 2

4

The correct loading order should be

\documentclass{article}

\usepackage[utopia]{mathdesign}

\DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n}
\DeclareMathSymbol{\sum}{\mathop}{CMlargesymbols}{"50}

\usepackage{amsmath}                                       

\begin{document}

$\sum$

\end{document}

This is because amsmath patches some of the commands to become "dots-aware".

0

How about if you try

\DeclareMathSymbol{\mysum}{\mathop}{CMlargesymbols}{"50}

and then at the end of the preamble

\renewcommand{\sum}{\mysum}
2
  • This should be by no means necessary.
    – egreg
    Dec 7, 2012 at 18:53
  • my bad. I should have tried a MWE to see if I got the same error.
    – A.Ellett
    Dec 7, 2012 at 19:08

You must log in to answer this question.

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