How to change font size on part of the page in LaTeX?

前端 未结 5 558
庸人自扰
庸人自扰 2020-12-22 23:09

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

\\begin{verbatim}
   
\\end{verbatim         


        
5条回答
  •  感动是毒
    2020-12-23 00:15

    The use of the package \usepackage{fancyvrb} allows the definition of the fontsize argument inside Verbatim:

    \begin{Verbatim}[fontsize=\small]
    print "Hello, World"
    \end{Verbatim}
    

    The fontsize that you can specify are the common

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

提交回复
热议问题