updates and improvements

This commit is contained in:
Jakob 2022-01-27 14:16:18 +01:00
parent d4b9dc3606
commit 5cc1f59930
5 changed files with 73 additions and 25 deletions

View File

@ -19,3 +19,5 @@ test_git:
versioned: test_git clean main.pdf
cp main.pdf "main-$$(date -u +'%Y-%m-%dT%H:%M:%SZ')-$$(git rev-parse --short HEAD).pdf"
# TODO latexdiff
# latexdiff-vc --pdf main.tex -r 123456 -r abcdef

View File

@ -1,5 +1,10 @@
% Macros
% colors from draw.io
\definecolor{hotpink}{HTML}{FF66B3}
\definecolor{hotred}{HTML}{FF3333}
\definecolor{milka}{HTML}{9933FF}
% tl;dr:
% \t{this is a todo}
% \q{this is a question}
@ -7,25 +12,21 @@
\newcommand{\mypar}[1]{\smallskip\noindent\textbf{#1.}\xspace}
% names for the tools we work with
%\newcommand{\thecompiler}{\textsc{OATmeal}\xspace}
\newcommand{\thediffer}{\textsc{androSAFE}\xspace}
%collaborator comments
\newcommand\reviewcomment[3]{
\ifreview
\textcolor{#1}{#2 - #3}
\fi
}
% collaborators: add your initials here and pick a color
\newcommand\ml[1]{\reviewcomment{magenta}{#1}{ML}}
\newcommand\jb[1]{\reviewcomment{teal}{#1}{JB}}
% todos
\newcommand\todo[1]{\reviewcomment{blue}{#1}{[TODO]}}
\newcommand\q[1]{\reviewcomment{red}{#1}{[QUESTION]}}
\def\t#1{{\color{blue}[TODO] #1}}
\def\q#1{{\color{red}[QUESTION] #1}}
\newcommand\todo[1]{%
\newcommand\bigtodo[1]{%
\ifreview
\begin{center}
\begin{minipage}{.95\linewidth}
@ -42,15 +43,16 @@
\fi
}
\providecommand{\vs}{vs. }
\providecommand{\ie}{\textit{i.e.,}\xspace}
\providecommand{\ia}{\textit{i.a.,}\xspace}
\providecommand{\eg}{\textit{e.g.,}\xspace}
\providecommand{\cf}{\textit{cf.,}\xspace}
\providecommand{\resp}{\textit{resp.,}\xspace}
\providecommand{\etal}{\textit{et al.}\xspace}
\providecommand{\etc}{\textit{etc.}\xspace}
\providecommand{\via}{\textit{via}\xspace}
% expressions
\newcommand{\vs}{vs. }
\newcommand{\ie}{{i.e.,}\xspace}
\newcommand{\ia}{{i.a.,}\xspace}
\newcommand{\eg}{{e.g.,}\xspace}
\newcommand{\cf}{{cf.,}\xspace}
\newcommand{\resp}{{resp.,}\xspace}
\newcommand{\etal}{{et al.}\xspace}
\newcommand{\etc}{{etc.}\xspace}
\newcommand{\via}{{via}\xspace}
\newcommand{\ok}{\ding{51}}
@ -59,21 +61,51 @@
\usepackage[acronym]{glossaries}
\glsdisablehyper %no links for glossary / acronyms
\newacronym{art}{ART}{Android Runtime}
\providecommand{\art}{\acrshort{art}}
\newacronym{apk}{APK}{Android Package}
\providecommand{\apk}{\acrshort{apk}}
\providecommand{\apks}{\acrshortpl{apk}}
\newacronym{ndk}{NDK}{Native Development Kit}
\providecommand{\ndk}{\acrshort{ndk}}
\newacronym[longplural={Third Party Libraries}]{tpl}{TPL}{Third Party Library}
\providecommand{\tpl}{\acrshort{tpl}}
\newacronym{oat}{OAT}{Of Ahead Time} % m) https://stackoverflow.com/questions/28435860/what-does-oat-mean -- the history android names deserve some research someday (D8, dalvik, ..)
\providecommand{\oat}{\acrshort{oat}}
\newacronym{elf}{ELF}{Executable and Linkable Format}
\providecommand{\elf}{\acrshort{elf}}
\newacronym[shortplural={DEXes}]{dex}{DEX}{Dalvik Executable}
\providecommand{\dex}{\acrshort{dex}}
\newacronym{jit}{JIT}{Just-In-Time}
\providecommand{\jit}{\acrshort{jit}}
\newacronym{aot}{AOT}{Ahead-Of-Time}
\providecommand{\aot}{\acrshort{aot}}
\providecommand{\aot}{\acrshort{aot}}
\newacronym{app}{app}{application}
\providecommand{\app}{\acrshort{app}}
\providecommand{\apps}{\acrshortpl{app}}
% names for the tools we work with
%\newcommand{\thecompiler}{\textsc{OATmeal}\xspace}
\newcommand{\thediffer}{\textsc{androSAFE}\xspace}
\newcommand{\javac}{\textsf{javac}\xspace}
\newcommand{\dexoat}{\textsf{dex2oat}\xspace}
\newcommand{\apkoat}{\textsf{apk2oat}\xspace}
\newcommand{\dx}{\textsf{dx}\xspace}
\newcommand{\DB}{\textsf{D8}\xspace}
\newcommand{\RB}{\textsf{R8}\xspace}
\newcommand{\ndkbuild}{\textsf{ndk-build}\xspace}
\newcommand{\gcc}{\textsf{gcc}\xspace}
\newcommand{\clang}{\textsf{Clang}\xspace}
\newcommand{\fdroid}{\textsf{F-Droid}\xspace}

View File

@ -29,7 +29,6 @@
\usepackage[normalem]{ulem}
\usepackage{xspace}
\usepackage{relsize}
\usepackage{cleveref} % for \Cref{sec:background} -> Section 2
@ -49,10 +48,11 @@
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\renewcommand*{\bibfont}{\small}
\AtEveryBibitem{% Clean up the bibliography rather than editing it
\clearfield{editor}
\clearfield{pages}
\clearfield{language}
\ifentrytype{book}{
}{
\ifentrytype{inbook}{}{% Remove publisher, editor, ISBN and ISSN except for books
@ -70,11 +70,13 @@
\clearfield{url}
\clearfield{pages}
\clearfield{month}
\clearfield{language}
}{}
%
\clearlist{location}
\clearlist{address}
\clearfield{doi}
\clearfield{language}
}
% Bibliography imports
@ -94,6 +96,15 @@
\mathchardef\UrlBreakPenalty=0
\mathchardef\UrlBigBreakPenalty=0
\renewcommand{\UrlFont}{\ttfamily\relscale{0.9}}
% Experiments with URL font:
%\makeatletter
%\def\url@foostyle{%
% \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\sffamily}}}
%\makeatother
%\appto{\bibsetup}{\urlstyle{sf}\hypersetup{urlcolor=black}}
%\renewcommand{\UrlFont}{\sffamily\relscale{0.9}}
\hypersetup{
breaklinks=true,
filecolor=black,
@ -105,7 +116,8 @@
pdfpagelayout=SinglePage,
unicode
}
% must be loaded after hyperref
\usepackage{cleveref} % for \Cref{sec:background} -> Section 2
% Styling commands
@ -128,14 +140,14 @@
% variables and macros
% global variables
\newif\ifreview % hides/shows all notes and todos
\reviewtrue
% Macros and Acronyms
\input{macros.tex}
@ -189,4 +201,6 @@
\printbibliography
}
\input{sections/appendix.tex}
\end{document}

0
sections/appendix.tex Normal file
View File

View File

@ -1,4 +1,4 @@
\section{Related Work}
\label{sec:related-work}
On the shoulders of giants is a joke on the height of
On the shoulders of giants.