Reputation: 4203
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
Reputation: 50947
Use the raw
role (the inline equivalent of the raw
directive). See these references:
Upvotes: 6