![LaTeX 中的 reStructuredText 徽标](https://linux22.com/image/377514/LaTeX%20%E4%B8%AD%E7%9A%84%20reStructuredText%20%E5%BE%BD%E6%A0%87.png)
我想使用 \LaTeX{} 命令的等效命令在 LaTeX 文档中引用 reStructuredText。有人创建过这样的命令吗?
答案1
\documentclass{article}
% Quick and Dirty
% I do not know enough about kerning to make it (even) prettier :).
% See https://tex.stackexchange.com/questions/313527 for example or https://ctan.org/pkg/metalogo.
\newcommand{\myReStTe}{\textit{\textrm{re}}\texttt{Structured}\textit{\textrm{Text}}}
% Maybe use \providecommand if you plan to use a more plain macro name which is more likely to be alreday taken by another package or document class (https://tex.stackexchange.com/questions/36175).
\begin{document}
\myReStTe
\end{document}
暗示:也许看一下xspace
包以避免需要{}
命令后的内容,如Before \LaTeX{} After
。