paper migration

This commit is contained in:
2025-10-22 12:20:28 +02:00
commit 634f685c91
11 changed files with 171 additions and 0 deletions

10
paper/.dir-locals.el Normal file
View File

@@ -0,0 +1,10 @@
((latex-mode
. ((TeX-engine . default) ; or luatex/xetex
(TeX-command-extra-options . "-file-line-error -interaction=nonstopmode")
(TeX-master . "/home/velocitatem/Documents/Projects/PHANTOM/paper/src/main.tex")
(TeX-source-correlate-mode . t)
(TeX-source-correlate-start-server . t)
(TeX-PDF-mode . t)
(reftex-mode . t)
(reftex-cite-format . "\\parencite{%l}")
(fill-column . 100))))

15
paper/.gitignore vendored Normal file
View File

@@ -0,0 +1,15 @@
# .gitignore
build/
*.synctex.gz
*.aux
*.log
*.bbl
*.bcf
*.blg
*.run.xml
*.fdb_latexmk
*.fls
*.out
*.toc
*.lof
*.lot

8
paper/.latexmkrc Normal file
View File

@@ -0,0 +1,8 @@
$pdf_mode = 1;
$pdflatex = 'pdflatex -synctex=1 -interaction=nonstopmode -file-line-error %O %S';
$aux_dir = 'build';
$out_dir = 'build';
$use_biber = 0; # force bibtex
$bibtex = 'bibtex %O %B';
$pdf_previewer = 'zathura %O %S';
$clean_ext = 'synctex.gz bbl bcf run.xml fls fdb_latexmk glg glo gls ist blg lof lot out toc';

32
paper/Makefile Normal file
View File

@@ -0,0 +1,32 @@
LATEXMK := latexmk
SRCDIR := src
BUILDDIR := build
TEX := main.tex
JOBNAME := main
PDF := $(BUILDDIR)/$(JOBNAME).pdf
all: pdf
$(BUILDDIR):
mkdir -p $(BUILDDIR)
pdf: $(BUILDDIR)
@cd $(SRCDIR) && \
$(LATEXMK) -pdf -jobname=$(JOBNAME) \
-interaction=nonstopmode -file-line-error \
-outdir=../$(BUILDDIR) $(TEX)
watch: $(BUILDDIR)
@cd $(SRCDIR) && \
$(LATEXMK) -pvc -pdf -jobname=$(JOBNAME) \
-interaction=nonstopmode -file-line-error \
-r ../.latexmkrc \
-outdir=../$(BUILDDIR) $(TEX)
clean:
@cd $(SRCDIR) && \
$(LATEXMK) -C -jobname=$(JOBNAME) -outdir=../$(BUILDDIR) || true
rm -rf $(BUILDDIR)/*
.PHONY: all pdf clean watch

1
paper/README.md Normal file
View File

@@ -0,0 +1 @@
This is a LaTeX thesis project. The src/ directory contains the main LaTeX source files including main.tex, preamble.tex, and chapter files in chapters/. Bibliography references are stored in src/bib/references.bib. The src/auto/ directory contains Emacs auto-generated files (gitignored). Build artifacts are output to build/. To compile the thesis run `make pdf`, use `make watch` for continuous compilation during editing, and `make clean` to remove build files.

17
paper/src/auto/main.el Normal file
View File

@@ -0,0 +1,17 @@
;; -*- lexical-binding: t; -*-
(TeX-add-style-hook
"main"
(lambda ()
(setq TeX-command-extra-options
"-file-line-error -interaction=nonstopmode")
(TeX-add-to-alist 'LaTeX-provided-class-options
'(("report" "12pt") ("article" "12pt")))
(TeX-run-style-hooks
"latex2e"
"preamble"
"chapters/01-intro"
"article"
"art12"))
:latex)

View File

View File

@@ -0,0 +1,10 @@
%% Cite like this \parencite{knuth1984texbook}. See \cref{fig:example}.
%% \begin{figure}[h]
%% \centering
%% \includegraphics[width=.7\linewidth]{figures/example.pdf}
%% \caption{Example figure.}
%% \label{fig:example}
%% \end{figure}
\section{Know They Enemy}
To know how to overcome we need to

22
paper/src/main.tex Normal file
View File

@@ -0,0 +1,22 @@
% -*- TeX-master: t -*-
\documentclass[12pt]{article}
\input{preamble}
\begin{document}
\title{Agent-Aware Defenses for Dynamic Pricing and Recommendation Systems under Adversarial Traffic}
\author{Daniel Rösel\\
\texttt{daniel@alves.world}\\[0.5em]
IE University\\
Madrid, Spain}
\date{}
\maketitle
\begin{abstract}
The introduction of AI agents into the ecosystem of online commerce which is run on dynamic pricing algorithms is disruptive to their own nature.
\end{abstract}
\input{chapters/01-intro}
\printbibliography
\end{document}

35
paper/src/preamble.tex Normal file
View File

@@ -0,0 +1,35 @@
\usepackage[margin=1in]{geometry}
\usepackage{microtype}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{amsmath}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage[backend=bibtex,style=numeric]{biblatex}
\addbibresource{bib/references.bib}
\hypersetup{colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue}
\numberwithin{figure}{section}
\numberwithin{table}{section}
% Custom title formatting to match template
\usepackage{titling}
\pretitle{\begin{center}\noindent\rule{\linewidth}{0.4pt}\par\vspace{1em}\LARGE\bfseries}
\posttitle{\par\end{center}\vspace{0.5em}}
\preauthor{\begin{center}\large}
\postauthor{\end{center}}
\predate{\begin{center}\large}
\postdate{\end{center}\vspace{1em}}
% Redefine abstract environment
\renewenvironment{abstract}{%
\begin{center}%
\textbf{Abstract}%
\end{center}%
\par\vspace{0.5em}%
\small%
}{%
\par\vspace{1em}\noindent\rule{\linewidth}{0.4pt}%
}