图表标题中的 LaTeX 命令内联 2024-5-22 • floats captions verbatim 我希望图形的标题包含 LaTeX 命令但不执行它: 在这种情况下,使用verbatim环境不起作用并会引发错误。请提出解决方案。 答案1 手动解决方案,也保留了以下数字列表: \documentclass{article} \begin{document} \listoffigures \begin{figure} \caption{For example, \texttt{\textbackslash include\{data/myNewChapterName.tex\}}} \end{figure} \end{document} 相关内容 在 su 命令期间调用时如何隐藏密码? 即使文件名和路径中存在 ASCII 以外的字符,使用 tar 是否安全? 命令行复制命令在 64 位 Windows 中有效吗? tripwire:忽略根文件夹的更改时间戳 Firefox 33 不显示指定字体 vboxmanage createhd - UUID 选项无法按预期工作 有没有办法将其附加到逐项列表中?[关闭] GMail 服务器中的 DMARC“抽样”策略覆盖效果 何时提供静态 IP 地址? 使用对齐时插入“缺失}”时出错。} l.47 \结束{对齐}''