Using LaTeX to create text fractals
Python TeX Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
figures
pdf
.gitignore
Makefile
README.md
build_recursion.py
plot_size.py
source.tex
table.tex

README.md

Fractal typography

This project implements a Sierpinski carpet using LaTeX.

To start, install pdflatex and pdfcrop and run

python build_recursion.py

It first compiles the "source" image. You can make your custom image by modifying source.tex. Next to implements the Sierpinski "template"

\newcommand{\A}{\includegraphics[width=50cm]{pdf/source.pdf}}

...

\begin{tabular}{lll}
\A & \A & \A\\
\A &    & \A\\
\A & \A & \A
\end{tabular}

and rebuilds each level by reusing the previous compilation. A few iterations (1,2,3,4,5, and 999) can be found in the pdf directory.

Examples

Level 1 (source image)

Level 2 (8 copies)

Level 3 (512 copies)

Level 4 (4096 copies)

Level 5 (32768 copies)


Level 999 (8^999 copies) Good luck!

Presentation

http://thoppe.github.io/fractal_typography/HnT_index.html#/

First presented at DC Hack && Tell Round 27: Hyperion Christmas Carols.