Bring the knitr paper template up to date with the typography work
on master. The preamble now mirrors master's paper_template/text.tex:
- \DocumentMetadata{pdfstandard=ua-2} + tagpdf instead of the old
memoir / pdfmanagement-only setup
- article class with cdsc-paper.sty (the article-class replacement
for cdsc-memoir.sty added on master)
- fontspec with EB Garamond and TeX Gyre Heros, plus
\defaultfontfeatures{Ligatures=TeX} so --, ---, ``, '' work
- Makefile builds with latexmk -lualatex instead of -pdf
The knitr-specific bits are preserved unchanged:
- <<init>>= chunk for knit_hooks and resources/preamble.R
- <<test_table>>= chunk demonstrating kable inside a table float
- %.tex: %.Rtex pattern rule for knit() in the Makefile
verapdf --flavour ua2: 0 failures, 1723 passed rules.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace the individual new_knitr_document, new_tex_assignment, and
new_tex_letter scripts with a single new_tex_document script that takes
a document type as its first argument. Fix bugs present in all scripts:
unquoted variables, TMPDIR name collision, missing existence checks, and
mktemp running unconditionally. Add cdsc_tex_aliases.sh for backwards
compatibility with old script names. Add rename_tex_to_dirname script
(moved from ~/bin). Update README and wiki page to reflect new setup.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Newer knitr injects \usepackage[]{xcolor} instead of \usepackage[]{color},
so the old hook never matched and dvipsnames colors (e.g. Blue) were undefined.
- removed article-1 form since this is never used
- renamed styles as cdsc-article and cdsc-memo
- added documentation to the text.tex file
- copied similar code out of the chapterstyle definitions
- rebranded things so they are now cdsc-memoir instead of mako-mem