Git Product home page Git Product logo

pkuthss-typst's People

Contributors

imgbotapp avatar lucifer1004 avatar teddyhuang-00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pkuthss-typst's Issues

Wrong Commands Compiling thesis.typ on macOS

Typst version:

➜  pkuthss-typst-main typst -V
typst 0.10.0

Run the compile command on macOS Sonama

➜  pkuthss-typst-main typst --font-path fonts compile thesis.typ
error: unexpected argument '--font-path' found

  tip: 'fonts --font-path' exists

Usage: typst [OPTIONS] <COMMAND>

For more information, try '--help'.

The command below works for me

typst compile thesis.typ --font-path fonts 

Instead of

typst --font-path fonts compile thesis.typ

首章节标题缺失时页脚序号出错

复现步骤:

  • 注释掉除了第一个章节一级标题以外的所有标题
  • 重新编译
  • 第一个章节内的序号将无法正确渲染(显示变为罗马数字)

这应该是与partcounter逻辑有关,缺少一级一下标题时无法正确处理第一个一级标题使其计数增加

一个用例:第一章为引言,不包含其他层级的标题时,则会出现此类bug

无法正确处理空目录导致数学公式序号出错

如题,当附录为空时,此处逻辑会进入 else 分支 https://github.com/lucifer1004/pkuthss-typst/blob/5009798cc83b597a2293b08a8ea733e54f2eb0c6/template.typ#L475-L479

然后(我也不理解为什么)会报一个错:array is empty,指向 chaptercounter.at(loc).first() ,导致无法编译

奇怪的是同样的逻辑处理图片的序号就没问题,猜测可能是一个更上游的问题,不知道能不能绕过这个错误

booktab 无法引用

使用内置的 figure + table 的形式能够正常引用,然而使用 booktab 则会使标签无法正确对应至表格内容,可以在 show ref 判断 el.func() 分支处加一个

else {
    link(el_loc, [
        #el.func()
        #chinesenumbering(..counter(heading).at(el_loc), location: el_loc)
        ])
    }

来验证上述问题,因此使用当前版本的模板会使 booktab 的引用变为空白

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.