aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2021-01-02 16:46:55 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2021-01-02 17:30:15 +0000
commite4f61544facf8a3bd88c8466e7d3d847544c8228 (patch)
tree16aa6ce14f38c537c1f14e63ac2764febc0d4f77 /project
parente7bfc66ab080ea662003ba173d70b7e9d94b9371 (diff)
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'.
Diffstat (limited to 'project')
-rwxr-xr-xproject14
1 files changed, 8 insertions, 6 deletions
diff --git a/project b/project
index e53bcf0..33564f8 100755
--- a/project
+++ b/project
@@ -36,7 +36,6 @@ host_cc=0
operation=
build_dir=
input_dir=
-noappendix=0
check_config=
make_targets=
software_dir=
@@ -46,6 +45,7 @@ highlightnew=0
all_highlevel=0
existing_conf=0
highlightnotes=0
+separatesupplement=0
scriptname="./project"
minmapsize=10000000000
@@ -92,6 +92,7 @@ Project 'make' special features.
./project make Build the project on one thread
./project make -jN Built the project in parallel on N threads.
./project make clean Clean all files generated by 'make' (not software).
+ ./project make texclean Clean all files built by (La)TeX.
./project make distclean Clean everything (including compiled software).
./project make dist Produce a LaTeX-ready-to-build distribution tarball
('tar.gz') of the project. This is ready to be
@@ -128,7 +129,7 @@ Make (analysis) options:
Make (final PDF) options:
--highlight-new Highlight '\new' parts of text as green.
--highlight-notes Show '\tonote' regions as red text in PDF.
- --no-appendix Don't include the appendix in the final paper.
+ --supplement Build the appendices as a separate supplement PDF.
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
@@ -213,8 +214,8 @@ do
#
# Note that Make's `debug' can take values, but when called without any
# value, it is like giving it a value of `a'):
- --no-appendix) noappendix=1; shift;;
- --no-appendix=*) on_off_option_error --no-appendix;;
+ --supplement) separatesupplement=1; shift;;
+ --supplement=*) on_off_option_error --supplement;;
--highlight-new) highlightnew=1; shift;;
--highlight-new=*) on_off_option_error --highlight-new;;
--highlight-notes) highlightnotes=1; shift;;
@@ -384,7 +385,8 @@ controlled_env() {
# Remove all existing environment variables (with `env -i') and only
# use some pre-defined environment variables, then build the project.
envmake=".local/bin/env -i HOME=$bdir sys_rm=$(which rm) $gopt"
- envmake="$envmake noappendix=$noappendix highlightnew=$highlightnew"
+ envmake="$envmake separatesupplement=$separatesupplement "
+ envmake="$envmake highlightnew=$highlightnew"
envmake="$envmake highlightnotes=$highlightnotes .local/bin/make "
envmake="$envmake --no-builtin-rules --no-builtin-variables -f $1"
if ! [ x"$debug" = x ]; then envmake="$envmake --debug=$debug"; fi
@@ -507,7 +509,7 @@ case $operation in
numwords=$(pdftotext paper.pdf && cat paper.txt | wc -w)
numeff=$(echo $numwords | awk '{print $1-850+500}')
echo; echo "Number of words in full PDF: $numwords"
- if [ $noappendix = 1 ]; then
+ if [ $separatesupplement = 1 ]; then
echo "No abstract, and captions (250 for each figure): $numeff"
fi
rm paper.txt