From ffa01f531edf80b57e992cbca6e2e04c4ab2b032 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 29 Sep 2024 09:50:16 -0300 Subject: Fix: publisher metadata information on the PDF output --- structure/book/en/00-preamble.md | 12 ++++++++++-- structure/book/en/00-preamble.tex | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'structure/book/en') diff --git a/structure/book/en/00-preamble.md b/structure/book/en/00-preamble.md index b42f744..8746e47 100644 --- a/structure/book/en/00-preamble.md +++ b/structure/book/en/00-preamble.md @@ -1,4 +1,4 @@ - + @@ -30,7 +30,8 @@ if (knitr::is_html_output()) { cat(readLines('snippets/volume.txt')) cat('
') cat('Published by ') - cat(rmarkdown::metadata$publisher) + #cat(rmarkdown::metadata$publisher) + cat(readLines('snippets/publisher.txt')) cat('
') cat('Published at ') cat(readLines('snippets/url.txt'), sep='\n') @@ -53,3 +54,10 @@ if (knitr::is_html_output()) { cat('

') } ``` + + +```{r echo=FALSE, results='asis'} +if (knitr::is_latex_output()) { + # Your code here +} +``` diff --git a/structure/book/en/00-preamble.tex b/structure/book/en/00-preamble.tex index 91c84bc..d128ad1 100644 --- a/structure/book/en/00-preamble.tex +++ b/structure/book/en/00-preamble.tex @@ -37,7 +37,7 @@ Copyleft \copyright\ \input{.metadata/year.txt} \thanklessauthor\ \input{snippe % https://www.typeerror.org/docs/latex/_005cprotect \par\smallcaps{\protect\input{snippets/project.txt} - \protect\input{snippets/volume.txt}} -\par\smallcaps{Published by \thanklesspublisher} +\par\smallcaps{Published by \protect\input{snippets/publisher.txt}} \par\smallcaps{\protect\input{snippets/url.txt}} -- cgit v1.2.3