我正在创建通过zip QTI上传到Canvas的微分方程问题。你可能认为我写的东西是这样的
\[ y'' + y = x+1 \]在问题的正文中。我在HTML显示中测试了这个问题,它是可以的,但是当我为Canvas构建一个QTI文件并上传它时,公式没有正确显示。
一种解决方法是将y'‘替换为\frac{d^2y}{dx^2},它可以正确显示,但最好使用y’。
发布于 2021-04-22 08:14:10
有趣的是,这个问题只在使用Rnw练习时发生,而不是在使用Rmd练习和使用pandoc-mathml转换器时(例如,当pandoc-mathjax可以正常工作时)。当使用与Canvas中使用的设置相对应的以下选项时,也可以使用exams2html()进行复制:
exams2html("diffeq.Rnw", converter = "pandoc-mathml", mathjax = TRUE)幸运的是,有一个简单的解决方法,即在Rnw练习中使用y^{''},而不是在Rmd练习中使用的y''。然后确保你使用converter = "pandoc-mathml"。有关练习文件的简单工作示例,请参阅下面的内容。
R/LaTeX版本:diffeq.Rnw。
\begin{question}
Is this differential equation showing up correctly?
\[ y^{''} + y = x+1 \]
\begin{answerlist}
\item Yes
\item No
\end{answerlist}
\end{question}
\exname{differential equation}
\extype{schoice}
\exsolution{10}R/降价版本:diffeq.Rmd。
Question
========
Is this differential equation showing up correctly?
\\[ y'' + y = x+1 \\]
Questionlist
------------
* Yes
* No
Meta-information
================
exname: differential equation
extype: schoice
exsolution: 10https://stackoverflow.com/questions/67189933
复制相似问题