Coder Social home page Coder Social logo

jiazhu's People

Contributors

fusyong avatar

Stargazers

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

Watchers

 avatar

jiazhu's Issues

过长的夹注需要优化

如果夹注过长,会使得夹注占据了大部分空间,其长度固定下来后,可能导致剩余空间进行标点压缩排版时超出边界。
根本原因应该是夹注无法与非夹注一起参与glue的缩放,而夹注长度一旦固定下来,如果剩余空间过小会导致排版困难。
overflow

boxes_to_rules 中 夹注位于标题末尾时,会去访问 nil 的next

boxes_to_rules

如果 n 是 夹注,则 处理完之后, n 已经指向了原来 n 的后继节点,如果其为空,则 下一步 n=n.next 会出错。

因此 n=n.next 需要放到 else 分支中。

可以通过两个紧邻的夹注进行测试 \jiazhu{XXX}\jiazhu{YYY},会发现第二个夹注没有处理,被跳过了。

章节标题中的夹注第二行行首有额外的hangskip glue

经查,行首的额外glue与 \setuphead[chapter][numberwidth] 有关。

如果章节标题过长超过一行,即如果夹注位于行首,则整个夹注应距行首numberwidth。

但无论如何夹注的上下两行应是对齐的,不应有hangskip。
image

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.