我尝试在我的H5P练习中添加一个表,使用latex。如前所述,我在乳胶码前面使用'$$‘符号,但我也尝试了'( . )’。符号。但是,我总是收到以下错误:
未知环境“表”
这是我要添加到锻炼身体中的代码:
Question 1
\( f(x) = \frac{A_0}{2} + \sum \limits_{n=1}^{\infty} A_n \cos \left( \frac{2 n \pi x}{\nu} - \alpha_n \right) \)
$$\begin{table}[] \begin{tabular}{|l|c|} 1 & 2 \end{tabular} \end{table} \)$$第一部分(功能)工作良好,显示正确。但是,对于表,我只得到了错误。
有人能帮我一下吗?
发布于 2022-06-02 23:47:09
H5P.MathDisplay库基于MathJax,MathJax只实现用于数学布局的宏,而不是文本布局。不支持命令,如\begin{table}、\begin{tabular}或\begin{center}。
没有修改MathJax配置,您可以使用数组环境。
\[
\begin{array}{|c|c|c|}
\hline
\text{Set} & \text{Operation} & \text{Identity} \\
\hline
\mathbb{Z} & + & 0 \\
\hline
\mathbb{Q} & + & 0 \\
\hline
\mathbb{R} & + & 0 \\
\hline
\mathbb{Z} & \times & 1 \\
\hline
\mathbb{Q} & \times & 1 \\
\hline
\mathbb{R} & \times & 1 \\
\hline
\end{array}
\]https://stackoverflow.com/questions/72479530
复制相似问题