1.6.12

How to make math font huge


The graphicx package provides the command \resizebox.
The lscape package provides the landscape environment.
Together they could be used as follows:
\documentclass{article}
\usepackage[paper=a4paper]{geometry}
\usepackage{graphicx}
\usepackage{lscape}
\begin{document}
\pagestyle{empty}
\begin{landscape}
\begin{center}
 \resizebox{20cm}{!}{$e^{i\pi}=-1$}
\end{center}
\end{landscape}
\end{document}
Note that the \resizebox takes arguments \resizebox{width}{height}.
In the above I have used {!} for the height to ensure that the aspect ratio
remains true- otherwise you might get ugly stretched boxes.

There are several ways to do this:
  1. You can use \scalebox from the graphicx package.
  2. Use the relsize package.
  3. Use \DeclareMathSizes but that will affect the entire document.
Here is the normal, and scaled result using the \scalebox solution:
enter image description here
\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\newcommand*{\Scale}[2][4]{\scalebox{#1}{\ensuremath{#2}}}%
\begin{document}
\[y = sin^2 x\]
%
\[\Scale[6]{y = sin^2 x}\]
\end{document}
Or, using the relsize package, but it did not appear to get larger using a factor
larger than 5. Perhaps there is a way to adjust this.
\documentclass{article}
\usepackage{amsmath}
\usepackage{relsize}
\begin{document}
\[y = sin^2 x\]
%
\larger[5]
\[y = sin^2 x\]
\end{document}

No hay comentarios:

Publicar un comentario