如何在beamer演示文稿中提及LaTeX命令的名称?
我正在准备一份带包装的beamer演示文稿。但这给了我一个错误 如何在如何在beamer演示文稿中提及LaTeX命令的名称?,latex,pdflatex,presentation,beamer,Latex,Pdflatex,Presentation,Beamer,我正在准备一份带包装的beamer演示文稿。但这给了我一个错误 如何在\frame中写入命令名 \begin{frame} \frametitle{Introduction} The gradientframe package provides a command, \gradientframe for simple and discreet rectangular grayscale gradient frames around objects, such as figures or tab
\frame
中写入命令名
\begin{frame}
\frametitle{Introduction}
The gradientframe package provides a command, \gradientframe for simple and discreet
rectangular grayscale gradient frames around objects, such as figures or tables, to set
them apart from the surrounding text.
\end{frame}
正如对的几个回答(谢谢@Bas Swinckels)一样,建议在输出中插入反斜杠
\
的方法是在源代码中使用\textbackslash
然后,您可以使用(或不使用)只是\texttt{}
(而不是逐字或其他)来标记命令名
最后,如果您必须在幻灯片中多次提到这些命令名,您可能需要将上述两个命令名放在newcommand
中:
\documentclass{beamer}
\新命令{\mycomm}[1]{\texttt{\textcash#1}
%\新命令{\commgf}{\texttt{\textcash gradientframe}
\开始{document}
\开始{frame}
\框架标题{简介}
... 一个命令,\text反斜杠gradientframe用于简单。。。
或:
... 一个命令,\texttt{\textbackslash gradientframe}用于简单。。。
或者更好:
... 一个命令,\myCMM{gradientframe}用于简单。。。
%... 一个命令,\commgf{}用于简单。。。
\结束{帧}
\结束{document}
此代码为您提供:
tex.stackexchange上的问题重复:可能重复: