Created
January 21, 2023 08:14
-
-
Save technocrat/a00af3565ae3244829646f5c51ec11c7 to your computer and use it in GitHub Desktop.
Rmd output to tex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % Options for packages loaded elsewhere | |
| \PassOptionsToPackage{unicode}{hyperref} | |
| \PassOptionsToPackage{hyphens}{url} | |
| % | |
| \documentclass[ | |
| ignorenonframetext, | |
| ]{beamer} | |
| \usepackage{pgfpages} | |
| \setbeamertemplate{caption}[numbered] | |
| \setbeamertemplate{caption label separator}{: } | |
| \setbeamercolor{caption name}{fg=normal text.fg} | |
| \beamertemplatenavigationsymbolsempty | |
| % Prevent slide breaks in the middle of a paragraph | |
| \widowpenalties 1 10000 | |
| \raggedbottom | |
| \setbeamertemplate{part page}{ | |
| \centering | |
| \begin{beamercolorbox}[sep=16pt,center]{part title} | |
| \usebeamerfont{part title}\insertpart\par | |
| \end{beamercolorbox} | |
| } | |
| \setbeamertemplate{section page}{ | |
| \centering | |
| \begin{beamercolorbox}[sep=12pt,center]{part title} | |
| \usebeamerfont{section title}\insertsection\par | |
| \end{beamercolorbox} | |
| } | |
| \setbeamertemplate{subsection page}{ | |
| \centering | |
| \begin{beamercolorbox}[sep=8pt,center]{part title} | |
| \usebeamerfont{subsection title}\insertsubsection\par | |
| \end{beamercolorbox} | |
| } | |
| \AtBeginPart{ | |
| \frame{\partpage} | |
| } | |
| \AtBeginSection{ | |
| \ifbibliography | |
| \else | |
| \frame{\sectionpage} | |
| \fi | |
| } | |
| \AtBeginSubsection{ | |
| \frame{\subsectionpage} | |
| } | |
| \usepackage{amsmath,amssymb} | |
| \usepackage{iftex} | |
| \ifPDFTeX | |
| \usepackage[T1]{fontenc} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage{textcomp} % provide euro and other symbols | |
| \else % if luatex or xetex | |
| \usepackage{unicode-math} % this also loads fontspec | |
| \defaultfontfeatures{Scale=MatchLowercase} | |
| \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} | |
| \fi | |
| \usepackage{lmodern} | |
| \ifPDFTeX\else | |
| % xetex/luatex font selection | |
| \fi | |
| % Use upquote if available, for straight quotes in verbatim environments | |
| \IfFileExists{upquote.sty}{\usepackage{upquote}}{} | |
| \IfFileExists{microtype.sty}{% use microtype if available | |
| \usepackage[]{microtype} | |
| \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts | |
| }{} | |
| \makeatletter | |
| \@ifundefined{KOMAClassName}{% if non-KOMA class | |
| \IfFileExists{parskip.sty}{% | |
| \usepackage{parskip} | |
| }{% else | |
| \setlength{\parindent}{0pt} | |
| \setlength{\parskip}{6pt plus 2pt minus 1pt}} | |
| }{% if KOMA class | |
| \KOMAoptions{parskip=half}} | |
| \makeatother | |
| \usepackage{xcolor} | |
| \newif\ifbibliography | |
| \usepackage{color} | |
| \usepackage{fancyvrb} | |
| \newcommand{\VerbBar}{|} | |
| \newcommand{\VERB}{\Verb[commandchars=\\\{\}]} | |
| \DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}} | |
| % Add ',fontsize=\small' for more characters per line | |
| \usepackage{framed} | |
| \definecolor{shadecolor}{RGB}{248,248,248} | |
| \newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}} | |
| \newcommand{\AlertTok}[1]{\textcolor[rgb]{0.94,0.16,0.16}{#1}} | |
| \newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} | |
| \newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.77,0.63,0.00}{#1}} | |
| \newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} | |
| \newcommand{\BuiltInTok}[1]{#1} | |
| \newcommand{\CharTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} | |
| \newcommand{\CommentTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{#1}}} | |
| \newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} | |
| \newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} | |
| \newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}} | |
| \newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{#1}} | |
| \newcommand{\DecValTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} | |
| \newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} | |
| \newcommand{\ErrorTok}[1]{\textcolor[rgb]{0.64,0.00,0.00}{\textbf{#1}}} | |
| \newcommand{\ExtensionTok}[1]{#1} | |
| \newcommand{\FloatTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} | |
| \newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} | |
| \newcommand{\ImportTok}[1]{#1} | |
| \newcommand{\InformationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} | |
| \newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}} | |
| \newcommand{\NormalTok}[1]{#1} | |
| \newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.81,0.36,0.00}{\textbf{#1}}} | |
| \newcommand{\OtherTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{#1}} | |
| \newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{#1}}} | |
| \newcommand{\RegionMarkerTok}[1]{#1} | |
| \newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} | |
| \newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} | |
| \newcommand{\StringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} | |
| \newcommand{\VariableTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} | |
| \newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} | |
| \newcommand{\WarningTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} | |
| \usepackage{graphicx} | |
| \makeatletter | |
| \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} | |
| \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} | |
| \makeatother | |
| % Scale images if necessary, so that they will not overflow the page | |
| % margins by default, and it is still possible to overwrite the defaults | |
| % using explicit options in \includegraphics[width, height, ...]{} | |
| \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} | |
| % Set default figure placement to htbp | |
| \makeatletter | |
| \def\fps@figure{htbp} | |
| \makeatother | |
| \setlength{\emergencystretch}{3em} % prevent overfull lines | |
| \providecommand{\tightlist}{% | |
| \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} | |
| \setcounter{secnumdepth}{-\maxdimen} % remove section numbering | |
| \ifLuaTeX | |
| \usepackage{selnolig} % disable illegal ligatures | |
| \fi | |
| \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}} | |
| \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available | |
| \urlstyle{same} | |
| \hypersetup{ | |
| pdftitle={test}, | |
| pdfauthor={Asger Balsby Kromand}, | |
| hidelinks, | |
| pdfcreator={LaTeX via pandoc}} | |
| \title{test} | |
| \author{Asger Balsby Kromand} | |
| \date{2023-01-17} | |
| \begin{document} | |
| \frame{\titlepage} | |
| \begin{frame}{R Markdown} | |
| \protect\hypertarget{r-markdown}{} | |
| This is an R Markdown presentation. Markdown is a simple formatting | |
| syntax for authoring HTML, PDF, and MS Word documents. For more details | |
| on using R Markdown see xx. | |
| When you click the \textbf{Knit} button a document will be generated | |
| that includes both content as well as the output of any embedded R code | |
| chunks within the document. | |
| \end{frame} | |
| \begin{frame}{Slide with Bullets} | |
| \protect\hypertarget{slide-with-bullets}{} | |
| \begin{itemize} | |
| \tightlist | |
| \item | |
| Bullet 1 | |
| \item | |
| Bullet 2 | |
| \item | |
| Bullet 3 | |
| \end{itemize} | |
| \end{frame} | |
| \begin{frame}[fragile]{Slide with R Output} | |
| \protect\hypertarget{slide-with-r-output}{} | |
| \begin{Shaded} | |
| \begin{Highlighting}[] | |
| \FunctionTok{summary}\NormalTok{(cars)} | |
| \end{Highlighting} | |
| \end{Shaded} | |
| \begin{verbatim} | |
| ## speed dist | |
| ## Min. : 4.0 Min. : 2.00 | |
| ## 1st Qu.:12.0 1st Qu.: 26.00 | |
| ## Median :15.0 Median : 36.00 | |
| ## Mean :15.4 Mean : 42.98 | |
| ## 3rd Qu.:19.0 3rd Qu.: 56.00 | |
| ## Max. :25.0 Max. :120.00 | |
| \end{verbatim} | |
| \end{frame} | |
| \begin{frame}{Slide with Plot} | |
| \protect\hypertarget{slide-with-plot}{} | |
| \includegraphics{test_files/figure-beamer/pressure-1.pdf} | |
| \end{frame} | |
| \end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment