Debian Codegraph @

man/pandoc.title.return.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/pandoc.R
3 \name{pandoc.title.return}
4 \alias{pandoc.title.return}
5 \alias{pandoc.title}
6 \title{Create title block}
7 \usage{
8 pandoc.title.return(author = "", title = "", date = "")
9 }
10 \arguments{
11 \item{author}{character vector or semicolon delimited list of authors without line break}
12
13 \item{title}{character vector of lines of title or multiline string with \code{\\n} separators}
14
15 \item{date}{any string fit in one line}
16 }
17 \value{
18 By default this function outputs (see: \code{cat}) the result. If you would want to catch the result instead, then call the function ending in \code{.return}.
19 }
20 \description{
21 Creates a Pandoc's markdown style title block with optional author, title and date fields.
22 }
23 \examples{
24 pandoc.title('Tom', 'Render pandoc in R', '2012-05-16')
25 pandoc.title(c('Tom', 'Jerry'), 'Render pandoc in R', '2012-05-16')
26 pandoc.title('Tom; Jerry', 'Render pandoc in R', '2012-05-16')
27 pandoc.title('Tom; Jerry', c('Render', 'pandoc', 'in R'), '2012-05-16')
28 pandoc.title('Tom; Jerry', 'Render\n pandoc \n in R', '2012-05-16')
29
30 ## missing fields
31
32 pandoc.title('Tom; Jerry', 'Render pandoc in R')
33 pandoc.title('Tom; Jerry')
34 pandoc.title(title = 'Render pandoc in R', date= '2012-05-16')
35 }
36 \references{
37 John MacFarlane (2012): _Pandoc User's Guide_. \url{https://johnmacfarlane.net/pandoc/README.html}
38 }