```{r echo=FALSE, results='asis'} if (knitr::is_html_output()) { cat('# Start {#index .unnumbered}') cat("\n") cat('') cat("\n") cat("

About

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

') cat('Living Book - Version ') cat(readLines('.metadata/revision.txt'), sep='\n') cat(' - compiled at ') cat(readLines('.metadata/date.txt'), sep='\n') cat('.') cat('
') cat('Older versions available in the archive.') cat('
') cat('Notebook available here.') cat('

') cat(readLines('snippets/project.txt')) cat(' - ') cat(readLines('snippets/volume.txt')) cat('
') cat('Published by ') #cat(rmarkdown::metadata$publisher) cat(readLines('snippets/publisher.txt')) cat('
') cat('Published at ') cat(readLines('snippets/url.txt'), sep='\n') cat('

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

Credits

") 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("

PDF version

") cat("\n") cat('Download the PDF here, or browse it below:') cat("\n") cat('

') cat('') cat('

') } ``` ```{r echo=FALSE, results='asis'} if (knitr::is_latex_output()) { # By default, it outputs nothing. # An empty code block would return the string 'NULL' to LaTeX, which would then be printed. cat('') } ```