forked from jgm/pandoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
223 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
``` | ||
% pandoc -st beamer | ||
--- | ||
titlegraphic: media/cdl23.pdf | ||
titlegraphicoptions: height=1.5cm | ||
--- | ||
^D | ||
% 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 | ||
\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 | ||
\usepackage{bookmark} | ||
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available | ||
\urlstyle{same} | ||
\hypersetup{ | ||
hidelinks, | ||
pdfcreator={LaTeX via pandoc}} | ||
\author{} | ||
\date{} | ||
\titlegraphic{\includegraphics[height=1.5cm]{media/cdl23.pdf}} | ||
\begin{document} | ||
\begin{frame} | ||
\end{frame} | ||
\end{document} | ||
``` | ||
|
||
``` | ||
% pandoc -st beamer | ||
--- | ||
titlegraphic: media/cdl23.pdf | ||
titlegraphicoptions: | ||
- height=1.5cm | ||
- angle=42 | ||
--- | ||
^D | ||
% 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 | ||
\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 | ||
\usepackage{bookmark} | ||
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available | ||
\urlstyle{same} | ||
\hypersetup{ | ||
hidelinks, | ||
pdfcreator={LaTeX via pandoc}} | ||
\author{} | ||
\date{} | ||
\titlegraphic{\includegraphics[height=1.5cm, angle=42]{media/cdl23.pdf}} | ||
\begin{document} | ||
\begin{frame} | ||
\end{frame} | ||
\end{document} | ||
``` |