I would like to refer to reStructuredText in my LaTeX documents my using an equivalent of the \LaTeX{} command. Has anybody perhaps created one?
Asked
Active
Viewed 445 times
1 Answers
1
Based on Torbjørn T.'s commend (http://docutils.sourceforge.net/rst.html).
\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}
Hint: Maybe have a look at the xspace package to avoid needing the {} after the command, as in Before \LaTeX{} After.
Dr. Manuel Kuehner
- 22,451
-
-
@TorbjørnT. In case the command is used in a sans serif context. – Dr. Manuel Kuehner Jun 09 '18 at 09:47
-
1


\newcommand\rest{reStructuredText}? – Torbjørn T. Jun 09 '18 at 09:15