aboutsummaryrefslogtreecommitdiff
path: root/tex/src
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2020-05-02 04:38:55 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2020-05-02 04:42:58 +0100
commit2bfa3a043dcf394492a33bbcb16121dcb227b5ed (patch)
tree703896fad24fa47300d8b4d378cbaa3e582476e2 /tex/src
parent7fee88631998449ba9572dc491e4401189bdedfe (diff)
First implementation of style in IEEEtran style
The paper is no longer using LuaLaTeX, but raw LaTeX (that saves a DVI), it is so much faster! Initially I had used LuaLaTeX to use special fonts to resemble the CODATA Data Science Journal, but all that overhead is no longer necessary. Therefore I also removed the MANY extra LaTeX packages we were importing. The paper builds and is able to construct one of its images (the git-branching figure) with only 7 packages beyond the minimal TeX/LaTeX installation. Also in terms of processing it is so much faster. The text is just temporary now, and mainly just a place holder. With the next commit, I'll fill it with proper text.
Diffstat (limited to 'tex/src')
-rw-r--r--tex/src/figure-branching.tex13
-rw-r--r--tex/src/preamble-pgfplots.tex22
-rw-r--r--tex/src/preamble-project.tex27
-rw-r--r--tex/src/references.bib (renamed from tex/src/references.tex)0
4 files changed, 48 insertions, 14 deletions
diff --git a/tex/src/figure-branching.tex b/tex/src/figure-branching.tex
index a917987..52a6303 100644
--- a/tex/src/figure-branching.tex
+++ b/tex/src/figure-branching.tex
@@ -27,6 +27,11 @@
+
+
+
+
+
\begin{tikzpicture}
%% Just for a reference (so the image size always remains fixed). It also
@@ -71,13 +76,13 @@
\branchcommit{red!60!green}{4.5cm}{5cm}{f69e1f4}
\branchcommit{red!60!green}{4.5cm}{6cm}{716b56b}
\node[inner sep=0pt] at (3.92cm,5.55cm)
- {\includegraphics[width=6.5mm]{tex/img/icon-collaboration.pdf}};
+ {\includegraphics[width=6.5mm]{tex/img/icon-collaboration.eps}};
%% Paper being processed icon. The white rectangle over it is to blend it
%% into the background.
\node[anchor=south,inner sep=0pt] at (3.92cm,6.7cm)
- {\includegraphics[width=1cm]{tex/img/icon-processing.pdf}};
- \draw[white, fill=white, opacity=0.7] (3.42cm,6.7) rectangle (5cm,7.7cm);
+ {\includegraphics[width=1cm]{tex/img/icon-processing.eps}};
+ \draw[white, fill=white, opacity=0.7] (3.42cm,6.7) rectangle (5cm,7.8cm);
%% Description of this scenario:
\draw [rounded corners, fill=black!10!white] (3.1cm,0) rectangle (7.5cm,1.25cm);
@@ -131,7 +136,7 @@
%% Project commits.
\branchcommit{red!60!green}{11cm}{2.5cm}{4483a81}
\branchcommit{red!60!green}{11cm}{4.5cm}{\projectversion}
- \node[anchor=south, inner sep=0pt, color=white] at (11.05cm,4.8cm) {\includegraphics[width=1cm]{tex/img/icon-complete.pdf}};
+ \node[anchor=south, inner sep=0pt, color=white] at (11.05cm,4.8cm) {\includegraphics[width=1cm]{tex/img/icon-complete.eps}};
%% Derivate project commits.
\branchcommit{purple!60!yellow}{12.5cm}{5cm}{b177c7e}
diff --git a/tex/src/preamble-pgfplots.tex b/tex/src/preamble-pgfplots.tex
index 0a7b5d5..eabdeb7 100644
--- a/tex/src/preamble-pgfplots.tex
+++ b/tex/src/preamble-pgfplots.tex
@@ -84,7 +84,7 @@
\tikzsetnextfilename{#1}%
\input{tex/src/#1.tex}%
\else
- \includegraphics[width=\linewidth]{tex/tikz/#1.pdf}
+ \includegraphics[width=\linewidth]{tex/tikz/#1.eps}
\fi
}
@@ -92,15 +92,17 @@
-%% Uncomment the following lines for EPS and PS images. Note that you still
-%% have to use the `pdflatex' executable and also add a `[dvips]' option to
-%% graphicx.
-
-%% \tikzset{external/system call={rm -f "\image".eps "\image".ps
-%% "\image".dvi; latex \tikzexternalcheckshellescape -halt-on-error
-%% -interaction=batchmode -jobname "\image" "\texsource";
-%% dvips -o "\image".ps "\image".dvi;
-%% ps2eps "\image.ps"}}
+%% Uncomment the following lines for TiKZ external images to be saved as
+%% EPS and PS images.
+\tikzset{
+ external/system call={
+ rm -f "\image".eps "\image".ps "\image".dvi;
+ latex \tikzexternalcheckshellescape -halt-on-error
+ -interaction=batchmode -jobname "\image" "\texsource";
+ dvips -o "\image".ps "\image".dvi;
+ ps2eps "\image.ps"
+ }
+}
diff --git a/tex/src/preamble-project.tex b/tex/src/preamble-project.tex
new file mode 100644
index 0000000..c4d7feb
--- /dev/null
+++ b/tex/src/preamble-project.tex
@@ -0,0 +1,27 @@
+%% Import graphics
+\usepackage{graphicx}
+
+%% IEEEtran V1.6 and later pre-defines the format of the cite.sty package
+%% \cite{} output to follow that of the IEEE.
+\usepackage{cite}
+
+%% For the `\url' command.
+\usepackage{url}
+
+% correct bad hyphenation here
+\hyphenation{op-tical net-works semi-conduc-tor}
+
+%% To use colors.
+\usepackage{xcolor}
+
+%% To have links.
+\usepackage[
+ colorlinks,
+ urlcolor=gray,
+ citecolor=gray,
+ linkcolor=gray,
+ linktocpage]{hyperref}
+\renewcommand\UrlFont{\rmfamily}
+
+%% To have typewriter font
+\usepackage{courier}
diff --git a/tex/src/references.tex b/tex/src/references.bib
index e19ec16..e19ec16 100644
--- a/tex/src/references.tex
+++ b/tex/src/references.bib