我想要更改某些页面部分的文本大小,例如逐字记录块:
\begin{verbatim}
<how to set the font size here to 10 pt? />
\end{verbatim}
发布于 2010-07-13 18:19:14
\begingroup
\fontsize{10pt}{12pt}\selectfont
\begin{verbatim}
% how to set font size here to 10 px ?
\end{verbatim}
\endgroup
发布于 2014-11-23 04:46:23
使用\usepackage{fancyvrb}
包可以在Verbatim中定义fontsize参数:
\begin{Verbatim}[fontsize=\small]
print "Hello, World"
\end{Verbatim}
您可以指定的字体大小是常见的
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
发布于 2019-09-13 21:18:09
要添加精确的字体大小,您可以使用以下命令。对我来说很有效,因为在我的例子中,预定义的范围(大,小)与我要求的字体大小不匹配。
\fontsize{10}{12}\selectfont This is the text you need to be in 10px
https://stackoverflow.com/questions/3220371
复制相似问题