本文介绍了我可以在reStructuredText中使用内联原始LaTeX吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将LaTeX变量嵌入到一些reStructuredText中.我知道".. raw ::"指令,但是我希望将此指令嵌入一段文本中.具体来说,我希望从模板考试文档中复制\ numquestions \和\ numpoints \变量.我尝试使用:raw:\numquestions\,但这似乎无效.有什么办法吗?

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?

推荐答案

使用raw角色(与raw指令内联等效).请参阅以下参考:

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

这篇关于我可以在reStructuredText中使用内联原始LaTeX吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 17:15