7

I am a beginner in Latex. I used to use \mathcal, for example:

old code

\documentclass[12pt]{article} 
\usepackage{graphicx}
\usepackage{amsmath}
\begin{document}
$\mathcal{C}$
\end{document}

Output

enter image description here

I utilize the tex. sample from IEEE (open it with the original software):

http://control.disp.uniroma2.it/cdc2012/author_info.php

I use the same code; however, I got this:

enter image description here

How do I fix it? (I want the previous one.)

sleeve chen
  • 125
  • 1
  • 1
  • 6
  • 1
    Welcome to TeX.SX! Can you please modify your sample document to use the precise setting with the ieeeconf class? – egreg Jun 13 '15 at 22:32
  • I am not sure how to do it. I just use TEX to open it, and type the article. – sleeve chen Jun 13 '15 at 22:35
  • I find this article; however, I cannot still fix it. http://tex.stackexchange.com/questions/120065/xetex-what-happened-to-mathcal-and-mathscr – sleeve chen Jun 13 '15 at 22:37
  • If I add $\mathcal{C}$ in sample.tex, I get the first “C”, not the second one. – egreg Jun 13 '15 at 22:39
  • When I execute the sample.tex, there are two errors. After fixing it, I get the same results (the second one). I guess is there any other problem in my software? I can get the first one in other file instead of the IEEE ones – sleeve chen Jun 13 '15 at 22:48

2 Answers2

11

It seems to be hard-coded in ieeeconf.cls. It loads mathptmx by default and as a result, \mathcal calls \mathrsfs. You can circumvent the problem loading newtx, which loads TeX Gyre Termes, another Times-clone:

\documentclass[12pt]{ieeeconf}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{newtxtext, newtxmath}

\begin{document}

Lalala…
$\mathcal{C}$

\end{document} 

enter image description here

Bernard
  • 271,350
0

Do you have the package fourier, i.e., \usepackage{fourier} in your .tex file? For me, when I comment out this package, I get the correct fonts again.

  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. – Community Feb 23 '22 at 13:00