This function serves as wrapper to pdf_document
and creates a cheat sheet as PDF output.
Arguments
- highlight
character; syntax highlighting style. Supported styles include "default", "tango", "pygments", "kate" (default here), "monochrome", "espresso", "zenburn", and "haddock".
- font
character; default font is "Helvetica"; for members of the UHH there is also the font "TheSansUHH" available. If you want to use another font, simply use the setting "other" and replace the .ttf files for regular, italic, bold, and bold-italic font with your own files (should be named EXACTLY as the template font files).
- latex_engine
character; LaTeX engine for producing PDF output. Options are "pdflatex", "lualatex", and "xelatex" (default).
- ...
Further arguments passed to
pdf_document.
Value
R Markdown output format to pass to render
Details
Possible arguments for the YAML header are:
authorCharacter of single or multiple author(s), which will be shown in the footer together with the date and license.dateThe date, which is automatically set but you can also use a string such as "April 2020".fontsizeThe font size for the body text (default is 11pt).paramsFurther parameters that can be definedlogoPath to a logo for the footer (optional)licenseCharacter; the creative commons license displayed in the footer (optional); default is the "CC-BY-SA" licence; for more for more information on creative commons licenses, see https://creativecommons.org/licenses/.multicolsThe number of columns in the overall layout; you can choose any value > 1, default is 3.reduce_space_before_codelogical; defines whether the space before the code block (when echo =TRUE) should be reduced; this works only if code chunks are displayed, hence, default is set tofalse.col_titleHex decimal code of the title color (without the hashtag); default is '000000' for black.col_sectionsHex decimal code of the color of all (sub)section header color (without the hashtag); default is '000000' for black.col_codeHex decimal code of the inline code color (without the hashtag); default is '000000' for black.col_redboxHex decimal code of the red coloured textbox ( Called with the LaTeX commandredbox). Default is here 'bc0000'. Other colors that can be defined arecol_bluebox(forbluebox, default is '027BCB'),col_greenbox(forgreenbox, default is '7fa16a'),col_yellowbox(foryellowbox, default is 'eeb422'),col_graybox(forgraybox, default is '8c8c8c'),col_blackbox(forblackbox, default is '191919'), andcol_whitebox(forwhitebox, default is 'e0e0e0').
header-includesCustom additions to the header, before the\begin{document}statement.include-afterFor including additional LaTeX code before the\end{document}statement.
