diff --git a/.github/workflows/gh_pages.yml b/.github/workflows/gh_pages.yml index 3bca4e9..257e029 100644 --- a/.github/workflows/gh_pages.yml +++ b/.github/workflows/gh_pages.yml @@ -33,7 +33,7 @@ jobs: curl -L https://github.com/Myriad-Dreamin/shiroa/releases/download/v0.1.2/font-assets.tar.gz | tar -xvz -C assets/fonts - name: Download & install shiroa run: | - curl -L https://github.com/Myriad-Dreamin/shiroa/releases/download/v0.2.0-nightly1/shiroa-x86_64-unknown-linux-gnu.tar.gz | tar -xvz + curl -L https://github.com/Myriad-Dreamin/shiroa/releases/download/v0.2.0-nightly4/shiroa-x86_64-unknown-linux-gnu.tar.gz | tar -xvz chmod +x shiroa-x86_64-unknown-linux-gnu/bin/shiroa sudo cp shiroa-x86_64-unknown-linux-gnu/bin/shiroa /usr/bin/shiroa - name: Build Book diff --git a/src/basic/scripting-literal-and-variable.typ b/src/basic/scripting-literal-and-variable.typ index 5fe0a33..8058a5e 100644 --- a/src/basic/scripting-literal-and-variable.typ +++ b/src/basic/scripting-literal-and-variable.typ @@ -190,7 +190,7 @@ Typst还为你内置了一些特殊的数值,它们都是浮点数: $pi$=#calc.pi \ $tau$=#calc.tau \ $inf$=#calc.inf \ -NaN=#calc.nan \ +// NaN=#calc.nan \ ```) === 字符串字面量 @@ -864,3 +864,4 @@ todo参数解构。 ][ #q1 ] + diff --git a/src/book.typ b/src/book.typ index f4daee7..2576405 100644 --- a/src/book.typ +++ b/src/book.typ @@ -1,4 +1,4 @@ -#import "@preview/shiroa:0.1.0": * +#import "@preview/shiroa:0.1.1": * #show: book diff --git a/src/ebook.typ b/src/ebook.typ index 7022d92..68a4df1 100644 --- a/src/ebook.typ +++ b/src/ebook.typ @@ -1,4 +1,4 @@ -#import "@preview/shiroa:0.1.0": * +#import "@preview/shiroa:0.1.1": * #import "/typ/templates/ebook.typ" #show: ebook.project.with( diff --git a/src/introduction.typ b/src/introduction.typ index 3b0523c..630e984 100644 --- a/src/introduction.typ +++ b/src/introduction.typ @@ -107,48 +107,12 @@ typst watch file.typ set align(center) table( columns: (1fr, 1fr, 1fr, 1fr, 48pt, 48pt, 1fr), - [名称], - [编辑器], - [编译器环境], - [预览方案], - [是否支持即时编译], - [语言服务], - [备注], - [WebAPP], - [Code Mirror], - [wasm], - [渲染图片], - [是], - [优秀], - align(left)[开箱即用,需要科学上网,无法git], - [VSCode], - [VSCode], - [native], - [webview], - [是], - [良好], - align(left)[简单上手,定制性差], - [neovim], - [neovim], - [native], - [webview], - [是], - [良好], - align(left)[不易安装,定制性好], - [Emacs], - [Emacs], - [native], - [webview], - [是], - [良好], - align(left)[难以安装], - [typst-cli], - [任意编辑器], - [native], - [任意PDF阅读器], - [否], - [无], - align(left)[简单上手,灵活组合], + [名称], [编辑器], [编译器环境], [预览方案], [是否支持即时编译], [语言服务], [备注], + [WebAPP], [Code Mirror], [wasm], [渲染图片], [是], [优秀], align(left)[开箱即用,需要科学上网,无法git], + [VSCode], [VSCode], [native], [webview], [是], [良好], align(left)[简单上手,定制性差], + [neovim], [neovim], [native], [webview], [是], [良好], align(left)[不易安装,定制性好], + [Emacs], [Emacs], [native], [webview], [是], [良好], align(left)[难以安装], + [typst-cli], [任意编辑器], [native], [任意PDF阅读器], [否], [无], align(left)[简单上手,灵活组合], ) } diff --git a/typ/templates/ebook.typ b/typ/templates/ebook.typ index 10123af..f0790c1 100644 --- a/typ/templates/ebook.typ +++ b/typ/templates/ebook.typ @@ -1,4 +1,4 @@ -#import "@preview/shiroa:0.1.0": * +#import "@preview/shiroa:0.1.1": * #import "/typ/templates/page.typ": project, part-style, dash-color #import "/typ/templates/term.typ": reset-term-state diff --git a/typ/templates/page.typ b/typ/templates/page.typ index dee2467..7d267a7 100644 --- a/typ/templates/page.typ +++ b/typ/templates/page.typ @@ -1,6 +1,6 @@ // This is important for typst-book to produce a responsive layout // and multiple targets. -#import "@preview/shiroa:0.1.0": get-page-width, target, is-web-target, is-pdf-target, plain-text, templates +#import "@preview/shiroa:0.1.1": get-page-width, target, is-web-target, is-pdf-target, plain-text, templates #import templates: * #import "template-link.typ": * #import "/typ/templates/side-notes.typ": side-attrs diff --git a/typ/templates/template-link.typ b/typ/templates/template-link.typ index c218361..8fc2faa 100644 --- a/typ/templates/template-link.typ +++ b/typ/templates/template-link.typ @@ -1,6 +1,6 @@ // #import "supports-text.typ": plain-text -#import "@preview/shiroa:0.1.0": plain-text +#import "@preview/shiroa:0.1.1": plain-text #let make-unique-label(it, disambiguator: 1) = label({ let k = plain-text(it).trim()