-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧮 Fix AMSMath environment for LaTeX (#977)
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de> Co-authored-by: Rowan Cockett <rowanc1@gmail.com>
- Loading branch information
Showing
3 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"myst-to-tex": patch | ||
--- | ||
|
||
Properly handle AMS environments, and no longer wrap with equation environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
title: myst-to-tex amsmath tests | ||
cases: | ||
- title: gather | ||
mdast: | ||
type: root | ||
children: | ||
- type: math | ||
value: |- | ||
\begin{gather} | ||
E=mc^2 | ||
\end{gather} | ||
latex: |- | ||
\begin{gather} | ||
E=mc^2 | ||
\end{gather} | ||
- title: alignat* | ||
mdast: | ||
type: root | ||
children: | ||
- type: math | ||
value: |- | ||
\begin{alignat*}{3} | ||
& m \quad && \text{módulo} \quad && m>0\\ | ||
& a \quad && \text{multiplicador} \quad && 0<a<m\\ | ||
& c \quad && \text{constante aditiva} \quad && 0\leq c<m\\ | ||
& x_0 \quad && \text{valor inicial} \quad && 0\leq x_0 <m | ||
\end{alignat*} | ||
latex: |- | ||
\begin{alignat*}{3} | ||
& m \quad && \text{módulo} \quad && m>0\\ | ||
& a \quad && \text{multiplicador} \quad && 0<a<m\\ | ||
& c \quad && \text{constante aditiva} \quad && 0\leq c<m\\ | ||
& x_0 \quad && \text{valor inicial} \quad && 0\leq x_0 <m | ||
\end{alignat*} |