LaTeX Look
v0.4.5Compile a LaTeX page, see it rendered, map a PDF point back to source, and diff builds.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
latex_look See what a LaTeX page actually looks like
Compile a LaTeX document, render a page to a PNG, locate source text, and map a PDF point to its nearest SyncTeX box. Use this whenever someone describes a page visually — a table style, a rule to remove, spacing, a line running into the margin, a figure that is too large — and before saying a layout change is done. Note that `page` is the PDF page index, not the number printed on the page.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the main .tex file (absolute, or relative to the current directory). |
audit | boolean | Audit every page for layout regressions against the previous distinct PDF audited at the same auditBlankMm. Reports new findings and substantially larger gaps. Use after changing captions, headers or… |
auditBlankMm | number | How deep a hole at the foot of a page must be (mm) before the audit calls it one. Defaults to 30. |
compare | string | Path to an earlier PDF of the same document. The page is diffed against it and a before image is rendered. |
dpi | number | Render resolution, 50-300. Defaults to 120. |
engine | string | auto | xelatex | lualatex | pdflatex | latexmk | tectonic. Defaults to auto, which picks from what the document uses. |
fresh | boolean | Ignore the build cache and compile from scratch. Use only if you suspect the cache is stale. |
page | number | 1-based PDF page to render. With text, restrict source matches to this page. Omit to find the page from the text. |
pointX | number | X in PDF points from the top left, together with pointY. Multiply original preview pixel coordinates by 72 / dpi. A diff bbox is already in PDF points. |
pointY | number | Y of the same point, in PDF points from the top-left corner of the page. |
sequence | string | Check reading order for numbered labels with this prefix (e.g. '图' or 'Figure'). An inversion is what a figure that became a float while its neighbours stayed inline causes: the reader turns the pag… |
text | string | A short string visible on the page (a caption, a heading, a unique phrase). Resolves to its source file:line and page. |