From e4f61544facf8a3bd88c8466e7d3d847544c8228 Mon Sep 17 00:00:00 2001
From: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Date: Sat, 2 Jan 2021 16:46:55 +0000
Subject: Supplement (containing appendices) optionally built separately

Until now, the build strategy of the paper was to have a single output PDF
that either contains (1) the full paper with appendices in the same paper
(2) only the main body of the paper with no appencies.

But the editor in chief of CiSE recently recommended publishing the
appendices as supplements that is a separate PDF (on its webpage). So with
this commit, the project can make either (1) a single PDF (containing both
the main body and the appendices) that will be published on arXiv and will
be the default output (this is the same as before). (2) two PDFs: one that
is only the main body of the paper and another that is only the appendices.

Since the appendices will be printed as a PDF in any case now, the old
'--no-appendix' option has been replaced by '--supplement'. Also, the
internal shell/TeX variable 'noappendix' has been renamed to
'separatesupplement'.
---
 tex/src/preamble-project.tex | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'tex/src/preamble-project.tex')

diff --git a/tex/src/preamble-project.tex b/tex/src/preamble-project.tex
index 11bf9c3..f360ce9 100644
--- a/tex/src/preamble-project.tex
+++ b/tex/src/preamble-project.tex
@@ -49,9 +49,16 @@
 
 %% To have multiple bibliographies (one for the main paper, one for the
 %% appendix). With 'multibib' we need to specify a name for each
-%% bibliography.
+%% bibliography. But this is only necessary when the appendices are to be
+%% included in the final paper. When the supplement should be separate, it
+%% will be treated as a completely independent build, so '\citeappendix'
+%% should just be mapped to '\cite'.
+\ifdefined\separatesupplement
+\newcommand{\citeappendix}{\cite}
+\else
 \usepackage{multibib}
 \newcites{appendix}{Bibliography}
+\fi
 
 %% To have typewriter font
 \usepackage{courier}
-- 
cgit v1.2.1

