design/tpl: Introduce bibliography

This starts with the Hadamard Product as an example.  It also:

  - Configures BibLaTeX with biber.
  - Renames \undef, since BibLaTeX apparently defines it.
  - Redefines the citation and url colors, since they're bright and ugly.
master
Mike Gerwitz 2021-05-26 13:04:55 -04:00
parent e07887f8b5
commit 9c72d397d4
8 changed files with 35 additions and 11 deletions

View File

@ -11,6 +11,12 @@
*.out
*.toc
# BibLaTeX
*.bbl
*.bcf
*.blg
*.run.xml
# Index
*.idx
*.ilg

View File

@ -1,5 +1,5 @@
inputs := tpl.tex tpl.sty \
inputs := tpl.tex tpl.sty tpl.bib \
$(wildcard sec/*.tex)

View File

@ -10,8 +10,9 @@ sufficient to install all necessary dependencies:
```
$ apt install --no-recommends \
make latexmk \
texlive-latex-extra texlive-fonts-extra texlive-science
make latexmk biber \
texlive-latex-extra texlive-fonts-extra texlive-bibtex-extra \
texlive-science
```
## Building

View File

@ -632,8 +632,8 @@ We therefore establish a relationship to the notation of linear algebra
\begin{remark}[Logical Connectives With Matrix Notation]
From the definition of \axmref{class-mat-not},
it should be clear that the logical connective $\monoidop$ necessarily
acts like a Hadamard product with respect to how individual elements are
combined.
acts like a Hadamard product\cite{wp:hadamard-product} with respect to
how individual elements are combined.
\end{remark}
\index{classification!intuition}

View File

@ -555,10 +555,10 @@ When $\len{K[J]}=1$
\end{equation}
We may optionally omit the domains as in the vector notation.
\indexsym\undef{undefined}
\indexsym\eleundef{undefined}
\index{undefined}
If a matrix is \emph{not} rectangular,
the symbol~$\undef$ can be used to explicitly denote that specific scalar
the symbol~$\eleundef$ can be used to explicitly denote that specific scalar
values are undefined;
this is useful when the matrix representation is desirable when
describing the transformation of non-rectangular data \emph{into}
@ -568,8 +568,8 @@ For example,
\begin{equation}
\begin{bmatrix}
0 & 1 & 2 \\
3 & 4 & \undef \\
5 & \undef & \undef
3 & 4 & \eleundef \\
5 & \eleundef & \eleundef
\end{bmatrix}_{\underset{k\in K_j}{j\in J}}
=
\Vector{\Vector{0,1,2},\Vector{3,4},\Vector{5}},

View File

@ -0,0 +1,8 @@
% TAME Programming Language Bibliography
@online{wp:hadamard-product,
organization = {Wikipedia},
title = {Hadamard product (matrices)},
url = {https://en.wikipedia.org/wiki/Hadamard_product_(matrices)},
date = {2020-05-26},
}

View File

@ -13,8 +13,11 @@
\usepackage[amsfonts,amssymb]{concmath} % Fonts used by the text
\usepackage{euler} % Concrete Mathematics
\usepackage{makeidx} % Indexing
\usepackage[backend=biber]{biblatex} % BibTeX replacement
\usepackage[colorlinks=true,
linkcolor=href,
citecolor=cite,
urlcolor=href,
draft=false]{hyperref} % Hyperlinks (even in draft mode)
\usepackage{xcolor} % Colors (for hyperlinks)
\usepackage{amsmath,amsthm} % AMS macros, including theorems
@ -24,6 +27,8 @@
\usepackage{manfnt} % Dangerous Bend symbols
\usepackage{rotating} % Rotating objects
\addbibresource{tpl.bib}
%%
@ -32,6 +37,7 @@
% Colors from Tango Icon Theme
% https://en.wikipedia.org/wiki/Tango_Desktop_Project
\definecolor{href}{HTML}{204a87}
\definecolor{cite}{HTML}{4e9a06}
@ -89,7 +95,7 @@
\newcommand\MFam[5]{\ensuremath{%
\Vector{{#1_{#2}}_#4}_{\underset{#4\in {#5_#2}}{#2\in #3}}
}}
\newcommand\undef{\boxtimes}
\newcommand\eleundef{\boxtimes}
% Variable subscripts
\let\varsubscript\imath

View File

@ -65,8 +65,11 @@
\input{sec/appendix-typesetting.tex}
\fi
% Ensure Copyright line does not show for Index
% Ensure Copyright line does not show
\cfoot[\thepage]{\thepage}
\printbibliography[heading=bibintoc]
\clearpage
\printindex