tags:

views:

63

answers:

2

Hello, I'd like to change text size for some page part, e.g. for verbatim block:

\begin{verbatim}
   <how to set font size here to 10 px ? />
\end{verbatim}

Regards

A: 

Example:

\Large\begin{verbatim}
   <how to set font size here to 10 px ? />
\end{verbatim}
\normalsize

\Large can be obviously substituted by one of:

\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge

If you need arbitrary font sizes:

The MYYN
Is there a way to provide exact size ?
Jarek Waliszko
Keep in mind that this goes against the spirit of LaTeX. Why do you want an exact size, anyway?
Arafangion
+1  A: 
\begingroup
    \fontsize{10pt}{12pt}\selectfont
    \begin{verbatim}  
        % how to set font size here to 10 px ?  
    \end{verbatim}  
\endgroup
Alexey Malistov