You can probably code a custom directive, something like :latext:`LaTeX`. I
won't be able to help much providing a code example but hopefully this is a
possibility.

On Fri, Oct 26, 2018 at 5:03 PM John H Palmieri <jhpalmier...@gmail.com>
wrote:

> If I use the string "\LaTeX" in an reST document and run it through
> Sphinx's latex builder, it strips the leading backslash, so if I run it
> through Sphinx's pdf builder, I just get the text "LaTeX". I would instead
> like to use the command "\LaTeX", which produces a nicely typeset LateX
> symbol. Is there any way to do this?
>
> To be honest, I know one way, but it is hacky: use something like
> \hbox{\LaTeX} within math mode. But there is the broader question of how to
> use LaTeX commands which are not supposed to be in math mode. Suggestions?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sphinx-users+unsubscr...@googlegroups.com.
> To post to this group, send email to sphinx-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Aaron Carlisle

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to