diff --git a/.gitignore b/.gitignore
index 5e7a2b1..37473f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,5 @@ verbatim/*.svg
verbatim/*.pdf
verbatim/output
images/*.data
+/index*.svg
+diagrams/*-.svg
\ No newline at end of file
diff --git a/build.sh b/build.sh
index 8492761..427b17b 100644
--- a/build.sh
+++ b/build.sh
@@ -15,10 +15,17 @@ echo 'figure.figure { margin-left: 20px; margin-right: 20px; }' >> index.css
echo 'pre.verbatim { font-size: 0.9em; }' >> index.css
sed -i 's|color-scheme: light dark;||g' index.css
echo 'figcaption.caption { margin-bottom: 1.3em; margin-top: 0.3em; }' >> index.css
+echo '.cmti-10 { font-style: italic; }' >> index.css
-sed -i 's/index.css/index2.css/g' index.html
+sed -i 's/˜/~/g' index.html
-mv index.css index2.css
+sed -i "s|
|
|g" index.html
+
+sed -i '/height: 2.5em;/d' index.css
+
+sed -i 's/index.css/index3.css/g' index.html
+
+mv index.css index3.css
python replace_video.py index.html
diff --git a/diagrams/build.sh b/diagrams/build.sh
new file mode 100644
index 0000000..ff7f228
--- /dev/null
+++ b/diagrams/build.sh
@@ -0,0 +1,3 @@
+dot -Tsvg z_operations.dot > z_operations.svg
+
+#sed -i 's/scale(1 1)/scale(0.75 0.75)/g' z_operations.svg
diff --git a/diagrams/resize_dot_svg.py b/diagrams/resize_dot_svg.py
new file mode 100644
index 0000000..edf8eaf
--- /dev/null
+++ b/diagrams/resize_dot_svg.py
@@ -0,0 +1,31 @@
+import sys
+
+scale = 0.75
+
+def scale_svg(lines):
+ svg = "".join(lines)
+ head, viewbox = svg.split("viewBox=\"", maxsplit=1)
+ viewbox, tail = viewbox.split('"', maxsplit=1)
+ x, y, width, height = map(float, viewbox.split())
+ yield head
+ yield f'viewBox="{x} {y} {width * scale} {height * scale}"'
+ yield tail
+
+def transform():
+ with open(sys.argv[1]) as f:
+ svg_lines = []
+
+ for line in f.readlines():
+ if line.strip().startswith("