From fd5b4e1e3f0f6ab0e29602fd935d2af0810e08ac Mon Sep 17 00:00:00 2001 From: Luke Naylor <l.naylor@sms.ed.ac.uk> Date: Wed, 26 Apr 2023 17:57:05 +0100 Subject: [PATCH] Integrate the filtered sage scripts into build sys --- Makefile | 2 +- main.tex | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ed241ac..14f07cf 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ MAINTEXFILE = main.tex TEXFILES = ${MAINTEXFILE} SAGETEXSCRIPT = main.sagetex.sage -main.pdf: ${TEXFILES} main.sagetex.sout +main.pdf: ${TEXFILES} main.sagetex.sout filtered_sage.txt latexmk main.sagetex.sout: ${SAGETEXSCRIPT} ${PYPLOTFILES} diff --git a/main.tex b/main.tex index d5d6d1a..ce71a21 100644 --- a/main.tex +++ b/main.tex @@ -284,4 +284,34 @@ In the case $\beta = \beta_{-}$ (or $\beta_{+}$) this can be simplified. \section{Conclusion} +\section{Appendix - SageMath code} + +\definecolor{codegreen}{rgb}{0,0.6,0} +\definecolor{codegray}{rgb}{0.5,0.5,0.5} +\definecolor{codepurple}{rgb}{0.58,0,0.82} +\definecolor{backcolour}{rgb}{0.95,0.95,0.92} + +\lstdefinestyle{mystyle}{ + backgroundcolor=\color{backcolour}, + commentstyle=\color{codegreen}, + keywordstyle=\color{magenta}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codepurple}, + basicstyle=\ttfamily\footnotesize, + breakatwhitespace=false, + breaklines=true, + captionpos=b, + keepspaces=true, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2 +} + +\lstset{style=mystyle} + +\lstinputlisting[language=python]{filtered_sage.txt} + \end{document} -- GitLab