Changelog
Source:NEWS.md
zueridown (development version)
The visual snapshot tests render hand-written German sample reports, with column wrapping and a page break in two columns, full-width tables, and the photo cover on its own page.
zueridown requires R >= 4.0.
In two-column reports, the rules around a figure caption span the column instead of the page width.
New RStudio template “zueridown two-column document with graphics”, a two-column report with figures and captions.
cd_format_date()writes German dates by default, as documented, such as1. Januar 2024, and no longer needs a German locale. Language codes with an underscore, such as"de_CH", count as German.cd_knit_chunk_opts()passes its argumentsfig.pos,cache,message,echoandtidyon to knitr, instead of ignoring them.Inline R code in
header-includesis evaluated again, instead of reaching LaTeX verbatim.A font folder whose path LaTeX cannot handle, such as
OneDrive - Acme, Incwith its,, now stops the render with an error that names the folder.?zueridownlists the characters, which also apply to the folder where the package is installed.The message about a missing preferred font names the missing font files if only some of its faces are found. If the option
zueridown.font_pathnames several folders, the message about a missing font lists them all instead of failing.With LuaLaTeX, a font named in the document is also found in the TeX installation. A face in
mainfontoptionsgiven as a font file with its folder, such asBoldFont=fonts/Bold.otf, no longer counts as missing. A font file named inmainfontis not looked up in thezueridown.font_pathfolder: give its folder asPath=inmainfontoptions.The licensed font is now also found when it is installed for the current user on Windows, and it is then loaded from its files. The files must be named after the font’s faces, such as
HelveticaNeueLTPro-Md.ttfandHelveticaNeueLTPro-Hv.ttf. The new optionzueridown.font_pathnames another folder that holds files named this way. Otherwise, the font is used iffc-listlists it, which covers the installed fonts on Linux and macOS. Amainfontin the document or thezueridown.mainfontoption is looked up the same way. If it is not found, the default font is used instead, and a message names the missing font.The main font is now the licensed Helvetica Neue LT Pro, 65 Medium with 85 Heavy as bold, if all of these faces are installed. Otherwise the bundled TeX Gyre Heros is used, and a message names the fallback and explains how to install fonts. The message appears at the start of the render and again at its end, once the PDF is written. A
mainfontin the document or thezueridown.mainfontoption still takes precedence.The code shared with other indiedown template packages now comes from indiedown as the standalone file
R/import-standalone-indiedown.R. Update it withusethis::use_standalone("cynkra/indiedown", "indiedown").A skipped visual test no longer deletes the stored snapshots. The toolchain record lists the bundled font files with checksums. A GitHub Actions workflow runs R CMD check with the snapshot tests and fails if any test is skipped.
twocolumn: trueno longer breaksclassoption. Every class option from the document is now kept next totwocolumn, whereclassoption: landscapeused to reach LaTeX as the unknown optionlandscapetwocolumn.Documents with
twocolumn: trueno longer warn “Package multicol Warning: May not work with the twocolumn option”.multicolsis still available in two-column documents.The help pages use Markdown, so backticks and links render properly.
New visual snapshot tests render sample documents to PDF and compare each page byte for byte with stored images. The system fonts are hidden during the tests, and the toolchain is recorded next to the snapshots.
TeX Gyre Heros, the fallback main font, now ships with the package and is loaded by file name. Rendering no longer fails with “The font”TeX Gyre Heros” cannot be found” on a fresh TinyTeX installation. The font keeps its own license, the GUST Font License, see
inst/COPYRIGHTS.