From 2aaf214daf6d1c2ea07aaebc7482df55ef9824d3 Mon Sep 17 00:00:00 2001 From: Jakob Date: Sun, 24 Apr 2022 10:44:12 +0200 Subject: [PATCH] switched to xelatex and added typo check --- Makefile | 14 ++++++++++++-- macros.tex | 19 ++++++++++++++++++- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 30e3fdc..7f2e422 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ .PHONY: main.pdf clean redo test_git versioned main.pdf: main.tex main.bib - latexmk -pdf main.tex + latexmk -pdfxe main.tex # use xelatex to build pdf clean: + latexmk -c x=`biber --cache` && if [ -d "$x" ]; then $(RM) $x; fi - $(RM) *.out *.aux *.log *.bbl *.blg *~ *.toc *.idx *.eps dummy *.fls *.fdb_latexmk *.bcf *.run.xml + $(RM) *.out *.aux *.log *.bbl *.blg *~ *.toc *.idx *.eps dummy *.fls *.fdb_latexmk *.bcf *.run.xml *.xdv $(RM) $(patsubst %.tex, %.ps, $(wildcard *.tex)) $(RM) $(patsubst %.tex, %.dvi, $(wildcard *.tex)) $(RM) $(patsubst %.tex, %.pdf, $(wildcard *.tex)) @@ -21,3 +22,12 @@ versioned: test_git clean main.pdf # TODO latexdiff # latexdiff-vc --pdf main.tex -r 123456 -r abcdef + +# common typos check. find words, but ignore latex comment and macros +CT=grep -inr --include \*.tex "$${TYPO}" | grep -v ":%" | grep -v "newacronym" | grep -i --color=always "$${TYPO}"; exit 0 +check-common-typos: + TYPO="application" && ${CT} + TYPO="run-time" && ${CT} + TYPO="behaviour" && ${CT} + TYPO="ground-truth" && ${CT} + TYPO="groundtruth" && ${CT} \ No newline at end of file diff --git a/macros.tex b/macros.tex index 1565506..d9e3b81 100644 --- a/macros.tex +++ b/macros.tex @@ -43,6 +43,23 @@ \fi } +\newcommand\bignote[1]{% + \ifreview + \begin{center} + \begin{minipage}{.95\linewidth} + \color{teal!70}\vrule width 3pt% + \colorbox{teal!15}{% + \parbox{.95\textwidth}{% + \textcolor{black}{\small% + NOTE\@: #1% + }% + }% + }% + \end{minipage} + \end{center} + \fi +} + % expressions \newcommand{\vs}{vs. } \newcommand{\ie}{{i.e.,}\xspace} @@ -108,4 +125,4 @@ \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 +\newcommand{\fdroid}{\textsf{F-Droid}\xspace}