diff --git a/R/ebook.R b/R/ebook.R index 809a6854..c9dc5855 100644 --- a/R/ebook.R +++ b/R/ebook.R @@ -54,13 +54,15 @@ epub_book <- function() { system.file(file.path("pandoc", "translations.lua"), package = "INBOmd") ) validate_doi(ifelse(has_name(fm, "doi"), fm$doi, "1.1/1")) - if (has_name(fm, "public_report") && !fm$public_report) { - c( - nl = "onuitgeven rapport", en = "unpublished report", - fr = "rapport non publi\u00e9" - )[lang] |> - pandoc_variable_arg(name = "doi") |> - c(pandoc_variable_arg("nocolophon", "true")) |> + if ( + !has_name(fm, "doi") && has_name(fm, "public_report") && !fm$public_report + ) { + Sys.time() |> + format("%Y-%m-%d %H:%M:%S") |> + c(fm$reportnr) |> + tail(1) |> + pandoc_variable_arg(name = "pagefootmessage") |> + c(pandoc_variable_arg("internal", "true")) |> c(pandoc_args) -> pandoc_args } else { c(fm$doi, "!!! missing DOI !!!") |> diff --git a/R/gitbook.R b/R/gitbook.R index 3ddd699f..a6af9a26 100644 --- a/R/gitbook.R +++ b/R/gitbook.R @@ -21,10 +21,6 @@ gitbook <- function(code_folding = c("none", "show", "hide")) { yaml_front_matter() |> validate_persons(reviewer = TRUE) |> validate_rightsholder() -> fm - assert_that( - !has_name(fm, "nocolophon"), msg = "Legacy option `nocolophon` detected. - Please use the `public_report` option." - ) style <- ifelse(has_name(fm, "style"), fm$style, "INBO") assert_that(length(style) == 1) assert_that( @@ -67,13 +63,20 @@ gitbook <- function(code_folding = c("none", "show", "hide")) { system.file(file.path("pandoc", "translations.lua"), package = "INBOmd") ) validate_doi(ifelse(has_name(fm, "doi"), fm$doi, "1.1/1")) - if (has_name(fm, "public_report") && !fm$public_report) { - c( - nl = "onuitgeven rapport", en = "unpublished report", - fr = "rapport non publi\u00e9" - )[lang] |> + if ( + !has_name(fm, "doi") && has_name(fm, "public_report") && !fm$public_report + ) { + Sys.time() |> + format("%Y-%m-%d %H:%M:%S") |> + c(fm$reportnr) |> + tail(1) |> + pandoc_variable_arg(name = "pagefootmessage") |> + c(pandoc_variable_arg("internal", "true")) |> + c(pandoc_args) -> pandoc_args + } else { + c(fm$doi, "!!! missing DOI !!!") |> + head(1) |> pandoc_variable_arg(name = "doi") |> - c(pandoc_variable_arg("nocolophon", "true")) |> c(pandoc_args) -> pandoc_args } diff --git a/R/pdf_report.R b/R/pdf_report.R index a11b2c0b..2555eac7 100644 --- a/R/pdf_report.R +++ b/R/pdf_report.R @@ -25,9 +25,10 @@ pdf_report <- function( yaml_front_matter() |> validate_persons(reviewer = TRUE) |> validate_rightsholder() -> fm - assert_that( - !has_name(fm, "nocolophon"), msg = "Legacy option `nocolophon` detected. - Please use the `public_report` option." + stopifnot( + "`internal` option in yaml is not allowed" = !has_name(fm, "internal"), + "`pagefootmessage` option in yaml is not allowed" = + !has_name(fm, "pagefootmessage") ) floatbarrier <- ifelse(has_name(fm, "floatbarrier"), fm$floatbarrier, NA) assert_that(length(floatbarrier) == 1) @@ -104,13 +105,15 @@ pdf_report <- function( ) args <- args[args != ""] validate_doi(ifelse(has_name(fm, "doi"), fm$doi, "1.1/1")) - if (has_name(fm, "public_report") && !fm$public_report) { - c( - nl = "onuitgeven rapport", en = "unpublished report", - fr = "rapport non publi\u00e9" - )[lang] |> - pandoc_variable_arg(name = "doi") |> - c(pandoc_variable_arg("nocolophon", "true")) |> + if ( + !has_name(fm, "doi") && has_name(fm, "public_report") && !fm$public_report + ) { + Sys.time() |> + format("%Y-%m-%d %H:%M:%S") |> + c(fm$reportnr) |> + tail(1) |> + pandoc_variable_arg(name = "pagefootmessage") |> + c(pandoc_variable_arg("internal", "true")) |> c(args) -> args } else { c(fm$doi, "!!! missing DOI !!!") |> @@ -119,7 +122,6 @@ pdf_report <- function( c(args) -> args } - if (has_name(fm, "lof") && isTRUE(fm$lof)) { args <- c(args, pandoc_variable_arg("lof", TRUE)) } diff --git a/inst/local_tex/tex/latex/inborapport_2015/flanders_report.sty b/inst/local_tex/tex/latex/inborapport_2015/flanders_report.sty index f8da7f1e..eb8c246a 100644 --- a/inst/local_tex/tex/latex/inborapport_2015/flanders_report.sty +++ b/inst/local_tex/tex/latex/inborapport_2015/flanders_report.sty @@ -14,8 +14,12 @@ \fancyhead{} \fancyfoot{} \fancyfoot[LO, RE]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\href{https://www.vlaanderen.be/en}{www.vlaanderen.be}}}} -\fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \pagename \textbf{ \thepage} / \textbf{\pageref*{LastPage}}}} -\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\@doi}}} +\fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \pagename~\textbf{\thepage}~/~\textbf{\pageref*{LastPage}}}} +\ifnum \@public = 0 +\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@pagefootmessage}} +\else +\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@doi}} +\fi \renewcommand{\footrule}{\vbox to 8pt{\hbox to\headwidth{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont\leaders\hbox{/}\hfill}\vss}} \renewcommand{\headrulewidth}{0pt} @@ -25,8 +29,12 @@ to\headwidth{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter} \fancyhead{} \fancyfoot{} \fancyfoot[LO, RE]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\href{https://www.vlaanderen.be/en}{www.vlaanderen.be}}}} - \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\@doi}}} - \fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \pagename \textbf{ \thepage} / \textbf{\pageref*{LastPage}}}} + \ifnum \@public = 0 + \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@pagefootmessage}} + \else + \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@doi}} + \fi + \fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \pagename~\textbf{ \thepage}~/~\textbf{\pageref*{LastPage}}}} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} } diff --git a/inst/local_tex/tex/latex/inborapport_2015/flanders_report_generic.sty b/inst/local_tex/tex/latex/inborapport_2015/flanders_report_generic.sty index 0dad1d8b..457e4979 100644 --- a/inst/local_tex/tex/latex/inborapport_2015/flanders_report_generic.sty +++ b/inst/local_tex/tex/latex/inborapport_2015/flanders_report_generic.sty @@ -23,9 +23,15 @@ \def\subtitle#1{\def\@subtitle{#1}} \subtitle{} +\def\pagefootmessage#1{\def\@pagefootmessage{#1}} +\pagefootmessage{} + \def\colophon#1{\def\@colophon{#1}} \colophon{1} +\def\public#1{\def\@public{#1}} +\public{1} + \def\colofonauthor#1{\def\@colofonauthor{#1}} \colofonauthor{} @@ -501,6 +507,15 @@ \addto\extrasfrench{% \def\cfseries{Rapports de \cfinbo}% } +\addto\extrasdutch{% + \def\cfiseries{Interne rapporten van het \cfinbo}% +} +\addto\extrasenglish{% + \def\cfiseries{Internal reports of the \cfinbo}% +} +\addto\extrasfrench{% + \def\cfiseries{Rapports internes de \cfinbo}% +} \addto\extrasdutch{% \def\cfcity{Brussel}% } @@ -591,11 +606,18 @@ \textbf{e-mail:} \\ \@corresponding + \ifnum \@public = 0 + \textbf{\cfcitation} \\ \@shortauthor~(\@year). \@citetitle. \cfiseries~\@year~(\@reportnr). \cfinbo, \cfcity. + + \textbf{\cfiseries~\@year~(\@reportnr)} + \else \textbf{\cfcitation} \\ \@shortauthor~(\@year). \@citetitle. \cfseries~\@year~(\@reportnr). \cfinbo, \cfcity. DOI: \@doi \textbf{\@depotnr} \\ \textbf{\cfseries~\@year~(\@reportnr)} \\ \textbf{ISSN: 1782-9054} + \fi + \textbf{\cfvu} \\ Maurice Hoffmann @@ -635,7 +657,9 @@ \vspace{144pt} \hspace{10mm}\parbox[t]{140mm}{ - \fontsize{\fontsizeordernr}{\fontsizeordernrinter}\selectfont \raggedright \mainColourURL{\@doi} \\ \@ordernumber + \fontsize{\fontsizeordernr}{\fontsizeordernrinter}\selectfont \raggedright + \ifnum \@public > 1 \@doi \\ \fi + \@ordernumber } \vfill diff --git a/inst/local_tex/tex/latex/inborapport_2015/flandre_report.sty b/inst/local_tex/tex/latex/inborapport_2015/flandre_report.sty index 9e36ed42..90ccbbf0 100644 --- a/inst/local_tex/tex/latex/inborapport_2015/flandre_report.sty +++ b/inst/local_tex/tex/latex/inborapport_2015/flandre_report.sty @@ -14,8 +14,12 @@ \fancyhead{} \fancyfoot{} \fancyfoot[LO, RE]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\href{https://www.vlaanderen.be/fr}{www.vlaanderen.be}}}} -\fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \pagename \textbf{ \thepage} / \textbf{\pageref*{LastPage}}}} -\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\@doi}}} +\fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \pagename~\textbf{\thepage}~/~\textbf{\pageref*{LastPage}}}} +\ifnum \@public = 0 +\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@pagefootmessage}} +\else +\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@doi}} +\fi \renewcommand{\footrule}{\vbox to 8pt{\hbox to\headwidth{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont\leaders\hbox{/}\hfill}\vss}} \renewcommand{\headrulewidth}{0pt} @@ -25,8 +29,12 @@ to\headwidth{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter} \fancyhead{} \fancyfoot{} \fancyfoot[LO, RE]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\href{https://www.vlaanderen.be/fr}{www.vlaanderen.be}}}} - \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\@doi}}} - \fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \pagename \textbf{ \thepage} / \textbf{\pageref*{LastPage}}}} + \ifnum \@public = 0 + \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@pagefootmessage}} + \else + \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@doi}} + \fi + \fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \pagename~\textbf{\thepage}~/~\textbf{\pageref*{LastPage}}}} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} } diff --git a/inst/local_tex/tex/latex/inborapport_2015/inbo_report.sty b/inst/local_tex/tex/latex/inborapport_2015/inbo_report.sty index b533acef..578e47f6 100644 --- a/inst/local_tex/tex/latex/inborapport_2015/inbo_report.sty +++ b/inst/local_tex/tex/latex/inborapport_2015/inbo_report.sty @@ -14,8 +14,12 @@ \fancyhead{} \fancyfoot{} \fancyfoot[LO, RE]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\href{https://www.vlaanderen.be/inbo}{vlaanderen.be/inbo}}}} -\fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont Pagina \textbf{\thepage} van \textbf{\pageref*{LastPage}}}} -\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\@doi}}} +\fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont Pagina~\textbf{\thepage}~van~\textbf{\pageref*{LastPage}}}} +\ifnum \@public = 0 +\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@pagefootmessage}} +\else +\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@doi}} +\fi \renewcommand{\footrule}{\vbox to 8pt{\hbox to\headwidth{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont\leaders\hbox{/}\hfill}\vss}} \renewcommand{\headrulewidth}{0pt} @@ -25,8 +29,12 @@ to\headwidth{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter} \fancyhead{} \fancyfoot{} \fancyfoot[LO, RE]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\href{https://www.vlaanderen.be/inbo}{vlaanderen.be/inbo}}}} - \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\@doi}}} - \fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont Pagina \textbf{\thepage} van \textbf{\pageref*{LastPage}}}} + \ifnum \@public = 0 + \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@pagefootmessage}} + \else + \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@doi}} + \fi + \fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont Pagina~\textbf{\thepage}~van~\textbf{\pageref*{LastPage}}}} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} } diff --git a/inst/local_tex/tex/latex/inborapport_2015/vlaanderen_report.sty b/inst/local_tex/tex/latex/inborapport_2015/vlaanderen_report.sty index fbf52c4a..67a1b28f 100644 --- a/inst/local_tex/tex/latex/inborapport_2015/vlaanderen_report.sty +++ b/inst/local_tex/tex/latex/inborapport_2015/vlaanderen_report.sty @@ -13,8 +13,12 @@ \fancyhead{} \fancyfoot{} \fancyfoot[LO, RE]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\href{https://www.vlaanderen.be}{www.vlaanderen.be}}}} -\fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont Pagina \textbf{\thepage} van \textbf{\pageref*{LastPage}}}} -\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\@doi}}} +\fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont Pagina~\textbf{\thepage}~van~\textbf{\pageref*{LastPage}}}} +\ifnum \@public = 0 +\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@pagefootmessage}} +\else +\fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@doi}} +\fi \renewcommand{\footrule}{\vbox to 8pt{\hbox to\headwidth{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont\leaders\hbox{/}\hfill}\vss}} \renewcommand{\headrulewidth}{0pt} @@ -24,8 +28,12 @@ to\headwidth{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter} \fancyhead{} \fancyfoot{} \fancyfoot[LO, RE]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\href{https://www.vlaanderen.be}{www.vlaanderen.be}}}} - \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \mainColourURL{\@doi}}} - \fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont Pagina \textbf{\thepage} van \textbf{\pageref*{LastPage}}}} + \ifnum \@public = 0 + \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@pagefootmessage}} + \else + \fancyfoot[CE, CO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont \@doi}} + \fi + \fancyfoot[LE, RO]{{\color{main.colour}\fontsize{\fontsizefooter}{\fontsizefooterinter}\selectfont Pagina~\textbf{\thepage}~van~\textbf{\pageref*{LastPage}}}} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} } diff --git a/inst/pandoc/inbo_rapport.tex b/inst/pandoc/inbo_rapport.tex index 682f6b69..a0ad2fe6 100644 --- a/inst/pandoc/inbo_rapport.tex +++ b/inst/pandoc/inbo_rapport.tex @@ -117,6 +117,8 @@ $if(hyphentation)$\hyphenation{$hyphentation$}$endif$ $if(nocolophon)$\colophon{0}$else$\colophon{1}$endif$ +$if(internal)$\public{0}$else$\public{1}$endif$ +$if(pagefootmessage)$\pagefootmessage{$pagefootmessage$}$endif$ $for(header-includes)$ $header-includes$ diff --git a/inst/pandoc/translations.lua b/inst/pandoc/translations.lua index 41edff6f..2b6048ad 100644 --- a/inst/pandoc/translations.lua +++ b/inst/pandoc/translations.lua @@ -12,6 +12,7 @@ local function translation(lang) cover = "Foto cover", depotnr = "Depotnummer", export = "Exporteer referentie als", + iseries = "Interne rapporten van het", license_pre = "Dit werk valt onder een", license = "Creative Commons Naamsvermelding 4.0 Internationaal-licentie", location = "Vestiging", @@ -20,7 +21,6 @@ local function translation(lang) ordernr = "Opdrachtnummer", reviewer = "Nagelezen door", series = "Rapporten van het", - unpublished = "Onuitgegeven rapport", vu = "Verantwoordelijke uitgever", year = "Gepubliceerd in" } @@ -35,6 +35,7 @@ local function translation(lang) country = ", Belgique", cover = "Photo de couverture", depotnr = "Numéro de dépôt", + iseries = "Rapports internes de", export = "Exporter la référence à", license_pre = "Ce rapport est sous licence", license = "Creative Commons Attribution 4.0 International Licence", @@ -44,7 +45,6 @@ local function translation(lang) ordernr = "Numéro de commande", reviewer = "Examiné par", series = "Rapports de", - unpublished = "Rapport non publié", vu = "Éditeur responsable", year = "Publié en" } @@ -60,6 +60,7 @@ local function translation(lang) country = ", Belgium", depotnr = "Deposit number", export = "Export reference to", + iseries = "Internal reports of the", license_pre = "This work is licensed under a", license = "Creative Commons Attribution 4.0 International License", location = "Location", @@ -68,7 +69,6 @@ local function translation(lang) ordernr = "Order number", reviewer = "Reviewed by", series = "Reports of the", - unpublished = "Unpublished report", vu = "Responsible publisher", year = "Published during" } diff --git a/inst/template/report.epub3 b/inst/template/report.epub3 index b5dbae2e..f2564e10 100644 --- a/inst/template/report.epub3 +++ b/inst/template/report.epub3 @@ -67,7 +67,6 @@ $if(titlepage)$
$depotnr$
+ $if(internal)$
+
$translation.iseries$ $translation.name$
$else$
- !!!! ONTBREKEND: depotnr !!!!
+ $if(depotnr)$
+
$depotnr$
+ $else$
+
$translation.vu$:
Maurice Hoffmann
diff --git a/inst/template/report.html b/inst/template/report.html
index 3412f4cb..75e337eb 100644
--- a/inst/template/report.html
+++ b/inst/template/report.html
@@ -131,7 +131,6 @@
$depotnr$
+ $if(internal)$
+
$translation.iseries$ $translation.name$
$else$
- !!!! ONTBREKEND: depotnr !!!!
+ $if(depotnr)$
+
$depotnr$
+ $else$
+
$translation.vu$:
Maurice Hoffmann
@@ -337,7 +341,7 @@
-$shortauthor$ ($year$). $doi$ +$shortauthor$ ($year$). $if(doi)$$doi$$endif$ diff --git a/man-roxygen/yaml_report.R b/man-roxygen/yaml_report.R index 9cbf86b9..c7c3b978 100644 --- a/man-roxygen/yaml_report.R +++ b/man-roxygen/yaml_report.R @@ -9,9 +9,10 @@ #' #' - `public_report`: A logical value indicating whether the report will be #' published or not. -#' Setting `public_report: FALSE` will remove the colophon and replace the -#' DOI with a text indicating the report is unpublished. +#' Setting `public_report: FALSE` will alter the colophon. #' Omitting `public_report` is equivalent to `public_report: TRUE`. +#' An internal report can't have a DOI. +#' Setting a DOI is equivalent to `public_report: TRUE`. #' - **`reviewer`**: names of the reviewers. #' Use the same syntax as for the authors. #' - **`year`**: year of publication. diff --git a/man/epub_book.Rd b/man/epub_book.Rd index c6aa9fb2..1f840178 100644 --- a/man/epub_book.Rd +++ b/man/epub_book.Rd @@ -72,9 +72,10 @@ publication. \itemize{ \item \code{public_report}: A logical value indicating whether the report will be published or not. -Setting \code{public_report: FALSE} will remove the colophon and replace the -DOI with a text indicating the report is unpublished. +Setting \code{public_report: FALSE} will alter the colophon. Omitting \code{public_report} is equivalent to \code{public_report: TRUE}. +An internal report can't have a DOI. +Setting a DOI is equivalent to \code{public_report: TRUE}. \item \strong{\code{reviewer}}: names of the reviewers. Use the same syntax as for the authors. \item \strong{\code{year}}: year of publication. diff --git a/man/gitbook.Rd b/man/gitbook.Rd index ac590e86..a56dd372 100644 --- a/man/gitbook.Rd +++ b/man/gitbook.Rd @@ -79,9 +79,10 @@ publication. \itemize{ \item \code{public_report}: A logical value indicating whether the report will be published or not. -Setting \code{public_report: FALSE} will remove the colophon and replace the -DOI with a text indicating the report is unpublished. +Setting \code{public_report: FALSE} will alter the colophon. Omitting \code{public_report} is equivalent to \code{public_report: TRUE}. +An internal report can't have a DOI. +Setting a DOI is equivalent to \code{public_report: TRUE}. \item \strong{\code{reviewer}}: names of the reviewers. Use the same syntax as for the authors. \item \strong{\code{year}}: year of publication. diff --git a/man/pdf_report.Rd b/man/pdf_report.Rd index cd7f5382..10a06d5c 100644 --- a/man/pdf_report.Rd +++ b/man/pdf_report.Rd @@ -85,9 +85,10 @@ publication. \itemize{ \item \code{public_report}: A logical value indicating whether the report will be published or not. -Setting \code{public_report: FALSE} will remove the colophon and replace the -DOI with a text indicating the report is unpublished. +Setting \code{public_report: FALSE} will alter the colophon. Omitting \code{public_report} is equivalent to \code{public_report: TRUE}. +An internal report can't have a DOI. +Setting a DOI is equivalent to \code{public_report: TRUE}. \item \strong{\code{reviewer}}: names of the reviewers. Use the same syntax as for the authors. \item \strong{\code{year}}: year of publication.