1

How can I enforce pslatex to use Computer Modern font for math?

(I know, it would be much easier to use pdflatex, but my publisher uses pslatex.)

EDIT: Example:

\documentclass[twoside,11pt]{article}  
\usepackage{amssymb}  
\begin{document}  
${\cal P} = {\cal Q}$  
\end{document}

If you compile it with latex and pslatex the fonts are different.

Unfortunately, the recommendations of Herbert do not help for the following reasons:
1. As I said, the publisher uses pslatex and not latex.
2. The other two recommendations change both text and math fonts. I need to change math fonts only.

2
  • CM is the default font for TeX: we need a minimal example here.
    – Joseph Wright
    Dec 23, 2010 at 9:12
  • 1
    If your editor wants to use pslatex, then altering any of the font seems like A Bad Thing. Have you checked with them about this?
    – Joseph Wright
    Dec 23, 2010 at 13:46

2 Answers 2

2

Use:

\AtBeginDocument{\RequirePackage{lmodern, times}}

(Thanks a lot for your help, Herbert!!)

1
  • (For posterity, Herbert suggested this in the comments to a now deleted answer.) Jan 5, 2011 at 19:50
1
\documentclass{article}
\AtBeginDocument{%
\SetSymbolFont{operators}   {normal}{OT1}{cmr} {m}{n}
\SetSymbolFont{letters}     {normal}{OML}{cmm} {m}{it}
\SetSymbolFont{symbols}     {normal}{OMS}{cmsy}{m}{n}
\SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n}
\SetSymbolFont{operators}   {bold}  {OT1}{cmr} {bx}{n}
\SetSymbolFont{letters}     {bold}  {OML}{cmm} {b}{it}
\SetSymbolFont{symbols}     {bold}  {OMS}{cmsy}{b}{n}
\SetSymbolFont{largesymbols}{bold}  {OMX}{cmex}{m}{n}

\SetMathAlphabet{\mathbf}{normal}{OT1}{cmr}{bx}{n}
\SetMathAlphabet{\mathsf}{normal}{OT1}{cmss}{m}{n}
\SetMathAlphabet{\mathit}{normal}{OT1}{cmr}{m}{it}
\SetMathAlphabet{\mathtt}{normal}{OT1}{cmtt}{m}{n}
\SetMathAlphabet{\mathbf}{bold}  {OT1}{cmr}{bx}{n}
\SetMathAlphabet{\mathsf}{bold}  {OT1}{cmss}{bx}{n}
\SetMathAlphabet{\mathit}{bold}  {OT1}{cmr}{bx}{it}
\SetMathAlphabet{\mathtt}{bold}  {OT1}{cmtt}{m}{n}
}
\begin{document}

foo $y=f(x)$ bar

\end{document}

voss@shania:~> pdffonts test3.pdf
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
SBTDDY+CMR10                         Type 1C           yes yes no      12  0
OWQAHD+CMMI10                        Type 1C           yes yes no      10  0
YXBNUU+NimbusRomNo9L-Regu            Type 1C           yes yes no       8  0
voss@shania:~> 
2
  • None of that should affect math fonts: these are all text-mode things.
    – Joseph Wright
    Dec 23, 2010 at 10:22
  • yes, it is the same as pslatex.sty does without defining the math stuff, which is now taken from lmodern, same as cm
    – user2478
    Dec 23, 2010 at 11:13

You must log in to answer this question.