General\DeclareMathSizes doesn't work with 11pt text?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
chenein
Posts: 4
Joined: Wed Jun 25, 2008 4:15 am

\DeclareMathSizes doesn't work with 11pt text?

Post by chenein »

I'm trying to get DeclareMathSizes to work, and it seems to work fine with 10 and 12 point text, but not with 11 point text.

Code: Select all

\documentclass[12pt,letterpaper]{report}
\DeclareMathSizes{11}{55}{15}{15}
\DeclareMathSizes{12}{55}{15}{15}
\begin{document}
Hello this is regular text. This should be really big: $a=5$
\end{document}
This works fine. But change the documentclass to 11pt and it no longer works. I started down this road because with 11pt documentclass I seem to be getting 10pt math fonts. Perhaps this is related?

I'm on a mac with mactex-2007 distribution.

Thanks!

Recommended reading 2024:

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

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

chenein
Posts: 4
Joined: Wed Jun 25, 2008 4:15 am

Re: \DeclareMathSizes doesn't work with 11pt text?

Post by chenein »

Hmm... an overwhelming response :)

If no one has a magic fix I'm wondering if someone would try to replicate the problem. I'm wondering if something is just screwed up in my distro.

Cheers,
Colin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

\DeclareMathSizes doesn't work with 11pt text?

Post by Stefan Kottwitz »

Hi Colin,

here I just change to the text font size of 11pt, you will see that is works for 11pt too:

Code: Select all

\documentclass[12pt,letterpaper]{report}
\DeclareMathSizes{11}{55}{15}{15}
%\DeclareMathSizes{12}{55}{15}{15}
\begin{document}
\fontsize{11pt}{13.6pt}\selectfont
Hello this is regular text. This should be really big: $a=5$
\end{document}
As \small corresponds to \@xipt, that's equal to 10.95pt, not to 11pt, try this:

Code: Select all

\documentclass[12pt,letterpaper]{report}
\DeclareMathSizes{10.95}{55}{15}{15}
%\DeclareMathSizes{12}{55}{15}{15}
\begin{document}
\small
Hello this is regular text. This should be really big: $a=5$
\end{document}
Similar if you switch to the 11pt option for report:

Code: Select all

\documentclass[11pt,letterpaper]{report}
\DeclareMathSizes{10.95}{55}{15}{15}
\begin{document}
Hello this is regular text. This should be really big: $a=5$
\end{document}
Stfan
LaTeX.org admin
chenein
Posts: 4
Joined: Wed Jun 25, 2008 4:15 am

\DeclareMathSizes doesn't work with 11pt text?

Post by chenein »

Thanks Stefan,

the 10.95 number was what I was missing. I'm using your bottom item.

Can you explain why in math mode the fonts are slightly smaller without tweaking? When I use math mode text it is a bit smaller:

Code: Select all

\documentclass[11pt,letterpaper]{report}
\usepackage[charter]{mathdesign}
\usepackage{charter}
\begin{document}
a\emph{a}$a$$a_2$
\end{document}
This corrects it:

Code: Select all

\documentclass[11pt,letterpaper]{report}
\usepackage[charter]{mathdesign}
\usepackage{charter}
\DeclareMathSizes{10.95}{11.3}{7.7}{5.5}
\begin{document}
a\emph{a}$a$$a_2$
\end{document}
But I feel I shouldn't have to do this. Is there a "proper" way to fix the problem?

Regards,
Colin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

\DeclareMathSizes doesn't work with 11pt text?

Post by Stefan Kottwitz »

Hi Colin,

the size will be equal if you change the order of the packages:

Code: Select all

\usepackage{charter}
\usepackage[charter]{mathdesign}
Perhap you don't need the first line.

Stefan
LaTeX.org admin
chenein
Posts: 4
Joined: Wed Jun 25, 2008 4:15 am

Re: \DeclareMathSizes doesn't work with 11pt text?

Post by chenein »

I understand! Thanks very much.
Post Reply