Skip to content

Allow a CSS width string in lt_export(width = ) - #55

Merged
yihui merged 2 commits into
mainfrom
export-min-width
Oct 26, 2026
Merged

yihui merged 2 commits into
mainfrom
export-min-width

Conversation

@yihui

@yihui yihui commented Oct 26, 2026

Copy link
Copy Markdown
Owner
  • lt_export(width = "min-content") exports the narrowest table that still shows every column, wrapping cell text wherever possible. A number still means CSS pixels.
  • Pin Config/lt.js to 1.14.120, which keeps a user-specified .fullwidth class (e.g., from lt_wrap(class = "fullwidth")) on wide screens instead of stripping it when it overlaps a sidenote or the TOC.
  • The intro example now exports its PNG with width = "min-content".

🤖 Generated with Claude Code

yihui and others added 2 commits October 26, 2026 01:08
`width = "min-content"` exports the narrowest table that still shows
every column, wrapping cell text wherever possible. A number still means
CSS pixels.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Includes the sidenotes.js fix that keeps a user-specified .fullwidth class.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Site preview: https://yihui-lt-pr-55.surge.sh

Updates on every push; removed when this PR closes.

@yihui
yihui merged commit 39ccac5 into main Oct 26, 2026
12 checks passed
@yihui
yihui deleted the export-min-width branch October 26, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant