Skip to content

Commit

Permalink
Add test for eqnInlineTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
lierdakil committed May 21, 2022
1 parent fa33099 commit d6327cf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ See [Subfigures](#subfigures)
- `eqnInlineTemplate`, default `$$e$$$$equationNumberTeX$${$$i$$}`

A template to typeset math when `tableEqns` is `false`. Similar to `eqnIndexTemplate`, formatting is mostly ignored, due to it being typeset
inside a display math environment. However, most LaTeX should work. The following template variables are known:
inside a display math environment. However, most LaTeX should work (but backslashes need to be doubled). The following template variables are known:

- `ri`, "raw" index, before applying `eqnIndexTemplate`
- `i`, index after applying `eqnIndexTemplate`
Expand Down
1 change: 1 addition & 0 deletions test/m2m/eqnBlockTemplate0/expect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[$$\begin{array}{lr} \int_0^x e^x dx & (1) \end{array}$$]{#eq:1}
1 change: 1 addition & 0 deletions test/m2m/eqnBlockTemplate0/expect.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\begin{equation}\protect\hypertarget{eq:1}{}{\int_0^x e^x dx}\label{eq:1}\end{equation}
8 changes: 8 additions & 0 deletions test/m2m/eqnBlockTemplate0/input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
eqnInlineTemplate: |
\\begin{array}{lr}
$$e$$ & $$i$$
\\end{array}
---

$$\int_0^x e^x dx$${#eq:1}

0 comments on commit d6327cf

Please sign in to comment.