Latex math fonts vs text fonts

  • LaTeX
  • Thread starter DrDu
  • Start date
  • #1
DrDu
Science Advisor
6,062
775
I've been using Latex for many years now. But there is a feature which I feel more and more uneasy about: At least in plain latex you are supposed to do subscripts, minus signs, in math mode, even when writing a simple number with exponent in text mode. Another example would be expressions like "α-particle". However, latex uses different fonts for math and text, which produces quite ugly results.
I know that there are packages like comptex etc. which provide some commands for text mode.
My main reason I want to avoid using math mode is that I am working now on a field where latex is not very common for publications and not all publishers (or colleagues) accept it. So I want to be able to convert a file into rtf with latex2rtf in case of emergency.

What are your favourite solutions to this problem?
 

Answers and Replies

  • #2
Mapes
Science Advisor
Homework Helper
Gold Member
2,593
20
I match the text and math fonts by using

% For Times
\usepackage{times}
\usepackage{txfonts}

or

% For Charter
\usepackage{charter}
\usepackage[charter]{mathdesign}

(More options "ftp://tug.ctan.org/pub/tex-archive/info/Free_Math_Font_Survey/survey.html"[/URL].)
 
Last edited by a moderator:
  • #3
AlephZero
Science Advisor
Homework Helper
6,994
291
At least in plain latex you are supposed to do subscripts, minus signs, in math mode, even when writing a simple number with exponent in text mode.
You can use \textsubscript{} and \textsuperscript{} outside math mode. If you use them a lot, make your own shorter names for them.

Or you can use \mathrm{} or \mbox{} to get "normal" text inside math mode.

Arguably math minus signs $-$, em dashes -- and en dashes --- should be three different glyphs, but nobody is going to arrest you for font violation if you think otherwise.

The whole point of LaTeX is to separate the content of the document from the details of its appearance. In genuinely "plan latex" you would be using Knuth's Computer Modern fonts for the text so everything will look harmonious (but not necessarily pretty, unless you really like the CMR fonts). If you want to override the math fonts, you can do that with many existing packages, or you can do it yourself. To find out how, use an existing package (e.g. file txfonts.sty) as an example, and find out what the commands do if you can't guess.
 

Related Threads on Latex math fonts vs text fonts

  • Last Post
Replies
2
Views
25K
Replies
1
Views
3K
  • Last Post
Replies
1
Views
12K
  • Last Post
Replies
6
Views
197K
Replies
3
Views
3K
Replies
4
Views
3K
  • Last Post
Replies
16
Views
24K
Replies
0
Views
2K
Replies
5
Views
1K
Replies
5
Views
8K
Top