From 9e00182c283704fbf086059938a02a12c5dff353 Mon Sep 17 00:00:00 2001 From: Jasper <40232406+jaspwr@users.noreply.github.com> Date: Sun, 21 May 2023 21:31:18 +1000 Subject: [PATCH] Version bump --- CHANGELOG.md | 2 +- Cargo.lock | 2 +- Cargo.toml | 2 +- PKGBUILD | 30 ------------------------------ docs.md | 14 +++++++------- src/compiler.rs | 3 +-- 6 files changed, 11 insertions(+), 42 deletions(-) delete mode 100644 PKGBUILD diff --git a/CHANGELOG.md b/CHANGELOG.md index 87ab7c2..bc1c416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,2 @@ # Changelog -* Fixed command chaining \ No newline at end of file +* Fixed command chaining. \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index a7baea7..3c83331 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -470,7 +470,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "lia" -version = "0.3.0" +version = "0.3.1" dependencies = [ "home", "notify", diff --git a/Cargo.toml b/Cargo.toml index 626671e..5333a7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lia" -version = "0.3.0" +version = "0.3.1" edition = "2021" default-run = "lia" diff --git a/PKGBUILD b/PKGBUILD deleted file mode 100644 index c2b5813..0000000 --- a/PKGBUILD +++ /dev/null @@ -1,30 +0,0 @@ -# Maintainer: Jasper -> https://github.com/jaspwr - -pkgname=lia-git -pkgver=0.3.0 -pkgrel=1 -pkgdesc="Compiler for LiA, a transpiled superset of TeX for writing LaTeX." -makedepends=('rust' 'cargo') -license=('GPL') -arch=('i686' 'x86_64' 'armv6h' 'armv7h') -url="https://github.com/jaspwr/LiA" - -source=("$pkgname::git+https://github.com/jaspwr/LiA#branch=main") -sha256sums=('SKIP') - -prepare() { - cd "$pkgname" - cargo fetch --target "$CARCH-unknown-linux-gnu" -} - -build() { - cd "$pkgname" - export RUSTUP_TOOLCHAIN=stable - export CARGO_TARGET_DIR=target - cargo build --release -} - -package() { - cd "$pkgname" - install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/lia" -} diff --git a/docs.md b/docs.md index 5b89378..5c7caa3 100644 --- a/docs.md +++ b/docs.md @@ -1,6 +1,6 @@ -# LiA 0.3.0 Documentation +# LiA 0.3.1 Documentation ->⚠️ This is the documentation for version 0.3.0. This is only an early version and is still in development. Do not expect any of these features to stay the same in future versions. Additionally, the compiler has not been thoroughly tested and may not work as expected. If you find any bugs or have any suggestions please open an issue or pull request on the [GitHub repository](https://github.com/jaspwr/LiA). +>⚠️ This is the documentation for version 0.3.1. This is only an early version and is still in development. Do not expect any of these features to stay the same in future versions. Additionally, the compiler has not been thoroughly tested and may not work as expected. If you find any bugs or have any suggestions please open an issue or pull request on the [GitHub repository](https://github.com/jaspwr/LiA). ## Contents @@ -100,7 +100,7 @@ Consumes remainder of line. For multiline enclose the section title in `{}`. ### Lists Any line opened with a `*` will be treated as a list item. You can create nested lists with indentation. In most cases the indentation type will be inferred. -> ⚠️ As of version 0.3.0, indentation types other than 4 spaces are unthoroughly tested and may not work as expected. +> ⚠️ As of version 0.3.1, indentation types other than 4 spaces are unthoroughly tested and may not work as expected. #### Lia [COMPILATION_INPUT_START]: <> (Do not remove this line.) ```tex @@ -133,7 +133,7 @@ Any line opened with a `*` will be treated as a list item. You can create nested ### Enumerated lists Any line opened with `1.` will be treated as an enumerated list item. This can be any number. You can create nested lists with indentation. In most cases the indentation type will be inferred. -> ⚠️ As of version 0.3.0, indentation types other than 4 spaces are unthoroughly tested and may not work as expected. +> ⚠️ As of version 0.3.1, indentation types other than 4 spaces are unthoroughly tested and may not work as expected. #### Lia [COMPILATION_INPUT_START]: <> (Do not remove this line.) ```tex @@ -169,7 +169,7 @@ LiA variables provide a less verbose way to define new commands. Any word annotated with a `@` will be treated as a variable. #### Referencing variables -> ⚠️ As of version 0.3.0, variables with computed arguments can not be used before they are defined. This will be fixed in future versions. +> ⚠️ As of version 0.3.1, variables with computed arguments can not be used before they are defined. This will be fixed in future versions. | LiA | TeX | |--------------------------|--------------------------| @@ -254,7 +254,7 @@ $a \times b$ The content inside the equation expression uses a separate syntax to more easily represent mathematical expressions. The content will be parsed and converted to LaTeX. Most TeX commands should work as normal. -> ⚠️ As of version 0.3.0, TeX commands can be separated from their arguments by fractions. This can be solved by encasing the command in `{}`. This will be fixed in future versions. +> ⚠️ As of version 0.3.1, TeX commands can be separated from their arguments by fractions. This can be solved by encasing the command in `{}`. This will be fixed in future versions. #### General expressions ##### Lia [COMPILATION_INPUT_START]: <> (Do not remove this line.) @@ -352,7 +352,7 @@ $\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$ ### Explicit version specification The variable `@LIAVERSION` is reserved for specifying the version that the document is written in. If you specify a version, the document will be compiled with that version of the compiler otherwise it will use the latest version. It is recommended to specify a version to ensure that your document will compile correctly in the future. Always specify the version as the first line of the document. ```tex -@LIAVERSION = 0.3.0 +@LIAVERSION = 0.3.1 ``` ## Document structure diff --git a/src/compiler.rs b/src/compiler.rs index f75090b..c139bb0 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -1,7 +1,5 @@ use std::path::PathBuf; use std::process::Command; -use std::thread; -use std::time::Duration; use crate::hierarchy::Node; use crate::hierarchy_construction; @@ -49,6 +47,7 @@ pub fn compile(job: Job) -> Result<(), String> { let abs_path = PathBuf::from(output_path).canonicalize().unwrap(); // let mut child = Command::new("pdflatex") .arg(abs_path) + .arg("--interaction=nonstopmode") .spawn(); if !wait_for_child(&mut child) {