typst / typst/typst

Table cell text align don't work

Open
#4,766 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

layout styling
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Description
// Good
#show table: set align(left)
#show table.cell.where(x: 2): set align(right)
#table(columns: (1fr, 1fr, 1fr), [A], [A], [A])

// Bad A (align right don't work)
#show table: set table(align: left)
#show table.cell.where(x: 2): set align(right)
#table(columns: (1fr, 1fr, 1fr), [A], [A], [A])

// Bad B (align right don't work)
#show table: set table(align: left)
#show table.cell.where(x: 2): set table(align: right)
#table(columns: (1fr, 1fr, 1fr), [A], [A], [A])
Reproduction URL

No response

Operating system

Windows

Typst version
  • I am using the latest version of Typst

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files or tests. Start by running the supplied Typst snippet with the latest version and compare the working alignment example with both failing cases; done when per-cell right alignment works with the shown table alignment forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.