1.0.2: converter searches no subfolders, safer filters, forms, links and watermark
A document at the root of a checkout of 68377 folders needed 56 minutes, because the converter named the suite, the document folder and the build folder with `//` in TEXINPUTS; it now names them without recursion and the same document converts in 11.5 seconds. A file below the document no longer replaces a package of TeX Live. The security review of the pending changes found four defects, each fixed with a test proven red against the old files and green against the new ones twice: an HTML table read in an empty sandbox, so an iframe opens no address; form labels written through the LaTeX writer, so they are set as text; the form pattern scans a line once instead of quadratically; a kept build folder no longer lays the links of an earlier drawing over a new one. The form tests remove the PDF of an earlier run before each conversion. Also carried: forms out of Markdown, link colours from the company, clickable links in prose, HTML tables and SVG drawings, the watermark, and the further changes of 1.0.1 and 1.0.2 in the CHANGELOG. npm test: 1232 of 1232 checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
adc58e19d7
commit
d7aac52ac7
28 files changed
+3918
-137
No files matched your search
@@ -1,5 +1,46 @@
|
||||
# Changelog
|
||||
|
||||
- 2026-11-14 **1.0.2**
|
||||
- An HTML table in a document no longer makes the converting machine open an address: an `<iframe>` in a cell made the build ask the page it names and paste it into the PDF
|
||||
- The label of a form field stands on the page as it is written: a brace, a backslash, `%`, `&` or `#` in it stopped the build or was read as LaTeX, which could put a file of the machine into the PDF
|
||||
- A document with a very long line converts at once: telling a form from another document took time growing with the square of the line length, minutes for a megabyte of inline data
|
||||
- A drawing that lost its links between two builds with `--keep-tex` no longer carries the links of the drawing that stood there before
|
||||
- A document out of Markdown converts in seconds wherever it lies. The converter searched every folder below the document and below the suite before the TeX tree, so a document at the root of a checkout of 68377 folders needed 56 minutes, 12 for the probe and 22 for each of its two LaTeX runs, and a file named like a package of TeX Live anywhere below the document replaced that package. It now searches the folder of the document and the package folder of the suite, and none below them; a picture in a subfolder is still found through its path relative to the document
|
||||
- What a link looks like comes from the company: the colour is the role `link`, an address that leaves the document takes `link-external`, and `\businesslinks{colour = link, underline = true}` draws the line that a browser draws by default. A company sets both from the stylesheet of its own website, so a reader of the PDF and a reader of the page see one design; what a PDF cannot carry is the state of a link, because paper has no hover and no visited colour. A company that sets nothing keeps a link in the colour of the text and without a frame. The line also holds for a link inside a section title, which travels into the contents, the running head and the bookmark: there the text of the link stands alone, because a bookmark takes a string and no drawn line
|
||||
- Links in prose, HTML tables and SVG drawings remain clickable in the finished PDF and reach their named definition; merged cells of an HTML table remain merged. The converter previously dropped the table anchors and the SVG annotations while leaving the link text coloured
|
||||
- A document that asks the kernel to manage its PDF, which is what a document for PDF/UA does, no longer gets a warning from the template: the package that writes the properties is asked for only where the kernel writes none itself. Eight curricula vitae built for PDF/UA-2 carried that warning, and a warning is an error in the project that builds them
|
||||
- A page that is not the final one says so: `\businesswatermark{DRAFT}` in the preamble, or the option `draft` or `watermark=ENTWURF`, lays that word across every page of a document, a letter or a deck. It is quiet enough to read the page through, and it is made as large as the sheet carries, so a long word stays on the paper where a size written in centimetres would push it over the edge
|
||||
- A sentence that lists names in the typewriter face stays inside the page. Such a name is one word LaTeX may not hyphenate, and a sentence of eleven of them left two lines 3.5 and 7.9 points past the right edge, with the words before them pulled apart. The last resort the page keeps for a paragraph that fits nowhere was too small for that case and is now three times the type size; it still acts on the paragraph that needs it and on no other
|
||||
- A name keeps the hyphens it begins with: `--size-medium` never leaves `--` at the end of a line with `size-medium` on the next, where whoever copies the name gets two pieces and neither of them is the name. A break after an inner hyphen stays, which is where a reader reads a boundary anyway
|
||||
- Every name in the typewriter face may break where a reader reads its boundary, whatever its length. It used to hold from sixteen characters up, so one name of a sentence broke after its hyphen and the shorter one beside it did not
|
||||
- A box, the text beside it and the field under it stay on one page. The page used to break between them, so a reader ticked on one page and wrote on the next; the room the whole item needs is now reserved in front of it, counted from the length of its text and the height of its fields, and an item that does not fit moves as one thing
|
||||
- A chapter somebody has to answer becomes a form: the boxes are ticked in the reader, the remarks are typed in any length and the file is saved and sent back. Out of Markdown it is written in the two shapes GitHub, GitLab and Gitea already render, a task list item and a line of a label with underscores, so the source stays readable where it is read. A document that carries neither comes out exactly as before
|
||||
- A heading that follows a list announces for itself. Two headings in a row are one announcement, and the lower one lets the upper reserve the room; a list between them was not seen, so every heading of a document whose sections begin with a list carried the number of the first, and the table at the end had its room reserved in front of that first heading. Measured in a weekly report of four such sections: 624 points, a page and a half, so the body began on page two and the document ran to three pages instead of two
|
||||
- The caption of a picture stands centred under it, over one line and over several. A picture alone in its paragraph is centred on the line and its caption began at the left edge of the text, so the two read as two things
|
||||
- The head of a page gives the logo the width its block really measures and the running head the rest. The line used to be divided by fixed shares; a company with a long name, a long address and a larger logo then had its logo 65 points past the right edge of the paper, with the link of the logo outside the page. A block that would take more than three quarters of the line is set at the height at which it fits and keeps every proportion inside it
|
||||
- A company that names its own `icon` or `logo` drops the drawing of the identity it loads, so a daughter company takes the design of its parent and its own mark
|
||||
- A page of a company carries no ink the company never declared: every colour of a rendered page is measured against the roles the identity sets
|
||||
|
||||
- 2026-10-05 **1.0.1**
|
||||
- A document without a title or without an author keeps its PDF properties empty; before, the complaint the kernel prepares about the omission became the title of the PDF, and every presentation left that warning in its build log
|
||||
- A document out of Markdown measures its tables with the face of its own company; before, a measurement left over from an earlier conversion could be used, and the head cells of a wide table then stood past the right edge of the page
|
||||
- The head of a page names the section the page begins in; before, every page of a document with a title carried the title in its head
|
||||
- The fourth and the fifth heading level keep the run-in shape of their class and hold what they announce on their own page, measured over every distance to the foot
|
||||
- The body text of a document stands in the text colour of the company instead of the pure black LaTeX starts with
|
||||
- The converter no longer runs a `latexmkrc` lying beside the document, and LaTeX can no longer start a program while a document is converted
|
||||
- Two drawings with the same file name in different folders of one document are both shown; before, the second replaced the first. A drawing shown twice is converted once
|
||||
- A link from another document into a section lands on that section; before, every section of every company carried a numbered place only, and such a link opened the document on its first page
|
||||
- A photograph out of Markdown keeps its caption; before, every PNG or JPEG alone in its paragraph came out without one
|
||||
- A lying picture that would only find a strip at the foot of a page moves to the next page and takes its height there, instead of shrinking into the strip
|
||||
- A picture with a caption is made small enough to fit with its caption, so it stays on its page where more than a quarter of the page is left
|
||||
- A page that a picture leaves early keeps the empty room at its foot; before, its spaces were stretched over that room until a heading could stand inside the picture under it
|
||||
- The option `titlelogoheight` is gone: the title block carries no logo, and the option changed nothing
|
||||
- A company can give the ground of its slides a colour running from top to bottom, with text in a colour of its own, and its sidebar the same; a company that names none keeps the white slide and the sidebar in its brand colour
|
||||
- The address line under a logo of icon and name begins where the icon begins; before, a word space stood in front of every icon and the line reached that far past it
|
||||
- The rules of a table stand in the text colour of the company instead of pure black
|
||||
- A logo the company has as an SVG is converted by `bin/logo.py` into a PDF beside it, and a build that finds the SVG alone says which command converts it
|
||||
- A company whose identity lies outside the TeX tree names its directory in `TEXINPUTS` when it calls the converter; before, the converter replaced that search path and such a company could not build a Markdown document
|
||||
|
||||
- 2026-09-22 **1.0.0**
|
||||
- Published under the MIT licence, and every source file carries the notice in its first lines, because a LaTeX package is installed file by file
|
||||
- The document template, the letter and the presentation of a company, all three configured by one corporate identity
|
||||
|
||||
Reference in new issue
Block a user