Skip to content

Commit

Permalink
chore: bump version to 0.2.4 (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 committed May 16, 2024
1 parent 8304752 commit c5e9f9b
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 17 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG


## 0.2.4

- Fix `\boxed` command.
- Support basic figure and tabular environments.
- Add escape symbols for plus, minus and percent.
- Fix `\left` and `\right`: size of lr use em.


## 0.2.3

- Support nesting math equation like `\text{$x$}`.
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.

2 changes: 1 addition & 1 deletion 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.2"
version = "0.2.4"
edition = "2021"
readme = "README.md"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion 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.2": *
#import "@preview/mitex:0.2.4": *
#assert.eq(mitex-convert("\alpha x"), "alpha x ")
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.2": *
#import "@preview/mitex:0.2.4": *
{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.2": *
#import "@preview/mitex:0.2.4": *

#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.2": *
mainContent: `#import "@preview/mitex:0.2.4": *
#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.2": *\n
() => `#import "@preview/mitex:0.2.4": *\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.4

- Fix `\boxed` command.
- Support basic figure and tabular environments.
- Add escape symbols for plus, minus and percent.
- Fix `\left` and `\right`: size of lr use em.


## 0.2.3

- Support nesting math equation like `\text{$x$}`.
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.2": *
#import "@preview/mitex:0.2.4": *
#assert.eq(mitex-convert("\alpha x"), "alpha x ")
Expand Down
3 changes: 2 additions & 1 deletion packages/mitex/typst.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "mitex"
version = "0.2.2"
version = "0.2.4"
entrypoint = "lib.typ"
authors = ["Myriad-Dreamin", "OrangeX4", "Enter-tainer"]
license = "Apache-2.0"
description = "LaTeX support for Typst, powered by Rust and WASM."

homepage = "https://github.com/mitex-rs/mitex"
repository = "https://github.com/mitex-rs/mitex"
categories = ["utility"]
keywords = ["wasm", "rust", "LaTeX", "equation"]
exclude = ["examples"]

0 comments on commit c5e9f9b

Please sign in to comment.