proper parsing without highlights

This commit is contained in:
2025-10-23 10:46:47 +02:00
parent 98070acac0
commit 68421b6d79
2 changed files with 4 additions and 19 deletions

View File

@@ -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
cat "$filepath" >> "$OUTPUT_FILE"
echo "" >> "$OUTPUT_FILE"
echo "\\end{lstlisting}" >> "$OUTPUT_FILE"

View File

@@ -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}