LaTeX Look

v0.4.5
io.github.fangchenghao/latex-look Checked 3 hours ago Published 12 days ago

Compile 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.

ParameterTypeDescription
file *stringPath to the main .tex file (absolute, or relative to the current directory).
auditbooleanAudit 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…
auditBlankMmnumberHow deep a hole at the foot of a page must be (mm) before the audit calls it one. Defaults to 30.
comparestringPath to an earlier PDF of the same document. The page is diffed against it and a before image is rendered.
dpinumberRender resolution, 50-300. Defaults to 120.
enginestringauto | xelatex | lualatex | pdflatex | latexmk | tectonic. Defaults to auto, which picks from what the document uses.
freshbooleanIgnore the build cache and compile from scratch. Use only if you suspect the cache is stale.
pagenumber1-based PDF page to render. With text, restrict source matches to this page. Omit to find the page from the text.
pointXnumberX 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.
pointYnumberY of the same point, in PDF points from the top-left corner of the page.
sequencestringCheck 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…
textstringA short string visible on the page (a caption, a heading, a unique phrase). Resolves to its source file:line and page.