Text FormattingChanging the font size ONLY in $...$ environment. NOT in equ

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
chriskon
Posts: 1
Joined: Fri Aug 23, 2013 11:42 am

Changing the font size ONLY in $...$ environment. NOT in equ

Post by chriskon »

Hi,
I have used the $ ... $ command to insert numbers etc throughout the text of my document. However, now that I look at it, I don't like that the math in the text has the same size as the text itself. To make the numbers, units, formulars, etc. stand out more, I would like to decrease their fontsize (i.e. the fontsize in the $...$ environment) to \small (my text is in \normalsize), instead of them being written in \normalsize.
NOTE: I don't want to change the fontzise in the \begin{equation}-\end{equation} environment!!
How can I achieve this? Or is it even possible?
I don't want to use the \newcommand{}[]{} since it will be quite cumbersome to replace all $...$ in the text with the newly defined command....
Big thanks for your help in advance :)
Cheers,
chris
Last edited by cgnieder on Fri Aug 23, 2013 2:02 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Changing the font size ONLY in $...$ environment. NOT in equ

Post by cgnieder »

Hi Chris,

Welcome to the LaTeX community.

I may be mistaken but I don't believe this is possible. There is a \DeclareMathSizes command but it does not differentiate between display- and inline-math. It sets textsize, scriptsize and scriptscriptsize. textsize is AFAIK used for both display- and inline-math.

Regards
site moderator & package author
Post Reply