Skip to content

Commit

Permalink
chore: bump version to 0.2.5 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 authored Dec 21, 2024
1 parent 83d11e4 commit 192593c
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 29 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## 0.2.5

- Fix: assign correct class for lvert and rvert (https://github.com/mitex-rs/mitex/pull/172)
- Fix: convert `bf` to `bold(upright(..))` (https://github.com/mitex-rs/mitex/pull/183)
- Fix: remove xarrow and use stretch in typst v0.12.0 (https://github.com/mitex-rs/mitex/pull/184)
- Fix: fix some symbols `\not`, `\gtreqqless` and `\gtrapprox` (https://github.com/mitex-rs/mitex/pull/185)


## 0.2.4

Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = [
"OrangeX4 <[email protected]>",
"mgt <[email protected]>",
]
version = "0.2.4"
version = "0.2.5"
edition = "2021"
readme = "README.md"
license = "Apache-2.0"
Expand All @@ -31,12 +31,12 @@ rowan = "0.15.15"

which = "6"

mitex-spec = { version = "0.2.4", path = "crates/mitex-spec" }
mitex-glob = { version = "0.2.4", path = "crates/mitex-glob" }
mitex-lexer = { version = "0.2.4", path = "crates/mitex-lexer" }
mitex-parser = { version = "0.2.4", path = "crates/mitex-parser" }
mitex = { version = "0.2.4", path = "crates/mitex" }
mitex-spec-gen = { version = "0.2.4", path = "crates/mitex-spec-gen" }
mitex-spec = { version = "0.2.5", path = "crates/mitex-spec" }
mitex-glob = { version = "0.2.5", path = "crates/mitex-glob" }
mitex-lexer = { version = "0.2.5", path = "crates/mitex-lexer" }
mitex-parser = { version = "0.2.5", path = "crates/mitex-parser" }
mitex = { version = "0.2.5", path = "crates/mitex" }
mitex-spec-gen = { version = "0.2.5", path = "crates/mitex-spec-gen" }

clap = { version = "4.4", features = ["derive", "env", "unicode", "wrap_help"] }
clap_builder = { version = "4", features = ["string"] }
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ PS: `#set math.equation(numbering: "(1)")` is also valid for MiTeX.
Following is [a simple example](https://github.com/mitex-rs/mitex/blob/main/packages/mitex/examples/example.typ) of using MiTeX in Typst:

```typst
#import "@preview/mitex:0.2.4": *
#import "@preview/mitex:0.2.5": *
#assert.eq(mitex-convert("\alpha x"), "alpha x ")
Write inline equations like #mi("x") or #mi[y].
Write inline equations like #mi(`x`).
Also block equations (this case is from #text(blue.lighten(20%), link("https://katex.org/")[katex.org])):
Expand Down
2 changes: 1 addition & 1 deletion crates/mitex-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn compile(input_path: &str, output_path: &str, is_ast: bool) -> Result<(), Erro
output_path,
format!(
r#"
#import "@preview/mitex:0.2.4": *
#import "@preview/mitex:0.2.5": *
{preludes_str}
{output}"#
Expand Down
2 changes: 1 addition & 1 deletion fixtures/underleaf/ieee/main.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#import "@preview/mitex:0.2.4": *
#import "@preview/mitex:0.2.5": *

#let res = mitex-convert(mode: "text", read("main.tex"))
#eval(res, mode: "markup", scope: mitex-scope)
4 changes: 2 additions & 2 deletions packages/mitex-web/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const App = () => {
van.derive(async () => {
if (fontLoaded.val) {
svgData.val = await $typst.svg({
mainContent: `#import "@preview/mitex:0.2.4": *
mainContent: `#import "@preview/mitex:0.2.5": *
#set page(width: auto, height: auto, margin: 1em);
#set text(size: 24pt);
${darkModeStyle.val}
Expand Down Expand Up @@ -128,7 +128,7 @@ const App = () => {
CopyButton(
"Copy with template and imports",
van.derive(
() => `#import "@preview/mitex:0.2.4": *\n
() => `#import "@preview/mitex:0.2.5": *\n
#math.equation(eval("$" + \`${output.val}\`.text + "$", mode: "markup", scope: mitex-scope), block: true)`
)
),
Expand Down
8 changes: 8 additions & 0 deletions packages/mitex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## 0.2.5

- Fix: assign correct class for lvert and rvert (https://github.com/mitex-rs/mitex/pull/172)
- Fix: convert `bf` to `bold(upright(..))` (https://github.com/mitex-rs/mitex/pull/183)
- Fix: remove xarrow and use stretch in typst v0.12.0 (https://github.com/mitex-rs/mitex/pull/184)
- Fix: fix some symbols `\not`, `\gtreqqless` and `\gtrapprox` (https://github.com/mitex-rs/mitex/pull/185)


## 0.2.4

- Fix `\boxed` command.
Expand Down
2 changes: 1 addition & 1 deletion packages/mitex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ PS: `#set math.equation(numbering: "(1)")` is also valid for MiTeX.
Following is [a simple example](https://github.com/mitex-rs/mitex/blob/main/packages/mitex/examples/example.typ) of using MiTeX in Typst:

```typst
#import "@preview/mitex:0.2.4": *
#import "@preview/mitex:0.2.5": *
#assert.eq(mitex-convert("\alpha x"), "alpha x ")
Expand Down
4 changes: 1 addition & 3 deletions packages/mitex/examples/example.typ
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

#set page(width: 500pt, height: auto, margin: 1em)

#assert.eq(mitex-convert("\alpha x"), "alpha x ")

Write inline equations like #mi("x") or #mi[y].
Write inline equations like #mi(`x`).

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

Expand Down
2 changes: 1 addition & 1 deletion packages/mitex/typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mitex"
version = "0.2.4"
version = "0.2.5"
entrypoint = "lib.typ"
authors = ["Myriad-Dreamin", "OrangeX4", "Enter-tainer"]
license = "Apache-2.0"
Expand Down

0 comments on commit 192593c

Please sign in to comment.