From fcfe32775f72550ebb6d883b95cf50a1be84c451 Mon Sep 17 00:00:00 2001
From: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Date: Fri, 12 Apr 2019 17:18:01 +0100
Subject: Dependency BibTeX entries included only when necessary

Until now, there was a single `tex/src/references.tex' file that housed the
BibTex entries for everything (software and non-software).

Since we have started to include the BibTeX entry for more software, it
will be hard to manage the large (sometime unused) BibTeX entries of the
software in the middle of the non-software related citations in the text of
the paper.

Therefore, with this commit, a `tex/dependencies' directory has been made
which has a separate BibTeX entry file for each software that needs
one. After the software is built, this file is copied to the new
`.local/version-info/cite' directory. At the end, the configure script will
concatenate all the files in this directory into one file which will later
be used with `tex/src/references.tex' by BibLaTeX.

This greatly simplifies managing of citations. Allowing us to focus on the
software-building and paper-writing citations separately/cleanly (and thus
be more efficient in both).
---
 tex/src/preamble-biblatex.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/tex/src/preamble-biblatex.tex b/tex/src/preamble-biblatex.tex
index 6358fb1..602c5a1 100644
--- a/tex/src/preamble-biblatex.tex
+++ b/tex/src/preamble-biblatex.tex
@@ -48,7 +48,7 @@
     url=false,
     dashed=false,
     eprint=false,
-    maxbibnames=4,
+    maxbibnames=2,
     minbibnames=1,
     hyperref=true,
     maxcitenames=2,
@@ -59,6 +59,7 @@
 \DeclareFieldFormat[article]{pages}{#1}
 \DeclareFieldFormat{pages}{\mkfirstpage[{\mkpageprefix[bookpagination]}]{#1}}
 \addbibresource{tex/src/references.tex}
+\addbibresource{tex/pipeline/macros/dependencies-bib.tex}
 \renewbibmacro{in:}{}
 \renewcommand*{\bibfont}{\footnotesize}
 \DefineBibliographyStrings{english}{references = {References}}
-- 
cgit v1.2.1

