Skip to content

[0.12-rc2] Outdated tutorial on two-column document styling #5215

@jarnowy

Description

@jarnowy

Description

Consider the following input, taken almost verbatim from the Advanced Styling Tutorial section:

#set page(
  paper: "us-letter",
  header: align(right)[
    A fluid dynamic model for
    glacier flow
  ],
  numbering: "1",
)
#set par(justify: true)
#set text(
  font: "Palatino Linotype",
  size: 11pt,
)

#align(center, text(17pt)[
  *A fluid dynamic model
  for glacier flow*
])

#grid(
  columns: (1fr, 1fr),
  align(center)[
    Therese Tungsten \
    Artos Institute \
    #link("mailto:tung@artos.edu")
  ],
  align(center)[
    Dr. John Doe \
    Artos Institute \
    #link("mailto:doe@artos.edu")
  ]
)

#align(center)[
  #set par(justify: false)
  *Abstract* \
  #lorem(80)
]

#show: rest => columns(2, rest)

= Introduction
#lorem(60),#footnote[#lorem(32)] #lorem(20).#footnote[#lorem(40)]


= Related Work

#lorem(60).#footnote[#lorem(20)]

With typst <0.12, the footnotes are typeset in different columns:

screenshot 2024-10-15_19-07-05

while with the release candidates we see:

screenshot 2024-10-15_19-08-03

If I try to fix the output adding columns:2 to #set page(), while commenting out #show: rest => columns(2, rest) , I get the following output:

screenshot 2024-10-15_19-11-15

So I fear the 0.12 series has introduced a bug in the layout algorithm of footnotes.

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentationurgentShould be fixed before the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions