From 7a735e89f1697084bdde88705810aa20ffb86acc Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sun, 28 Aug 2022 15:44:19 -0600 Subject: [PATCH] Bibliography stub with BibLaTeX and biber --- .gitignore | 4 ++++ BUILD.md | 3 ++- src/Analysis.tex | 2 ++ src/Glossary.tex | 2 +- src/Makefile | 11 +++++++++++ src/SNOUG.tex | 15 ++++++++++++--- 6 files changed, 32 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 5002b39..29af365 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,9 @@ SNOUG-web.pdf _minted-* *.aux *.bak0 +*.bbl +*.bcf +*.blg *.glo *.gls *.idx @@ -18,6 +21,7 @@ _minted-* *.old *.out *.pyg +*.run.xml *.swp *.toc *.xdv diff --git a/BUILD.md b/BUILD.md index 65b64d6..c9c0880 100644 --- a/BUILD.md +++ b/BUILD.md @@ -8,7 +8,8 @@ apt install texlive-latex-recommended texlive-xetex \ texlive-humanities \ python3-pygments \ - fonts-gemunu-libre fonts-linuxlibertine + fonts-gemunu-libre fonts-linuxlibertine \ + biber ``` diff --git a/src/Analysis.tex b/src/Analysis.tex index 03d40f6..d027226 100644 --- a/src/Analysis.tex +++ b/src/Analysis.tex @@ -14,6 +14,8 @@ \index{analysis}\index{AstroImageJ}\index{FITS} Analyze data with applications, such as \gls{AstroImageJ}. + +FITS files are commonly used in astronomy.\footnote{\scriptsize{\cite{Wiki22:fitswikipfreeencyc}}} \gls{AstroImageJ} can read \gls{FITS} format files. See \ref{fig:astroimagej}, page \pageref{fig:astroimagej}, diff --git a/src/Glossary.tex b/src/Glossary.tex index d723bdb..b66cfc6 100644 --- a/src/Glossary.tex +++ b/src/Glossary.tex @@ -3,7 +3,7 @@ %%%%%%%%%%% \newacronym[ description={Flexible Image Transport System is an open standard defining a digital file format useful for storage, transmission and processing of data: formatted as multi-dimensional arrays (for example a 2D image), or tables. FITS is the most commonly used digital file format in astronomy. The FITS standard was designed specifically for astronomical data, and includes provisions such as describing photometric and spatial calibration information, together with image origin metadata% - \footnote{\scriptsize{\url{https://en.wikipedia.org/w/index.php?title=FITS&oldid=1091431488}}} + \footnote{\scriptsize{\cite{Wiki22:fitswikipfreeencyc}}}% }] {FITS}{FITS}{Flexible Image Transport System} diff --git a/src/Makefile b/src/Makefile index 2628713..22fd4c2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,6 +8,13 @@ all: -no-pdf \ SNOUG.tex makeindex -s SNOUG.ist SNOUG.idx + xelatex \ + -halt-on-error \ + -shell-escape \ + -interaction=nonstopmode \ + -no-pdf \ + SNOUG.tex + biber SNOUG xelatex \ -halt-on-error \ -shell-escape \ @@ -23,11 +30,15 @@ all: clean: rm -fr _minted-* rm -f *.aux + rm -f *.bbl + rm -f *.bcf + rm -f *.blg rm -f *.glo rm -f *.idx rm -f *.lof rm -f *.log rm -f *.out + rm -f *.run.xml rm -f *.toc rm -f *.xdv rm -f *.pdf diff --git a/src/SNOUG.tex b/src/SNOUG.tex index ed56439..6f295c8 100644 --- a/src/SNOUG.tex +++ b/src/SNOUG.tex @@ -110,15 +110,14 @@ leftmargin=1cm,rightmargin=1cm \usepackage[english]{babel} \usepackage{datetime} % Docs: /usr/share/doc/texlive-doc/latex/datetime/datetime.pdf -\usepackage{ucs} +%\usepackage{ucs} % incompatible with biblatex %%% PDFLATEX %%% \usepackage{etex} %%% Not all features are used in XeTeX \usepackage[protrusion,babel,final]{microtype} -%%% Conflicts with package fontspec -%\usepackage[utf8x]{inputenc} +\usepackage[utf8x]{inputenc} % Docs: /usr/share/doc/texlive-humanities-doc/latex/ledmac/ledmac.pdf %\usepackage{eledmac} @@ -169,6 +168,11 @@ leftmargin=1cm,rightmargin=1cm \setlength{\footmarkwidth}{3.5em} %%% END FOOTNOTES %%% +%%% BIBLIOGRAPHY %%% +\usepackage[style=verbose]{biblatex} +\addbibresource{SNOUG.bib} +%%% END BIBLIOGRAPHY %%% + %%% COLORS %%% \definecolor{jebba-purple}{cmyk}{0.40,0.70,0.00,0.43} \definecolor{jebba-dark-blue}{cmyk}{0.83 0.24 0.00 0.22} @@ -320,6 +324,11 @@ leftmargin=1cm,rightmargin=1cm \printnoidxglossaries %%% END GLOSSARY %%% +%%% BIBLIOGRAPHY %%% +\clearpage +\printbibliography +%%% END BIBLIOGRAPHY %%% + %%% INDEX %%% \clearpage \printindex