Doc updates.

This commit is contained in:
brad Arant committed 2025-11-21 19:15:48 -08:00
1 parent c4f0fab8c7
commit 6e25db1e44
14 files changed
+2523 -698

No files matched your search

+9 -9
View File
@@ -4,6 +4,8 @@ tex_file=$(mktemp) ## Random temp file name
cat<<EOF >$tex_file ## Print the tex file header
\documentclass{book}
\usepackage{fontspec}
\setmainfont{Bitstream Vera Sans}
\usepackage{listings}
\usepackage[usenames,dvipsnames]{color} %% Allow color names
\lstdefinestyle{customasm}{
@@ -25,14 +27,12 @@ cat<<EOF >$tex_file ## Print the tex file header
EOF
while read i; do ## Loop through each file
name=${i//_/\\_} ## escape underscores
name=${i/\\_} ## escape underscores
echo "\newpage" >> $tex_file ## start each section on a new page
echo "\section{$name}" >> $tex_file ## Create a section for each filename
## This command will include the file in the PDF
echo "\lstinputlisting[style=customasm]{$i}" >>$tex_file
done <filestoprint &&
echo "\end{document}" >> $tex_file &&
pdflatex $tex_file -output-directory . &&
pdflatex $tex_file -output-directory . ## This needs to be run twice
## for the TOC to be generated
echo "\lstinputlisting[style=customasm]{$i}" >>$tex_file
done <filestoprint
echo "\end{document}" >> $tex_file &&
xelatex $tex_file -output-directory . &&
xelatex $tex_file -output-directory . ## This needs to be run twice
## for the TOC to be generated