Thanks to visit codestin.com
Credit goes to github.com

Skip to content

More sophisticated text block width realization #7

@maxcrees

Description

@maxcrees
  • Column modifiers e and x should constrain text block width.
  • Minimum width modifier w(...) should not be applied to spanned text blocks? Currently it is applied; investigate further and supply spec argument to cell-width-at if necessary. tbl.1 suggests that it is ignored unless a width is provided for all spanned columns (likewise with x above, but not e?). Is this behavior worth keeping?
  • Shrink text block width if it does not wrap. This is closer to the behavior of text blocks in groff tbl. Choose minimum of determined width (minimum or based on table's max width) versus width of unconstrained text block? May also need to determine if wrapping is occurring (check height before / after constraining width).
  • Text that is NOT in text blocks seems over eager to wrap itself, which can cause tables to display strangely. I think traditional behavior here is that such text should NEVER wrap on its own. If we can figure out how tell Typst to NOT wrap text, maybe this can be a new region option? Perhaps by replacing #pad(...) with #box(inset: (...), clip: true).

Metadata

Metadata

Assignees

Labels

improvementQuality of implementation issues

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions