# Resizing a textual material

In this example:

\documentclass{report}
\usepackage{graphicx} %for \resizebox
\begin{document}

ABC

\resizebox{0.3\textwidth}{!}{ABC}

\end{document}


I use \resizebox to scale textual material. The output looks rather pleasing:

However, I have heard critique of using the \resizebox command (it leads to inconsistent fonts) and even regrets of ever having released this command.

How would a versed Latex expert tackle this problem?

For text, use a scalable font and just resize the font.

\documentclass{report}
\usepackage{lmodern}
\usepackage{graphicx} %for \resizebox
\begin{document}

ABC

\resizebox{0.3\textwidth}{!}{ABC} (NOT THIS)

{\fontsize{48}{52}\selectfont ABC} (BUT THIS)

\end{document}


The size was selected, not calculated. If one needed the result precisely as .3\textwidth, I would suggest using \resizebox, but on something that is close to the final result.

\documentclass{report}
\usepackage{lmodern}
\usepackage{graphicx} %for \resizebox
\begin{document}
ABC

\resizebox{0.3\textwidth}{!}{ABC} (NOT THIS)

{\fontsize{48}{52}\selectfont ABC} (BUT THIS)

\resizebox{0.3\textwidth}{!}{\fontsize{48}{52}\selectfont ABC} (PRECISELY, THIS)
\end{document}


• How did you calculate 48 and 52? – Viesturs May 2 at 12:57
• @Viesturs I didn't calculate them. I selected them to desired size. – Steven B. Segletes May 2 at 12:58
• @Viesturs See my edit, for the case where a precise width is a requirement. – Steven B. Segletes May 2 at 13:03