From a45b39d7995e4c0b57272d4fc286eb54e02b9c70 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 9 Jun 2024 12:18:06 +0100 Subject: Unified configuration for book and notes --- structure/book/00-preamble.md | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 structure/book/00-preamble.md (limited to 'structure/book/00-preamble.md') diff --git a/structure/book/00-preamble.md b/structure/book/00-preamble.md new file mode 100644 index 0000000..fea2bc0 --- /dev/null +++ b/structure/book/00-preamble.md @@ -0,0 +1,53 @@ + + + + + +```{r echo=FALSE, results='asis'} +if (knitr::is_html_output()) { + cat('# Início {#index .unnumbered}') + cat("\n") + cat('') + cat("\n") + cat("

Sobre

") + cat("\n") + cat('') + cat(readLines('DISCLAIMER'), sep='\n') + cat('') + cat('

') + cat('Livro Vivo - Versão ') + cat(readLines('.metadata/revision.txt'), sep='\n') + cat(' - compilada em ') + cat(readLines('.metadata/date.txt'), sep='\n') + cat('.') + cat('
') + cat('Versões anteriores disponíveis no arquivo.') + cat('

') + cat(readLines('snippets/project.txt')) + cat(' - ') + cat(readLines('snippets/volume.txt')) + cat('
') + cat('Publicado por ') + cat(rmarkdown::metadata$publisher) + cat('
') + cat('Publicado em ') + cat(readLines('snippets/url.txt'), sep='\n') + cat('

') + cat(readLines('snippets/keywords.txt'), sep='\n') + cat("\n") + cat("

Créditos

") + cat("\n") + cat(paste(rmarkdown::metadata$title, "
", "Copyleft ©", readLines('.metadata/year.txt'), rmarkdown::metadata$author, readLines('snippets/contact.txt'), sep=' ')) + cat('

') + cat(readLines('LICENSE'), sep='\n') + cat('

') + cat(readLines('snippets/cover.txt'), sep='\n') + cat("

Versão PDF

") + cat("\n") + cat('Baixe a versão PDF aqui, ou navegue abaixo:') + cat("\n") + cat('

') + cat('') + cat('

') +} +``` -- cgit v1.2.3