switched to xelatex and added typo check

This commit is contained in:
Jakob 2022-04-24 10:44:12 +02:00
parent 8d380afe56
commit 2aaf214daf
2 changed files with 30 additions and 3 deletions

View File

@ -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}

View File

@ -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}
\newcommand{\fdroid}{\textsf{F-Droid}\xspace}