Chris Fonnesbeck
Chris Fonnesbeck

Reputation: 4203

Can I use inline raw LaTeX in reStructuredText

I am trying to embed a LaTeX variable into some reStructuredText. I know about the ".. raw::" directive, but I want this to be embedded in a paragraph of text. Specifically, I am looking to replicate the \numquestions\ and \numpoints\ variables from the template exam document. I have tried using :raw:\numquestions\, but this does not seem to be valid. Is there any way of doing this?

Upvotes: 9

Views: 3792

Answers (1)

mzjn
mzjn

Reputation: 50947

Use the raw role (the inline equivalent of the raw directive). See these references:

Upvotes: 6

Related Questions