Add frozen TikZRefinery demo baseline and build pipeline
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# Three-box loop demonstration
|
||||
|
||||
`loop-boxes.tex` reproduces the loop discussed on October 1, 2026:
|
||||
|
||||
```latex
|
||||
\foreach \x in {0,2,4} {
|
||||
\draw (\x,0) rectangle ++(1,1);
|
||||
}
|
||||
```
|
||||
|
||||
With the default TikZ basis, this produces three 1 cm squares whose lower-left
|
||||
corners are (0,0), (2,0), and (4,0) cm. Each adjacent pair has a 1 cm gap between
|
||||
its edge centerlines. The same drawing command generates all three instances.
|
||||
This is a syntax demonstration for later coverage, outside the initial
|
||||
explicit-coordinate editable subset.
|
||||
|
||||
`loop-boxes.dvi` is the requested DVI output from TinyTeX `latex`.
|
||||
`loop-boxes.png` is its reviewed visual preview, generated through
|
||||
`dvipdfmx` followed by Poppler rendering. The temporary PDF and compiler
|
||||
intermediates are reproducible and need not be retained.
|
||||
|
||||
The DVI contains PGF specials for the dvipdfmx driver. Use a viewer/converter
|
||||
that supports those specials; the PNG shows the result of that conversion.
|
||||
The source also supports normal PDF compilation for inspection in the built-in
|
||||
LaTeX editor. That separate PDF compilation is not the origin of the PNG.
|
||||
|
||||
Rebuild with the shared TinyTeX installation from this directory. Put generated
|
||||
intermediates under a task-local `work` directory, run `latex`, then convert
|
||||
its DVI with `dvipdfmx -o <temporary.pdf> <loop-boxes.dvi>`. Review the converted
|
||||
output before replacing the retained DVI and PNG. There are no bibliography,
|
||||
glossary, or index passes for this standalone example.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 832 B |
@@ -0,0 +1,23 @@
|
||||
% TikZ syntax demonstration: three boxes generated by one loop.
|
||||
% This example explores later syntax coverage, outside the initial explicit subset.
|
||||
\documentclass{article}
|
||||
\usepackage[paperwidth=7cm,paperheight=3cm,margin=0.5cm]{geometry}
|
||||
|
||||
% TinyTeX latex uses pdfTeX in DVI mode. Select the PGF driver for dvipdfmx.
|
||||
% PDF-mode compilation retains the normal automatically selected PDF driver.
|
||||
\ifdefined\pdfoutput
|
||||
\ifnum\pdfoutput=0
|
||||
\def\pgfsysdriver{pgfsys-dvipdfmx.def}
|
||||
\fi
|
||||
\fi
|
||||
\usepackage{tikz}
|
||||
\pagestyle{empty}
|
||||
\setlength{\parindent}{0pt}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\foreach \x in {0,2,4} {
|
||||
\draw (\x,0) rectangle ++(1,1);
|
||||
}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user