24

i'have this in my document

\begin{minted}{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}

But I would like to reduce the size of the text '@property ..' because it is very long and I do not want it to head.. I do not understand how to change the size of font :\

1
  • Welcome to TeX.SX! Please add a compilable example. Have you tried the standard LaTeX commands for font sizes?
    – TeXnician
    Nov 2, 2017 at 17:50

1 Answer 1

40

minted has a fontsize option.

Here some examples:

\documentclass{article}
\usepackage{minted}
\begin{document}
\noindent This is \verb|\footnotesize|:
\begin{minted}[fontsize=\footnotesize]{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}
This is \verb|\small|:
\begin{minted}[fontsize=\small]{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}
This is a normal text size for comparison:
\begin{minted}{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}
\end{document}

enter image description here

1

You must log in to answer this question.