Skip to content

全体コンパイルしたときと個別コンパイルしたときで組版結果が微妙に違う? #27

@Azumabashi

Description

@Azumabashi

57 号のわたしの記事 (https://github.com/WORD-COINS/book57/pull/1) を、リポジトリの root でコンパイルしたときと記事ディレクトリ(articles/ 以下)でコンパイルしたときで組版結果が微妙に違う。

検証環境は以下のとおり。

  • commit id a316ff92a1f08978a61c5bfd06ac15c6b0193c14
  • macOS Sequoia 15.5
  • GNU bash, バージョン 5.2.37(1)-release (x86_64-apple-darwin23.6.0)
  • typst v0.3.1

再現手順は以下。

  1. 適当なディレクトリで 57 号のリポジトリを clone
  2. cd クローンしてきたリポジトリ
  3. make setup
  4. git checkout articles/typst-latex-comparison
  5. make compile
  6. cd articles/typst-latex-comparison
  7. make compile

root で(step 5 で)make compile して得られた PDF はこれ。
main.pdf

articles 以下に cd してから(step 7 で)得られた PDF はこれ。
main.pdf

「Typst に図版ごと組ませる方針」という見出しがあるページの組版結果が 2 つの PDF で違う。
前者では、図 4 の上に 1 段落あるが、後者では、図 4 がページの最上部に配置されており、前者で図の上にあった段落は図 4 の前のページにある。

同じ記事から生成されたものなので、組版結果は同一であってほしい。

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglayoutRelated to layout, positioning, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions