MathJax-\bbox 对齐问题

MathJax-\bbox 对齐问题

我正在写一篇文章,主要使用 markdown,但对于数学方面,我使用了 MathJax,我一直在尝试为框内的环定义,我发现根据 MathJax 文档,这\bbox是实现此目的的方法,但是,对齐方式不是我想要的那样。如您所见,我试图在文本框中进行多行操作,并将公式放在以“集合”开头的句子的左下方,但这似乎几乎是不可能的。(见下文。)

MathJax 渲染效果不佳

如您所见,对齐非常混乱。我尝试使用 来解决这个问题\begin{multline}\\然后现在使用 ,\begin{align}但我似乎真的无法让它工作或获得任何像样的对齐。请参见下文以了解实际 TeX 中的情况。

$$ \bbox[5px, border:2px solid black]
{
\begin{align}
\text{The set} \; \mathbb{Z}_m = \{0, 1, 2, ..., m-1\} \; \text{Two Operations "+" and} \ "\cdot" \text{for all} \; a, b, c, d ∈ \mathbb{Z}_m \; \text{such that:} \\
a + b &\equiv d \; \bmod \; \\
a \cdot b &\equiv c \; \bmod \; m 
\end{align}
}
$$

如果这篇文章缺乏细节、正确的结构或形式,请原谅我;如果您有任何其他要求,请发表评论!

答案1

由于你的问题是关于 LaTeX 代码(而不是关于mathjax \bbox命令),它似乎在主题内。

考虑这个 LaTeX 代码:

\documentclass{article}
\usepackage{amsmath,amsfonts}
\begin{document}
\begin{equation*}
\begin{split}
& \text{The set} \; \mathbb{Z}_m = \{0, 1, 2, ..., m-1\} \; \text{Two Operations "+" and "} \cdot\text{" for all} \; a, b, c, d \in \mathbb{Z}_m \; \text{such that:} \\
& a + b \equiv d \; \bmod \\
& a \cdot b \equiv c \; \bmod \; m 
\end{split}
\end{equation*}
\end{document}

(我已将原始代码中的“∈”替换为“\in”)

您将获得: 在此处输入图片描述

因此,有了这个mathjax代码:

$$ \bbox[5px, border:2px solid black]
{
\begin{equation*}
\begin{split}
& \text{The set} \; \mathbb{Z}_m = \{0, 1, 2, ..., m-1\} \; \text{Two Operations "+" and "} \cdot\text{" for all} \; a, b, c, d \in \mathbb{Z}_m \; \text{such that:} \\
& a + b \equiv d \; \bmod \\
& a \cdot b \equiv c \; \bmod \; m 
\end{split}
\end{equation*}
}
$$

你有: 在此处输入图片描述

相关内容