Skip to content

Commit 6139b05

Browse files
jswentJoseph-Edwards
authored andcommitted
doc: add to-table generation to make-doc.sh
1 parent b45e6f3 commit 6139b05

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docs/pictures/to-table.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\documentclass[png]{standalone}
1+
\documentclass{standalone}
22
\usepackage{booktabs} % For professional tables
33
\usepackage{pifont} % For check and cross symbols
44
\usepackage{graphicx} % For rotating text

etc/make-doc.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ else
77
PYTHON="python3"
88
fi
99

10+
echo "Checking whether to build the to-table . . ."
11+
if command -v pdflatex && command -v inkscape 2>&1 >/dev/null; then
12+
cd docs/pictures
13+
echo "Building to-table . . ."
14+
pdflatex to-table.tex
15+
inkscape --pdf-poppler --export-type="svg" -o to-table.svg to-table.pdf
16+
if [ $? -eq 0 ]; then
17+
echo Successfully created to-table.svg
18+
else
19+
echo Warning: there was an issue with inkscape when creating to-table.svg
20+
echo Please check the state of to-table.svg
21+
fi
22+
cd ../..
23+
else
24+
echo "Not building to-table"
25+
fi
26+
1027
$PYTHON etc/check-docstring-indentation.py
1128

1229
cd docs/

0 commit comments

Comments
 (0)