aboutsummaryrefslogtreecommitdiff
path: root/reproduce
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 /reproduce
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 'reproduce')
-rw-r--r--reproduce/analysis/make/paper.mk21
-rw-r--r--reproduce/software/config/TARGETS.conf7
-rw-r--r--reproduce/software/config/texlive-packages.conf10
3 files changed, 20 insertions, 18 deletions
diff --git a/reproduce/analysis/make/paper.mk b/reproduce/analysis/make/paper.mk
index e7949d0..4f2088b 100644
--- a/reproduce/analysis/make/paper.mk
+++ b/reproduce/analysis/make/paper.mk
@@ -41,7 +41,7 @@ $(mtexdir)/project.tex: $(mtexdir)/verify.tex
# If no PDF is requested, or if LaTeX isn't available, don't
# continue to building the final PDF. Otherwise, merge all the TeX
# macros into one for building the PDF.
- @if [ -f .local/bin/lualatex ] && [ x"$(pdf-build-final)" != x ]; then
+ @if [ -f .local/bin/latex ] && [ x"$(pdf-build-final)" != x ]; then
# Put a LaTeX input command for all the necessary macro files.
rm -f $(mtexdir)/project.tex
@@ -83,10 +83,10 @@ $(mtexdir)/project.tex: $(mtexdir)/verify.tex
#
# NOTE: `$(mtexdir)/project.tex' is an order-only-prerequisite for
# `paper.bbl'. This is because we need to run LaTeX in both the `paper.bbl'
-# recipe and the `paper.pdf' recipe. But if `tex/src/references.tex' hasn't
+# recipe and the `paper.pdf' recipe. But if `tex/src/references.bib' hasn't
# been modified, we don't want to re-build the bibliography, only the final
# PDF.
-$(texbdir)/paper.bbl: tex/src/references.tex $(mtexdir)/dependencies-bib.tex \
+$(texbdir)/paper.bbl: tex/src/references.bib $(mtexdir)/dependencies-bib.tex \
| $(mtexdir)/project.tex
# If `$(mtexdir)/project.tex' is empty, don't build PDF.
@macros=$$(cat $(mtexdir)/project.tex)
@@ -97,9 +97,9 @@ $(texbdir)/paper.bbl: tex/src/references.tex $(mtexdir)/dependencies-bib.tex \
p=$$(pwd)
export TEXINPUTS=$$p:
cd $(texbdir);
- lualatex -shell-escape -halt-on-error $$p/paper.tex
- biber paper
-
+ latex -shell-escape -halt-on-error $$p/paper.tex
+ bibtex paper
+ latex -shell-escape -halt-on-error $$p/paper.tex
fi
@@ -124,7 +124,14 @@ paper.pdf: $(mtexdir)/project.tex paper.tex $(texbdir)/paper.bbl
p=$$(pwd)
export TEXINPUTS=$$p:
cd $(texbdir)
- lualatex -shell-escape -halt-on-error $$p/paper.tex
+ latex -shell-escape -halt-on-error $$p/paper.tex
+
+ # Convert the DVI to PostScript, and the PostScript to PDF. The
+ # `-dNOSAFER' option to GhostScript allows transparencies in the
+ # conversion from PostScript to PDF, see
+ # https://www.ghostscript.com/doc/current/Language.htm#Transparency
+ dvips paper.dvi
+ ps2pdf -dNOSAFER paper.ps
# Come back to the top project directory and copy the built PDF
# file here.
diff --git a/reproduce/software/config/TARGETS.conf b/reproduce/software/config/TARGETS.conf
index 00ce387..50392fb 100644
--- a/reproduce/software/config/TARGETS.conf
+++ b/reproduce/software/config/TARGETS.conf
@@ -36,7 +36,10 @@
# Programs and libraries.
-top-level-programs = xlsxio
+#
+# Ghostscript: to build PDF paper (in particular the `ps2pdf' command).
+# XLSXI/O: to read and write XLSX files.
+top-level-programs = ghostscript xlsxio
# Python libraries/modules.
-top-level-python =
+top-level-python =
diff --git a/reproduce/software/config/texlive-packages.conf b/reproduce/software/config/texlive-packages.conf
index 6760eba..70f246e 100644
--- a/reproduce/software/config/texlive-packages.conf
+++ b/reproduce/software/config/texlive-packages.conf
@@ -16,12 +16,4 @@
# the basic installation scheme that we used to install tlmgr, they will be
# ignored in the `tlmgr install' command, but will be used later when we
# want their versions.
-texlive-packages = tex fancyhdr ec newtx fontaxes xkeyval etoolbox xcolor \
- setspace caption footmisc datetime fmtcount titlesec \
- preprint ulem biblatex biber logreq pgf pgfplots fp \
- courier tex-gyre txfonts times csquotes kastrup \
- trimspaces pdftexcmds pdfescape letltxmacro bitset \
- mweights \
- \
- alegreya enumitem fontspec lastpage listings environ \
- tcolorbox
+texlive-packages = times IEEEtran cite xcolor pgfplots courier ps2eps