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.

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?

share|improve this question
1  
Try "undefining" it first via \let\sum\relax before your \DeclareMathSymbol definition. –  Werner Dec 7 '12 at 18:27
1  
Related: Importing a single symbol from a different font –  Werner Dec 7 '12 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 '12 at 18:50
    
@egreg the cause of this error is calling amsmath package. but i don't know why this happens? –  smh Dec 8 '12 at 11:15
add comment

2 Answers

up vote 2 down vote accepted

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".

share|improve this answer
add comment

How about if you try

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

and then at the end of the preamble

\renewcommand{\sum}{\mysum}
share|improve this answer
    
This should be by no means necessary. –  egreg Dec 7 '12 at 18:53
    
my bad. I should have tried a MWE to see if I got the same error. –  A.Ellett Dec 7 '12 at 19:08
add comment

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.