CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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{siunitx}
10 %\usepackage{epstopdf}
11 \usetheme{default}
12 \title[Offline Validation]{Title here}
13 \author{Author(s) here}
14 \institute{Institute here}
15 \date{Date here}
16 
17 
18 
19 \begin{document}
20 
21 \begin{frame}
22 \titlepage
23 \end{frame}
24 
25 \section{Introduction}
26 %---------------------------------------------
27 \begin{frame}{Introduction}
28 {
29 \begin{itemize}
30  \item Introduction here
31 \end{itemize}
32 }
33 \end{frame}
34 
35 
36 \section{Plots}
37 %---------------------------------------------
38 
39 
40 [frames]
41 
42 
43 \section{Conclusions}
44 %---------------------------------------------
45 \begin{frame}{Conclusions}
46 {
47 \begin{itemize}
48 \item Conclusions here
49 \end{itemize}
50 }
51 \end{frame}
52 
53 
54 
55 \end{document}
56 
57 """
58 
59 frameTemplate=r"""
60 \begin{frame}{[title]}
61  \begin{figure}
62  \centering
63 [plots]
64  %\\Comments here
65  \end{figure}
66 \end{frame}
67 """
68 
69 plotTemplate=r""" \includegraphics[width=[width]\textwidth, height=[height]\textheight, keepaspectratio=true]{[path]}"""
70 
71 subsectionTemplate=r"""
72 
73 \subsection{[title]}
74 %---------------------------------------------
75 """
76 
77 toPdf="""
78 #To produce a pdf presentation
79 #a. fill in your information, comments etc. in presentation.tex
80 #b. run this script: ./ToPdf.sh
81 latex presentation.tex
82 latex presentation.tex #(twice to produce the bookmarks)
83 dvipdf presentation.dvi
84 #(pdflatex doesn't like .eps-images; this way we can
85 #use just latex and the convert the result into pdf.)
86 
87 """