Makes a preamble for a LaTeX Document.
makePreamble(landscape = FALSE, wide = if (landscape) 279.4 else 215.9,
long = if (landscape) 215.9 else 279.4, geoLeft = "1mm",
geoRight = "1mm", geoTop = "1mm", geoBottom = "1mm",
documentclass = command("documentclass", args = "article"),
xcolorPackage = command("usepackage", options = list("usenames",
"dvispnames", "svgnames", "table"), args = "xcolor"),
geometryPackage = command("usepackage", options = list(left = geoLeft, top =
geoTop, bottom = geoBottom, right = geoRight), args = "geometry"),
geometry = command("geometry", args = list(paste0("papersize=", paste0("{",
wide, "mm", ",", long, "mm}")))), multirow = command("usepackage", args =
"multirow"), float = command("usepackage", args = "float"),
longtable = command("usepackage", args = "longtable"),
inputenc = command("usepackage", options = "utf8", args = "inputenc"),
fontenc = command("usepackage", options = "T1", args = "fontenc"),
morePreamble = NULL, ...)
if TRUE, default orientation is `landscape' not `portrait'
page width in mm
page lenth in mm
geometry package: left margin
geometry package: right margin
geometry package: top margin
geometry package: bottom margin
document class command
xcolor package command
geometry package command
geometry specification
multirow specification
float specification
longtable specification
input encoding
output encoding
additional preamble before beginning the document
ignored
character
# NOT RUN {
makePreamble()
# }
Run the code above in your browser using DataLab