Repository navigation
Choose the look of the PDF in Settings: paper, text size, typeface, margins, accent, numbering, date - #18
Merged
Conversation
…, accent colour, numbering and date renderDocument takes a style. The choices are written into the preamble of main.tex after the house style, so lucid.sty stays one fixed file, and a document with no style is exactly what it was. The typefaces are Latin Modern (the house style) and three TeX Gyre faces (Palatino, Times, Helvetica) that the PDF engine brings along. Figures are fitted to about the size of the text area the style gives. Unit tests cover the LaTeX each choice writes, and the Tectonic tests compile every typeface and all choices together and check the embedded fonts, the A4 page size, the missing numbers and the missing date. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Settings has a "PDF look" group: paper (Auto picks Letter or A4 by the country of the computer), text size, typeface, margins, accent colour, numbered or plain headings, and the date under the title. The choices are kept in settings.json (a file from before has the house style), checked when saved, handed to the PDF engine at once, and the diagrams are fitted to the text area they give. The defaults are the look PDFs always had. An end-to-end test chooses A4, 12 pt, Times, navy, plain headings and no date, makes a real PDF and reads the paper, the embedded font, the missing number and the missing date back from it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The Settings picture of the guide (light and dark) is taken again with the new group, and its list says what each choice does. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new PDF look group in Settings. Everything defaults to the look PDFs always had.
@lucid/kit:renderDocumenttakes a style; the choices go into the preamble ofmain.texafter the house style, solucid.stystays one fixed file, and a document without a style is byte for byte what it was. Figures are fitted to about the text area the style gives.settings.json(an older file gets the house style), checked on save, applied to the next PDF at once.Checked
pdf-look.spec.ts: chooses A4, 12 pt, Times, navy, plain, no date in the real window, makes a real PDF and reads those things back (mutation-checked: fails when the engine ignores the look).Not in this PR
Editing the style file itself (the full template) and a dictation delay setting: next.
🤖 Generated with Claude Code