CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
presentationTemplates.py
Go to the documentation of this file.
1 # Templates for the production of a LaTeX presentation.
2 
3 texTemplate=r"""%Offline Alignment Validation presentation.
4 %Time of creation: [time]
5 %Created with produceOfflineValidationTex.py
6 \documentclass{beamer}
7 \usepackage[latin1]{inputenc}
8 \usepackage{color}
9 \usepackage{longtable}
10 %\usepackage{siunitx}
11 %\usepackage{epstopdf}
12 \usetheme{default}
13 \title[Offline Validation]{Title here}
14 \author{Author(s) here}
15 \institute{Institute here}
16 \date{Date here}
17 
18 
19 
20 \begin{document}
21 
22 \begin{frame}
23 \titlepage
24 \end{frame}
25 
26 \section{Introduction}
27 %---------------------------------------------
28 \begin{frame}{Introduction}
29 {
30 \begin{itemize}
31  \item Introduction here
32 \end{itemize}
33 }
34 \end{frame}
35 
36 
37 \section{Plots}
38 %---------------------------------------------
39 
40 
41 [frames]
42 
43 
44 \section{Conclusions}
45 %---------------------------------------------
46 \begin{frame}{Conclusions}
47 {
48 \begin{itemize}
49 \item Conclusions here
50 \end{itemize}
51 }
52 \end{frame}
53 
54 
55 
56 \end{document}
57 
58 """
59 
60 frameTemplate=r"""
61 \begin{frame}{[title]}
62  \begin{figure}
63  \centering
64 [plots]
65  %\\Comments here
66  \end{figure}
67 \end{frame}
68 """
69 
70 summaryTemplate = r"""
71 \begin{frame}[allowframebreaks]{[title]}
72 \centering
73 [summary]
74 \end{frame}
75 """
76 
77 plotTemplate=r""" \includegraphics[width=[width]\textwidth, height=[height]\textheight, keepaspectratio=true]{[path]}"""
78 
79 subsectionTemplate=r"""
80 
81 \subsection{[title]}
82 %---------------------------------------------
83 """
84 
85 toPdf="""
86 #To produce a pdf presentation
87 #a. fill in your information, comments etc. in presentation.tex
88 #b. run this script: ./ToPdf.sh
89 latex presentation.tex
90 latex presentation.tex #(twice to produce the bookmarks)
91 dvipdf presentation.dvi
92 #(pdflatex doesn't like .eps-images; this way we can
93 #use just latex and the convert the result into pdf.)
94 
95 """