aboutsummaryrefslogtreecommitdiff
path: root/structure
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-09-29 09:50:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-09-29 09:50:16 -0300
commitffa01f531edf80b57e992cbca6e2e04c4ab2b032 (patch)
tree2aa8fa547830ae7345635eebbd2ccb26bf737c48 /structure
parente94e689d8e8f7dc6e295cd7e957b93174051f525 (diff)
downloadbookup-ffa01f531edf80b57e992cbca6e2e04c4ab2b032.tar.gz
bookup-ffa01f531edf80b57e992cbca6e2e04c4ab2b032.tar.bz2
Fix: publisher metadata information on the PDF output
Diffstat (limited to 'structure')
-rw-r--r--structure/book/en/00-preamble.md12
-rw-r--r--structure/book/en/00-preamble.tex2
-rw-r--r--structure/book/pt-br/00-preamble.md12
-rw-r--r--structure/book/pt-br/00-preamble.tex2
4 files changed, 22 insertions, 6 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
+}
+```
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}}
diff --git a/structure/book/pt-br/00-preamble.md b/structure/book/pt-br/00-preamble.md
index f3738c6..b1a24e5 100644
--- a/structure/book/pt-br/00-preamble.md
+++ b/structure/book/pt-br/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('Publicado por ')
- cat(rmarkdown::metadata$publisher)
+ #cat(rmarkdown::metadata$publisher)
+ cat(readLines('snippets/publisher.txt'))
cat('<br/>')
cat('Publicado em ')
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
+}
+```
diff --git a/structure/book/pt-br/00-preamble.tex b/structure/book/pt-br/00-preamble.tex
index d558cc1..fc0f08b 100644
--- a/structure/book/pt-br/00-preamble.tex
+++ b/structure/book/pt-br/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{Publicado por \thanklesspublisher}
+\par\smallcaps{Publicado por \protect\input{snippets/publisher.txt}}
\par\smallcaps{\protect\input{snippets/url.txt}}