开发者

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?


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

  • http://docutils.sourceforge.net/FAQ.html#how-can-i-include-mathematical-equations-in-documents
  • http://docutils.sourceforge.net/docs/ref/rst/roles.html#raw
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜