From 68421b6d79abec924bfec9464938e00b7bc0f255 Mon Sep 17 00:00:00 2001 From: Daniel Rosel Date: Thu, 23 Oct 2025 10:46:47 +0200 Subject: [PATCH] proper parsing without highlights --- paper/concat_code.sh | 21 ++------------------- paper/src/main.tex | 2 ++ 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/paper/concat_code.sh b/paper/concat_code.sh index 5890c91..fc844d1 100755 --- a/paper/concat_code.sh +++ b/paper/concat_code.sh @@ -15,26 +15,9 @@ add_file() { local filepath="$1" local relpath="${filepath#$PROJECT_ROOT/}" - # Get file extension - local ext="${filepath##*.}" - - # Map extensions to listings language - case "$ext" in - py) lang="Python" ;; - js|jsx|ts|tsx) lang="JavaScript" ;; - sh) lang="bash" ;; - yml|yaml) lang="Python" ;; - Dockerfile) lang="bash" ;; - *) lang="" ;; - esac - - # Add section header and code listing + # Add section header and code listing (no language-specific highlighting) echo "\\subsection{${relpath}}" >> "$OUTPUT_FILE" - if [ -n "$lang" ]; then - echo "\\begin{lstlisting}[language=${lang},caption={${relpath}}]" >> "$OUTPUT_FILE" - else - echo "\\begin{lstlisting}[caption={${relpath}}]" >> "$OUTPUT_FILE" - fi + echo "\\begin{lstlisting}[caption={${relpath}}]" >> "$OUTPUT_FILE" cat "$filepath" >> "$OUTPUT_FILE" echo "" >> "$OUTPUT_FILE" echo "\\end{lstlisting}" >> "$OUTPUT_FILE" diff --git a/paper/src/main.tex b/paper/src/main.tex index 0f787b1..4c7340d 100644 --- a/paper/src/main.tex +++ b/paper/src/main.tex @@ -38,6 +38,8 @@ The primary objective of this thesis is to develop and validate pricing heuristi \printbibliography +\clearpage +\onecolumn \appendix \input{../build/concatenated_code}