From 5cc1f599305700662d746f7eb43adc69678a963c Mon Sep 17 00:00:00 2001 From: Jakob Date: Thu, 27 Jan 2022 14:16:18 +0100 Subject: [PATCH] updates and improvements --- Makefile | 2 ++ macros.tex | 70 ++++++++++++++++++++++++++++----------- main.tex | 24 +++++++++++--- sections/appendix.tex | 0 sections/related_work.tex | 2 +- 5 files changed, 73 insertions(+), 25 deletions(-) create mode 100644 sections/appendix.tex diff --git a/Makefile b/Makefile index b1729e3..a9fa487 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/macros.tex b/macros.tex index 320802f..1565506 100644 --- a/macros.tex +++ b/macros.tex @@ -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}} \ No newline at end of file +\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} \ No newline at end of file diff --git a/main.tex b/main.tex index cca235c..28794cf 100644 --- a/main.tex +++ b/main.tex @@ -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} diff --git a/sections/appendix.tex b/sections/appendix.tex new file mode 100644 index 0000000..e69de29 diff --git a/sections/related_work.tex b/sections/related_work.tex index 087e29b..a4eb444 100644 --- a/sections/related_work.tex +++ b/sections/related_work.tex @@ -1,4 +1,4 @@ \section{Related Work} \label{sec:related-work} -On the shoulders of giants is a joke on the height of \ No newline at end of file +On the shoulders of giants. \ No newline at end of file