aboutsummaryrefslogtreecommitdiff
path: root/structure/book/en/00-preamble.md
diff options
context:
space:
mode:
Diffstat (limited to 'structure/book/en/00-preamble.md')
-rw-r--r--structure/book/en/00-preamble.md12
1 files changed, 10 insertions, 2 deletions
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 @@
-<!-- Bookdown HTML before-body file -->
+<!-- Bookdown before-body file -->
<!-- Hack to generate a proper cover and fix the missing index.html file -->
<!-- See https://stackoverflow.com/questions/58340924/bookdown-generates-index-file-with-a-chapter-title-instead-of-index-html-when -->
@@ -30,7 +30,8 @@ if (knitr::is_html_output()) {
cat(readLines('snippets/volume.txt'))
cat('<br/>')
cat('Published by ')
- cat(rmarkdown::metadata$publisher)
+ #cat(rmarkdown::metadata$publisher)
+ cat(readLines('snippets/publisher.txt'))
cat('<br/>')
cat('Published at ')
cat(readLines('snippets/url.txt'), sep='\n')
@@ -53,3 +54,10 @@ if (knitr::is_html_output()) {
cat('<br/><br/>')
}
```
+
+<!-- Sample block for the LaTeX output -->
+```{r echo=FALSE, results='asis'}
+if (knitr::is_latex_output()) {
+ # Your code here
+}
+```