我的文档里有这个
\begin{minted}{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}
但是我想减小文本“@property ..”的大小,因为它很长而且我不想让它太长。我不明白如何更改字体的大小:\
答案1
minted
有一个fontsize
选项。
这里有一些例子:
\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}