aboutsummaryrefslogtreecommitdiff
path: root/tex/src/preamble-biblatex.tex
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2020-11-04 22:40:47 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2020-11-04 22:48:22 +0000
commit08516255b1cf366069770026503986f12d59bcc1 (patch)
tree7608cd494bccdd5c097766555601f625e5ab128d /tex/src/preamble-biblatex.tex
parent6e74101fe4a435672a2401afed887c8826049380 (diff)
Appendix of long paper added, optionally we can disable it
Given the referee reports, after discussing with the editors of CiSE, we decided that it is important to include the complete appendix we had before that included a thorough review of existing tools and methods. However, the appendix will not be published in the paper (due to the strict word-count limit). It will only be used in the arXiv/Zenodo versions of the paper. This actually created a technical problem: we want the commit hash of the project source to remain the same when the paper is built with an appendix or without it. To fix this problem the choice of including an appendix has gone into the 'project' script as a run-time option called '--no-appendix'. So by default (when someone just runs './project make'), the PDF will have an appendix, but when we want to submit to the journal, or when the appendix isn't needed for a certain reason, we can use this new option. The appendix also has its own separate bibliography. Some other corrections made in this commit: 1. Some new references were added that had an '_' in their source, they were corrected in 'references.tex'. 2. I noticed that 'preamble-style.tex' is not actually used in this paper, so it has been deleted.
Diffstat (limited to 'tex/src/preamble-biblatex.tex')
-rw-r--r--tex/src/preamble-biblatex.tex145
1 files changed, 0 insertions, 145 deletions
diff --git a/tex/src/preamble-biblatex.tex b/tex/src/preamble-biblatex.tex
deleted file mode 100644
index 0561d1c..0000000
--- a/tex/src/preamble-biblatex.tex
+++ /dev/null
@@ -1,145 +0,0 @@
-%% Biblatex settings.
-%%
-%% Settings necessary to make the bibliography with Biblatex. Keeping all
-%% BibLaTeX settings in a separate preamble was done in the spirit of
-%% modularity to 1) easily managable, 2) If a similar BibLaTeX
-%% configuration is necessary in another LaTeX compilation, this file can
-%% just be copied there and used.
-%%
-%% USAGE:
-%% - `tex/src/references.tex': the file containing Bibtex source of each
-%% reference. The file suffix doesn't have to be `.bib'. This naming
-%% helps in clearly identifying the files and avoiding places that
-%% complain about `.bib' files.
-%
-%% Copyright (C) 2018-2020 Mohammad Akhlaghi <mohammad@akhlaghi.org>
-%
-%% This LaTeX file is part of Maneage. Maneage is free software: you can
-%% redistribute it and/or modify it under the terms of the GNU General
-%% Public License as published by the Free Software Foundation, either
-%% version 3 of the License, or (at your option) any later version.
-%
-%% Maneage is distributed in the hope that it will be useful, but WITHOUT
-%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-%% for more details. See <http://www.gnu.org/licenses/>.
-
-
-
-
-%% To break up highlighted text (for example texttt when some it is on the
-%% line break) and also to no underline emphasized words (like journal
-%% titles in the references).
-\usepackage[normalem]{ulem}
-
-
-
-
-
-%% For quotation signs (sometimes used by BibLaTeX)
-\usepackage{csquotes}
-
-
-
-
-
-%% To define colors
-\usepackage{xcolor}
-
-
-
-
-
-% Basic BibLaTeX settings
-\usepackage[
- doi=false,
- url=false,
- dashed=false,
- eprint=false,
- maxbibnames=10,
- minbibnames=4,
- hyperref=true,
- maxcitenames=2,
- mincitenames=1,
- giveninits=true,
- style=authoryear,
- uniquelist=false,
- backend=biber,natbib]{biblatex}
-\DeclareFieldFormat[article]{pages}{#1}
-\DeclareFieldFormat{pages}{\mkfirstpage[{\mkpageprefix[bookpagination]}]{#1}}
-\addbibresource{tex/src/references.tex}
-\addbibresource{tex/build/macros/dependencies-bib.tex}
-\renewbibmacro{in:}{}
-\AtEveryBibitem{\clearfield{month}}
-\renewcommand*{\bibfont}{\normalsize}
-\DefineBibliographyStrings{english}{references = {References}}
-
-%% Include the adsurl field key into those that are recognized:
-\DeclareSourcemap{
- \maps[datatype=bibtex]{
- \map{
- \step[fieldsource=adsurl,fieldtarget=iswc]
- \step[fieldsource=gbkurl,fieldtarget=iswc]
- }
- }
-}
-
-%% Set the color of the doi link to mymg (magenta) and the ads links
-%% to mypurp (or purple):
-\definecolor{mypurp}{cmyk}{0.75,1,0,0}
-\definecolor{myblue}{rgb}{0,0.669,0.885}
-\newcommand{\doihref}[2]{\href{#1}{\color{myblue}{#2}}}
-\newcommand{\adshref}[2]{\href{#1}{\color{mypurp}{#2}}}
-\newcommand{\blackhref}[2]{\href{#1}{\color{black}{#2}}}
-
-%% Define a format for the printtext commands in
-%% DeclareBibliographyDriver to make links for the doi, ads link and
-%% arxiv link:
-\DeclareFieldFormat{doilink}{
- \iffieldundef{doi}{#1}{\doihref{http://dx.doi.org/\thefield{doi}}{#1}}}
-\DeclareFieldFormat{adslink}{
- \iffieldundef{iswc}{#1}{\adshref{\thefield{iswc}}{#1}}}
-\DeclareFieldFormat{arxivlink}{
- \iffieldundef{eprint}{#1}{\href{http://arxiv.org/abs/\thefield{eprint}}{#1}}}
-
-\DeclareListFormat{doiforbook}{
- \iffieldundef{doi}{#1}{\doihref{http://dx.doi.org/\thefield{doi}}{#1}}}
-\DeclareFieldFormat{googlebookslink}{
- \iffieldundef{iswc}{#1}{\adshref{\thefield{iswc}}{#1}}}
-
-%% Set the formatting to make the last three values into the
-%% appropriate link. Note that the % signs are necessary. Without
-%% them, the items will be indented.
-\DeclareBibliographyDriver{article}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
- \newunit%
- \printtext{\usebibmacro{title}}%
- \newunit%
- \printtext[doilink]{\usebibmacro{journal}}%
- \addcomma%
- \printtext[adslink]{\printfield{volume}}%
- \addcomma%
- \printtext[arxivlink]{\printfield{pages}}%
- \addperiod%
-}
-
-\DeclareBibliographyDriver{book}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
- \newunit%
- \printtext{\usebibmacro{title}}%
- \addperiod%
- \addspace%
- \printlist[doiforbook]{publisher}%
- \addcomma%
- \addspace%
- \printfield[googlebookslink]{edition}%
- \printtext{ ed.}%
- \addperiod%
-}
-
-%% In order to have et al. instead of et al.,:
-\renewcommand*{\nameyeardelim}{\addspace}