-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add mitex for package integration
- Loading branch information
Showing
20 changed files
with
120 additions
and
16 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 3 | ||
--- | ||
|
||
# CeTZ | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 4 | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Codly | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 3 | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Fletcher | ||
|
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,26 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# MiTeX | ||
|
||
During the process of creating slides, we often already have a LaTeX math equation that we simply want to paste into the slides without transcribing it into a Typst math equation. In such cases, we can use [MiTeX](https://github.com/mitex-rs/mitex). | ||
|
||
Example: | ||
|
||
```typst | ||
#import "@preview/mitex:0.2.1": * | ||
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(` | ||
\newcommand{\f}[2]{#1f(#2)} | ||
\f\relax{x} = \int_{-\infty}^\infty | ||
\f\hat\xi\,e^{2 \pi i \xi x} | ||
\,d\xi | ||
`) | ||
``` | ||
|
||
![image](https://github.com/mitex-rs/mitex/assets/34951714/c425b2ae-b50b-46a8-a451-4d9e8e70626b) |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Polylux | ||
|
2 changes: 1 addition & 1 deletion
2
docs/i18n/zh/docusaurus-plugin-content-docs/current/integration/cetz.md
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 3 | ||
--- | ||
|
||
# CeTZ | ||
|
2 changes: 1 addition & 1 deletion
2
docs/i18n/zh/docusaurus-plugin-content-docs/current/integration/codly.md
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 4 | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Codly | ||
|
2 changes: 1 addition & 1 deletion
2
docs/i18n/zh/docusaurus-plugin-content-docs/current/integration/fletcher.md
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 3 | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Fletcher | ||
|
26 changes: 26 additions & 0 deletions
26
docs/i18n/zh/docusaurus-plugin-content-docs/current/integration/mitex.md
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,26 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# MiTeX | ||
|
||
在创建 slides 的过程中,往往我们已经有了一个 LaTeX 数学公式,只是想贴到 slides 的里面,而不想把它转写成 Typst 数学公式,这时候我们就可以用 [MiTeX](https://github.com/mitex-rs/mitex) 了。 | ||
|
||
示例: | ||
|
||
```typst | ||
#import "@preview/mitex:0.2.1": * | ||
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(` | ||
\newcommand{\f}[2]{#1f(#2)} | ||
\f\relax{x} = \int_{-\infty}^\infty | ||
\f\hat\xi\,e^{2 \pi i \xi x} | ||
\,d\xi | ||
`) | ||
``` | ||
|
||
![image](https://github.com/mitex-rs/mitex/assets/34951714/c425b2ae-b50b-46a8-a451-4d9e8e70626b) |
2 changes: 1 addition & 1 deletion
2
docs/i18n/zh/docusaurus-plugin-content-docs/current/integration/polylux.md
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Polylux | ||
|
2 changes: 1 addition & 1 deletion
2
docs/i18n/zh/docusaurus-plugin-content-docs/version-0.3.x/integration/cetz.md
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 3 | ||
--- | ||
|
||
# CeTZ | ||
|
2 changes: 1 addition & 1 deletion
2
docs/i18n/zh/docusaurus-plugin-content-docs/version-0.3.x/integration/codly.md
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 4 | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Codly | ||
|
2 changes: 1 addition & 1 deletion
2
docs/i18n/zh/docusaurus-plugin-content-docs/version-0.3.x/integration/fletcher.md
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 3 | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Fletcher | ||
|
26 changes: 26 additions & 0 deletions
26
docs/i18n/zh/docusaurus-plugin-content-docs/version-0.3.x/integration/mitex.md
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,26 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# MiTeX | ||
|
||
在创建 slides 的过程中,往往我们已经有了一个 LaTeX 数学公式,只是想贴到 slides 的里面,而不想把它转写成 Typst 数学公式,这时候我们就可以用 [MiTeX](https://github.com/mitex-rs/mitex) 了。 | ||
|
||
示例: | ||
|
||
```typst | ||
#import "@preview/mitex:0.2.1": * | ||
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(` | ||
\newcommand{\f}[2]{#1f(#2)} | ||
\f\relax{x} = \int_{-\infty}^\infty | ||
\f\hat\xi\,e^{2 \pi i \xi x} | ||
\,d\xi | ||
`) | ||
``` | ||
|
||
![image](https://github.com/mitex-rs/mitex/assets/34951714/c425b2ae-b50b-46a8-a451-4d9e8e70626b) |
2 changes: 1 addition & 1 deletion
2
docs/i18n/zh/docusaurus-plugin-content-docs/version-0.3.x/integration/polylux.md
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Polylux | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 3 | ||
--- | ||
|
||
# CeTZ | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 4 | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Codly | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 3 | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Fletcher | ||
|
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,26 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# MiTeX | ||
|
||
During the process of creating slides, we often already have a LaTeX math equation that we simply want to paste into the slides without transcribing it into a Typst math equation. In such cases, we can use [MiTeX](https://github.com/mitex-rs/mitex). | ||
|
||
Example: | ||
|
||
```typst | ||
#import "@preview/mitex:0.2.1": * | ||
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(` | ||
\newcommand{\f}[2]{#1f(#2)} | ||
\f\relax{x} = \int_{-\infty}^\infty | ||
\f\hat\xi\,e^{2 \pi i \xi x} | ||
\,d\xi | ||
`) | ||
``` | ||
|
||
![image](https://github.com/mitex-rs/mitex/assets/34951714/c425b2ae-b50b-46a8-a451-4d9e8e70626b) |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Polylux | ||
|