Skip to content
This repository
Browse code

Split off default.beamer from default.latex.

  • Loading branch information...
commit f26a6351b20dff374b0209a1140faf1f7aeb5f74 1 parent b8385d8
John MacFarlane authored

Showing 2 changed files with 142 additions and 29 deletions. Show diff stats Hide diff stats

  1. +141 0 default.beamer
  2. +1 29 default.latex
141 default.beamer
... ... @@ -0,0 +1,141 @@
  1 +\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$]{$documentclass$}
  2 +$if(theme)$
  3 +\usetheme{$theme$}
  4 +$endif$
  5 +$if(colortheme)$
  6 +\usecolortheme{$colortheme$}
  7 +$endif$
  8 +\usepackage{amssymb,amsmath}
  9 +\usepackage{ifxetex,ifluatex}
  10 +\ifxetex
  11 + \usepackage{fontspec,xltxtra,xunicode}
  12 + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
  13 +\else
  14 + \ifluatex
  15 + \usepackage{fontspec}
  16 + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
  17 + \else
  18 + \usepackage[utf8]{inputenc}
  19 + \fi
  20 +\fi
  21 +$if(natbib)$
  22 +\usepackage{natbib}
  23 +\bibliographystyle{plainnat}
  24 +$endif$
  25 +$if(biblatex)$
  26 +\usepackage{biblatex}
  27 +$if(biblio-files)$
  28 +\bibliography{$biblio-files$}
  29 +$endif$
  30 +$endif$
  31 +$if(listings)$
  32 +\usepackage{listings}
  33 +$endif$
  34 +$if(lhs)$
  35 +\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
  36 +$endif$
  37 +$if(highlighting-macros)$
  38 +$highlighting-macros$
  39 +$endif$
  40 +$if(verbatim-in-note)$
  41 +\usepackage{fancyvrb}
  42 +$endif$
  43 +$if(fancy-enums)$
  44 +% Redefine labelwidth for lists; otherwise, the enumerate package will cause
  45 +% markers to extend beyond the left margin.
  46 +\makeatletter\AtBeginDocument{%
  47 + \renewcommand{\@listi}
  48 + {\setlength{\labelwidth}{4em}}
  49 +}\makeatother
  50 +\usepackage{enumerate}
  51 +$endif$
  52 +$if(tables)$
  53 +\usepackage{ctable}
  54 +\usepackage{float} % provides the H option for float placement
  55 +$endif$
  56 +$if(url)$
  57 +\usepackage{url}
  58 +$endif$
  59 +$if(graphics)$
  60 +\usepackage{graphicx}
  61 +$endif$
  62 +% Comment these out if you don't want a slide with just the
  63 +% part/section/subsection/subsubsection title:
  64 +\AtBeginPart{\frame{\partpage}}
  65 +\AtBeginSection{\frame{\sectionpage}}
  66 +\AtBeginSubsection{\frame{\subsectionpage}}
  67 +\AtBeginSubsubsection{\frame{\subsubsectionpage}}
  68 +$if(strikeout)$
  69 +\usepackage[normalem]{ulem}
  70 +% avoid problems with \sout in headers with hyperref:
  71 +\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
  72 +$endif$
  73 +$if(subscript)$
  74 +\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
  75 +$endif$
  76 +\setlength{\parindent}{0pt}
  77 +\setlength{\parskip}{6pt plus 2pt minus 1pt}
  78 +\setlength{\emergencystretch}{3em} % prevent overfull lines
  79 +$if(numbersections)$
  80 +$else$
  81 +\setcounter{secnumdepth}{0}
  82 +$endif$
  83 +$if(verbatim-in-note)$
  84 +\VerbatimFootnotes % allows verbatim text in footnotes
  85 +$endif$
  86 +$if(lang)$
  87 +\usepackage[$lang$]{babel}
  88 +$endif$
  89 +$for(header-includes)$
  90 +$header-includes$
  91 +$endfor$
  92 +
  93 +$if(title)$
  94 +\title{$title$}
  95 +$endif$
  96 +$if(author)$
  97 +\author{$for(author)$$author$$sep$ \and $endfor$}
  98 +$endif$
  99 +$if(date)$
  100 +\date{$date$}
  101 +$endif$
  102 +
  103 +\begin{document}
  104 +$if(title)$
  105 +\frame{\titlepage}
  106 +$endif$
  107 +
  108 +$for(include-before)$
  109 +$include-before$
  110 +
  111 +$endfor$
  112 +$if(toc)$
  113 +\begin{frame}
  114 +\tableofcontents[hideallsubsections]
  115 +\end{frame}
  116 +
  117 +$endif$
  118 +$body$
  119 +
  120 +$if(natbib)$
  121 +$if(biblio-files)$
  122 +$if(biblio-title)$
  123 +$if(book-class)$
  124 +\renewcommand\bibname{$biblio-title$}
  125 +$else$
  126 +\renewcommand\refname{$biblio-title$}
  127 +$endif$
  128 +$endif$
  129 +\bibliography{$biblio-files$}
  130 +
  131 +$endif$
  132 +$endif$
  133 +$if(biblatex)$
  134 +\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
  135 +
  136 +$endif$
  137 +$for(include-after)$
  138 +$include-after$
  139 +
  140 +$endfor$
  141 +\end{document}
30 default.latex
... ... @@ -1,10 +1,4 @@
1   -\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$]{$documentclass$}
2   -$if(theme)$
3   -\usetheme{$theme$}
4   -$endif$
5   -$if(colortheme)$
6   -\usecolortheme{$colortheme$}
7   -$endif$
  1 +\documentclass[$if(fontsize)$$fontsize$,$endif$]{$documentclass$}
8 2 \usepackage{amssymb,amsmath}
9 3 \usepackage{ifxetex,ifluatex}
10 4 \ifxetex
@@ -58,8 +52,6 @@ $if(url)$
58 52 $endif$
59 53 $if(graphics)$
60 54 \usepackage{graphicx}
61   -$if(beamer)$
62   -$else$
63 55 % We will generate all images so they have a width \maxwidth. This means
64 56 % that they will get their normal width if they fit onto the page, but
65 57 % are scaled down if they would overflow the margins.
@@ -70,15 +62,6 @@ $else$
70 62 \let\Oldincludegraphics\includegraphics
71 63 \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
72 64 $endif$
73   -$endif$
74   -$if(beamer)$
75   -% Comment these out if you don't want a slide with just the
76   -% part/section/subsection/subsubsection title:
77   -\AtBeginPart{\frame{\partpage}}
78   -\AtBeginSection{\frame{\sectionpage}}
79   -\AtBeginSubsection{\frame{\subsectionpage}}
80   -\AtBeginSubsubsection{\frame{\subsubsectionpage}}
81   -$else$
82 65 \ifxetex
83 66 \usepackage[setpagesize=false, % page size defined by xetex
84 67 unicode=false, % unicode breaks when used with xetex
@@ -91,7 +74,6 @@ $else$
91 74 linkcolor=blue]{hyperref}
92 75 \fi
93 76 \hypersetup{breaklinks=true, pdfborder={0 0 0}}
94   -$endif$
95 77 $if(strikeout)$
96 78 \usepackage[normalem]{ulem}
97 79 % avoid problems with \sout in headers with hyperref:
@@ -129,25 +111,15 @@ $endif$
129 111
130 112 \begin{document}
131 113 $if(title)$
132   -$if(beamer)$
133   -\frame{\titlepage}
134   -$else$
135 114 \maketitle
136 115 $endif$
137   -$endif$
138 116
139 117 $for(include-before)$
140 118 $include-before$
141 119
142 120 $endfor$
143 121 $if(toc)$
144   -$if(beamer)$
145   -\begin{frame}
146   -\tableofcontents[hideallsubsections]
147   -\end{frame}
148   -$else$
149 122 \tableofcontents
150   -$endif$
151 123
152 124 $endif$
153 125 $body$

0 comments on commit f26a635

Please sign in to comment.
Something went wrong with that request. Please try again.