feat: Add LaTeX Docker chapter; update metadata and previous chapters

This commit is contained in:
Payton Bates committed 2026-10-05 18:56:10 -04:00
1 parent 02189faab0
commit c9d06e0b5a
15 files changed
+212 -48

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
sample
*.pdf
+20
View File
@@ -0,0 +1,20 @@
FROM debian:trixie-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
lmodern \
latexmk \
&& rm -rf /var/lib/apt/lists/*
# Run as an unprivileged user; keep TeX's font cache out of the mounted folder.
RUN useradd --create-home --uid 1000 latex
ENV TEXMFVAR=/tmp/texmf-var
USER latex
WORKDIR /work
ENTRYPOINT ["latexmk", "-pdf", "-interaction=nonstopmode", "-halt-on-error"]
CMD ["hello.tex"]
+44
View File
@@ -0,0 +1,44 @@
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage[colorlinks=true]{hyperref}
\title{SSW 590 --- LaTeX Docker Test}
\author{Payton Bates and Victor Del Rio Foces}
\date{\today}
\begin{document}
\maketitle
\section{Purpose}
This document was compiled by pdf\LaTeX\ from TeX Live inside a Docker
container. Section~\ref{sec:checks} lists its features.
\section{Checks}\label{sec:checks}
\begin{itemize}
\item Mathematics: $e^{i\pi} + 1 = 0$ and
\begin{equation}
\sum_{k=1}^{n} k = \frac{n(n+1)}{2}.
\end{equation}
\item Cross-reference: Equation~\eqref{eq:area} resolves.
\item Table:
\end{itemize}
\begin{center}
\begin{tabular}{lr}
\toprule
Item & Value \\
\midrule
Engine & pdf\LaTeX \\
Distribution & TeX Live \\
\bottomrule
\end{tabular}
\end{center}
\begin{equation}\label{eq:area}
A = \pi r^2
\end{equation}
\end{document}