Skip to content

Commit

Permalink
fix: format issues in examples (#176)
Browse files Browse the repository at this point in the history
* dev: update formatting

* fix: code

* wrap syntax
  • Loading branch information
Myriad-Dreamin committed Jul 31, 2024
1 parent f52d6c1 commit 94ef7b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mitex/examples/example.typ
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Write inline equations like #mi("x") or #mi[y].

Also block equations (this case is from #text(blue.lighten(20%), link("https://katex.org/")[katex.org])):

#mitex(`
#mitex(```latex
\newcommand{\f}[2]{#1f(#2)}
\f\relax{x} = \int_{-\infty}^\infty
\f\hat\xi\,e^{2 \pi i \xi x}
\,d\xi
`)
```)

We also support text mode (in development):

#mitext(`
#mitext(```latex
\iftypst
#set math.equation(numbering: "(1)", supplement: "Equation")
\fi
Expand Down Expand Up @@ -45,4 +45,4 @@ We also support text mode (in development):
\caption{This is an example table.}
\label{tab:example}
\end{table}
`)
```)

0 comments on commit 94ef7b6

Please sign in to comment.