我想更改某些页面部分的文本大小,例如对于逐字块:
\begin{verbatim}
<how to set font size here to 10 px ? />
\end{verbatim}
Run Code Online (Sandbox Code Playgroud)
问候
Ale*_*tov 94
\begingroup
\fontsize{10pt}{12pt}\selectfont
\begin{verbatim}
% how to set font size here to 10 px ?
\end{verbatim}
\endgroup
Run Code Online (Sandbox Code Playgroud)
mik*_*iku 51
例:
\Large\begin{verbatim}
<how to set font size here to 10 px ? />
\end{verbatim}
\normalsize
Run Code Online (Sandbox Code Playgroud)
\Large 可以明显地被以下之一取代:
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
Run Code Online (Sandbox Code Playgroud)
如果您需要任意字体大小:
Azi*_*lto 13
使用该包\usepackage{fancyvrb}允许在Verbatim中定义fontsize参数:
\begin{Verbatim}[fontsize=\small]
print "Hello, World"
\end{Verbatim}
Run Code Online (Sandbox Code Playgroud)
您可以指定的fontsize是常见的
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
Run Code Online (Sandbox Code Playgroud)
要添加精确的字体大小,您可以使用以下内容。为我工作,因为在我的情况下,预定义的范围(大,小)与我所需的字体大小不匹配。
\fontsize{10}{12}\selectfont This is the text you need to be in 10px
Run Code Online (Sandbox Code Playgroud)
更多信息:https://tug.org/TUGboat/tb33-3/tb105thurnherr.pdf
| 归档时间: |
|
| 查看次数: |
214871 次 |
| 最近记录: |