14

How do I change the font size of something like this: I want to increase the font but it always seems to remain the same.

 \documentclass[30pt]{article}
 \DeclareMathSizes{20}{20}{20}{20}
 \begin{document}

 \[
   x = \frac{1}{x + \frac{1}{x + \frac{1}{x}}}
 \]

 \end{document}
  • Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Werner Dec 14 '11 at 20:54
  • @jfbu: This comment will be deleted shortly. Thanks. :-) – kiss my armpit Nov 25 '13 at 18:44
  • @cmhughes: your link points to 404. I will delete this comment shortly (if I don't forget it). – kiss my armpit Nov 25 '13 at 18:44
13

The first parameter of \DeclareMathSizes specifies the font size to which these settings are applied to. So, for a 12pt document, if the first parameter is not 12, then this command will have no effect. So for the code as below, the output is:

enter image description here

but with the line \DeclareMathSizes{12}{24}{24}{24} un-commented you get:

enter image description here

Also see How to make math font huge.

\documentclass[12pt,border=5pt]{standalone}
% \DeclareMathSizes{12}{24}{24}{24}% Uncomment to see the effect
\begin{document}
\[
   x = \frac{1}{x + \frac{1}{x + \frac{1}{x}}}
\]
\end{document}
5

no need to redefine the math sizes: use \dfrac from amsmath

\documentclass{article}
\usepackage{amsmath}
 \begin{document}

 \[
   x = \dfrac{1}{x + \dfrac{1}{x + \dfrac{1}{x}}}
 \]
\Huge
 \[
   x = \dfrac{1}{x + \dfrac{1}{x + \dfrac{1}{x}}}
 \]

 \end{document}

enter image description here

  • Much better approach then the accepted answer… – Werner Nov 23 '13 at 20:20

Your Answer

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