Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在beamer演示文稿中提及LaTeX命令的名称?_Latex_Pdflatex_Presentation_Beamer - Fatal编程技术网

如何在beamer演示文稿中提及LaTeX命令的名称?

如何在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

我正在准备一份带包装的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 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上的问题重复:可能重复: