Commit 38bdd6f9 authored by Roland Herzog's avatar Roland Herzog

switches to auto-generated *-includes.tex files for bibliography dump

parent e3aa134c
Pipeline #33425 passed with stage
in 53 seconds
numapde-bibliography-dump-articles-includes.tex
numapde-bibliography-dump-articles.pdf
numapde-bibliography-dump-nonarticles-includes.tex
numapde-bibliography-dump-nonarticles.pdf
#!/bin/bash
# This script compiles the bibliography dump of numapde.bib.
# Due to the size of the bibliography, the dump is split into two files,
# articles and non-articles.
# Create the master files for the articles and non-articles bibliography dumps
numapde-prepare-manuscript.py --infile numapde-bibliography-dump.yaml --outname numapde-bibliography-dump-articles --nosuffix --main numapde-bibliography-dump-articles-main.tex
numapde-prepare-manuscript.py --infile numapde-bibliography-dump.yaml --outname numapde-bibliography-dump-nonarticles --nosuffix --main numapde-bibliography-dump-nonarticles-main.tex
# Find all articles, and generate \cite{} commands for them in
# numapde-bibliography-dump-articles-includes.tex
awk -v FS=[{,] '/^@ARTICLE/ {print "\\nocite{" $2 "}"}' ../numapde.bib > numapde-bibliography-dump-articles-includes.tex
# Find all non-articles, and generate \cite{} commands for them in
# numapde-bibliography-dump-nonarticles-includes.tex
awk -v FS=[{,] '/^@[B-Z]/ {print "\\nocite{" $2 "}"}' ../numapde.bib > numapde-bibliography-dump-nonarticles-includes.tex
# Compile the articles and non-articles bibliography dumps
latexmk -pdf -interaction=batchmode numapde-bibliography-dump-articles.tex
latexmk -pdf -interaction=batchmode numapde-bibliography-dump-nonarticles.tex
% Make sure all entries in the .bib resources are cited
\nocite{*}
% Input the generated includes file
\IfFileExists{numapde-bibliography-dump-articles-includes.tex}{\input{numapde-bibliography-dump-articles-includes.tex}}{Run the \file{go.sh} script to generate the includes file.}
% Print the bibliography, by type
\section{@ARTICLE}
\numapdeprintbibliography[type=article,heading=none]
% Generated by numapde-prepare-manuscript.py on 20200428-22:43:11
% numapde-prepare-manuscript.py --infile numapde-bibliography-dump.yaml --outname numapde-bibliography-dump-articles --nosuffix --main numapde-bibliography-dump-articles-main.tex --nocopy
% Generated by numapde-prepare-manuscript.py on 20200612-16:12:21
% numapde-prepare-manuscript.py --infile numapde-bibliography-dump.yaml --outname numapde-bibliography-dump-articles --nosuffix --main numapde-bibliography-dump-articles-main.tex
% A LaTeX template for the numapde-preprint class
\documentclass{numapde-preprint}
......@@ -49,7 +49,7 @@ In order to do so, you may want to try the following commands:
\begin{enumerate}
\item \verb|DIR=$(kpsewhich -var-value TEXMFHOME)|
\item \verb|export TEXMFHOME=$DIR:|
\item \verb|echo extra_mem_bot = 2000000 > $DIR/texmf.cnf|
\item \verb|echo extra_mem_bot = 6000000 > $DIR/texmf.cnf|
\end{enumerate}
See also \url{https://tex.stackexchange.com/questions/67014/}.\end{abstract}
......
% Make sure all entries in the .bib resources are cited
\nocite{*}
% Input the generated includes file
\IfFileExists{numapde-bibliography-dump-nonarticles-includes.tex}{\input{numapde-bibliography-dump-nonarticles-includes.tex}}{Run the \file{go.sh} script to generate the includes file.}
% Print the bibliography, by type
\section{@BOOK}
\numapdeprintbibliography[type=book,heading=none]
......
% Generated by numapde-prepare-manuscript.py on 20200428-22:43:03
% numapde-prepare-manuscript.py --infile numapde-bibliography-dump.yaml --outname numapde-bibliography-dump-nonarticles --nosuffix --main numapde-bibliography-dump-nonarticles-main.tex --nocopy
% Generated by numapde-prepare-manuscript.py on 20200612-16:12:21
% numapde-prepare-manuscript.py --infile numapde-bibliography-dump.yaml --outname numapde-bibliography-dump-nonarticles --nosuffix --main numapde-bibliography-dump-nonarticles-main.tex
% A LaTeX template for the numapde-preprint class
\documentclass{numapde-preprint}
......@@ -49,7 +49,7 @@ In order to do so, you may want to try the following commands:
\begin{enumerate}
\item \verb|DIR=$(kpsewhich -var-value TEXMFHOME)|
\item \verb|export TEXMFHOME=$DIR:|
\item \verb|echo extra_mem_bot = 2000000 > $DIR/texmf.cnf|
\item \verb|echo extra_mem_bot = 6000000 > $DIR/texmf.cnf|
\end{enumerate}
See also \url{https://tex.stackexchange.com/questions/67014/}.\end{abstract}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment