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 versioned: test_git clean main.pdf
cp main.pdf "main-$$(date -u +'%Y-%m-%dT%H:%M:%SZ')-$$(git rev-parse --short HEAD).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 % Macros
% colors from draw.io
\definecolor{hotpink}{HTML}{FF66B3}
\definecolor{hotred}{HTML}{FF3333}
\definecolor{milka}{HTML}{9933FF}
% tl;dr: % tl;dr:
% \t{this is a todo} % \t{this is a todo}
% \q{this is a question} % \q{this is a question}
@ -7,25 +12,21 @@
\newcommand{\mypar}[1]{\smallskip\noindent\textbf{#1.}\xspace} \newcommand{\mypar}[1]{\smallskip\noindent\textbf{#1.}\xspace}
% names for the tools we work with %collaborator comments
%\newcommand{\thecompiler}{\textsc{OATmeal}\xspace}
\newcommand{\thediffer}{\textsc{androSAFE}\xspace}
\newcommand\reviewcomment[3]{ \newcommand\reviewcomment[3]{
\ifreview \ifreview
\textcolor{#1}{#2 - #3} \textcolor{#1}{#2 - #3}
\fi \fi
} }
% collaborators: add your initials here and pick a color % collaborators: add your initials here and pick a color
\newcommand\ml[1]{\reviewcomment{magenta}{#1}{ML}} \newcommand\ml[1]{\reviewcomment{magenta}{#1}{ML}}
\newcommand\jb[1]{\reviewcomment{teal}{#1}{JB}} \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}} \newcommand\bigtodo[1]{%
\def\q#1{{\color{red}[QUESTION] #1}}
\newcommand\todo[1]{%
\ifreview \ifreview
\begin{center} \begin{center}
\begin{minipage}{.95\linewidth} \begin{minipage}{.95\linewidth}
@ -42,15 +43,16 @@
\fi \fi
} }
\providecommand{\vs}{vs. } % expressions
\providecommand{\ie}{\textit{i.e.,}\xspace} \newcommand{\vs}{vs. }
\providecommand{\ia}{\textit{i.a.,}\xspace} \newcommand{\ie}{{i.e.,}\xspace}
\providecommand{\eg}{\textit{e.g.,}\xspace} \newcommand{\ia}{{i.a.,}\xspace}
\providecommand{\cf}{\textit{cf.,}\xspace} \newcommand{\eg}{{e.g.,}\xspace}
\providecommand{\resp}{\textit{resp.,}\xspace} \newcommand{\cf}{{cf.,}\xspace}
\providecommand{\etal}{\textit{et al.}\xspace} \newcommand{\resp}{{resp.,}\xspace}
\providecommand{\etc}{\textit{etc.}\xspace} \newcommand{\etal}{{et al.}\xspace}
\providecommand{\via}{\textit{via}\xspace} \newcommand{\etc}{{etc.}\xspace}
\newcommand{\via}{{via}\xspace}
\newcommand{\ok}{\ding{51}} \newcommand{\ok}{\ding{51}}
@ -59,21 +61,51 @@
\usepackage[acronym]{glossaries} \usepackage[acronym]{glossaries}
\glsdisablehyper %no links for glossary / acronyms \glsdisablehyper %no links for glossary / acronyms
\newacronym{art}{ART}{Android Runtime} \newacronym{art}{ART}{Android Runtime}
\providecommand{\art}{\acrshort{art}} \providecommand{\art}{\acrshort{art}}
\newacronym{apk}{APK}{Android Package} \newacronym{apk}{APK}{Android Package}
\providecommand{\apk}{\acrshort{apk}} \providecommand{\apk}{\acrshort{apk}}
\providecommand{\apks}{\acrshortpl{apk}}
\newacronym{ndk}{NDK}{Native Development Kit} \newacronym{ndk}{NDK}{Native Development Kit}
\providecommand{\ndk}{\acrshort{ndk}} \providecommand{\ndk}{\acrshort{ndk}}
\newacronym[longplural={Third Party Libraries}]{tpl}{TPL}{Third Party Library} \newacronym[longplural={Third Party Libraries}]{tpl}{TPL}{Third Party Library}
\providecommand{\tpl}{\acrshort{tpl}} \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, ..) \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}} \providecommand{\oat}{\acrshort{oat}}
\newacronym{elf}{ELF}{Executable and Linkable Format} \newacronym{elf}{ELF}{Executable and Linkable Format}
\providecommand{\elf}{\acrshort{elf}} \providecommand{\elf}{\acrshort{elf}}
\newacronym[shortplural={DEXes}]{dex}{DEX}{Dalvik Executable} \newacronym[shortplural={DEXes}]{dex}{DEX}{Dalvik Executable}
\providecommand{\dex}{\acrshort{dex}} \providecommand{\dex}{\acrshort{dex}}
\newacronym{jit}{JIT}{Just-In-Time} \newacronym{jit}{JIT}{Just-In-Time}
\providecommand{\jit}{\acrshort{jit}} \providecommand{\jit}{\acrshort{jit}}
\newacronym{aot}{AOT}{Ahead-Of-Time} \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[normalem]{ulem}
\usepackage{xspace} \usepackage{xspace}
\usepackage{relsize} \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 \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\renewcommand*{\bibfont}{\small}
\AtEveryBibitem{% Clean up the bibliography rather than editing it \AtEveryBibitem{% Clean up the bibliography rather than editing it
\clearfield{editor} \clearfield{editor}
\clearfield{pages} \clearfield{pages}
\clearfield{language}
\ifentrytype{book}{ \ifentrytype{book}{
}{ }{
\ifentrytype{inbook}{}{% Remove publisher, editor, ISBN and ISSN except for books \ifentrytype{inbook}{}{% Remove publisher, editor, ISBN and ISSN except for books
@ -70,11 +70,13 @@
\clearfield{url} \clearfield{url}
\clearfield{pages} \clearfield{pages}
\clearfield{month} \clearfield{month}
\clearfield{language}
}{} }{}
% %
\clearlist{location} \clearlist{location}
\clearlist{address} \clearlist{address}
\clearfield{doi} \clearfield{doi}
\clearfield{language}
} }
% Bibliography imports % Bibliography imports
@ -94,6 +96,15 @@
\mathchardef\UrlBreakPenalty=0 \mathchardef\UrlBreakPenalty=0
\mathchardef\UrlBigBreakPenalty=0 \mathchardef\UrlBigBreakPenalty=0
\renewcommand{\UrlFont}{\ttfamily\relscale{0.9}} \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{ \hypersetup{
breaklinks=true, breaklinks=true,
filecolor=black, filecolor=black,
@ -105,7 +116,8 @@
pdfpagelayout=SinglePage, pdfpagelayout=SinglePage,
unicode unicode
} }
% must be loaded after hyperref
\usepackage{cleveref} % for \Cref{sec:background} -> Section 2
% Styling commands % Styling commands
@ -128,14 +140,14 @@
% variables and macros
% global variables % global variables
\newif\ifreview % hides/shows all notes and todos \newif\ifreview % hides/shows all notes and todos
\reviewtrue \reviewtrue
% Macros and Acronyms % Macros and Acronyms
\input{macros.tex} \input{macros.tex}
@ -189,4 +201,6 @@
\printbibliography \printbibliography
} }
\input{sections/appendix.tex}
\end{document} \end{document}

0
sections/appendix.tex Normal file
View File

View File

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