【问题标题】:LaTeX: changing the fonts inside figuresLaTeX:更改图形内的字体
【发布时间】:2011-08-14 01:32:26
【问题描述】:

我正在使用一些终端输出作为我正在编写的报告中的图形,并且只需将图形中的文本更改为等宽。

\begin{figure}[ht]

%bunch of text here

\caption{Mass calculation program output}           
\label{fig:calcMass}                                
\end{figure}    

【问题讨论】:

    标签: fonts latex figure monospace


    【解决方案1】:

    看看(通常是内置的)列表包。教程可以在here找到。

    该软件包包括语法高亮(如果您使用 bash),并且可以从外部文件读取输入(如果您正在记录正在编写的程序并且不想手动更改 LaTeX 代码,这可能很有用如果您对程序进行更改)。

    【讨论】:

      【解决方案2】:

      verbatim 环境通常在这方面做得很好:

      \begin{verbatim}# cd /
      # rm -rf *
      # reboot
      bash: reboot: command not found
      \end{verbatim}
      

      环境还禁止对任何 TeX 命令进行特殊处理。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2010-10-27
        • 2012-06-08
        • 2015-02-25
        • 2012-11-25
        • 1970-01-01
        • 1970-01-01
        • 2014-08-17
        相关资源
        最近更新 更多