mirror of
https://github.com/velocitatem/PHANTOM.git
synced 2026-05-31 16:43:36 +00:00
paper migration
This commit is contained in:
21
.github/workflows/latex.yml
vendored
Normal file
21
.github/workflows/latex.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Build PDF
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: xu-cheng/texlive-action@v2
|
||||||
|
with:
|
||||||
|
scheme: small
|
||||||
|
run: |
|
||||||
|
tlmgr install biber biblatex csquotes geometry microtype hyperref cleveref siunitx booktabs graphics caption latexmk
|
||||||
|
make pdf
|
||||||
|
- name: Upload PDF
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: thesis-pdf
|
||||||
|
path: build/main.pdf
|
||||||
10
paper/.dir-locals.el
Normal file
10
paper/.dir-locals.el
Normal 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
15
paper/.gitignore
vendored
Normal 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
8
paper/.latexmkrc
Normal 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
32
paper/Makefile
Normal 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
1
paper/README.md
Normal 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
17
paper/src/auto/main.el
Normal 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)
|
||||||
|
|
||||||
0
paper/src/bib/references.bib
Normal file
0
paper/src/bib/references.bib
Normal file
10
paper/src/chapters/01-intro.tex
Normal file
10
paper/src/chapters/01-intro.tex
Normal 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
22
paper/src/main.tex
Normal 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
35
paper/src/preamble.tex
Normal 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}%
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user