5

In LaTeX, when I type symbols as \tan or \inf in math mode, they use the normal text font, while I would want them to use Times font, without changing the main font of the text nor the math fonts, neither of which are Times. How can I do that?

  • Welcome to Maths SX! You have chances it will be hideous. Do you have any reason for such a choice? – Bernard May 21 '17 at 16:45
  • 1
    ,@TorbjørnT. I totally misunderstood the question and removed my answer. As we repeatedly say, a MWE speeds up getting a precise answer! – AboAmmar May 21 '17 at 17:54
  • What does it means, that you do not want to change the math fonts? Do you want all operator names to be typeset in times? – GuM May 21 '17 at 18:03
10

It's really simple. Add

\makeatletter
\DeclareSymbolFont{timesoperators}{OT1}{ztmcm}{m}{n}
\def\operator@font{\mathgroup\symtimesoperators}
\makeatother

to your document preamble. Then look at the hideous output and remove the four lines. ;-)

| improve this answer | |
  • That's an answer I like: answering the question despite having misgivings about OP's choices.... – JPi May 21 '17 at 18:25
  • 2
    @JPi But I didn't dare to show the output. ;-) – egreg May 21 '17 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.