[杂记]LeTeX模板——ppt
Posted 静待花开
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[杂记]LeTeX模板——ppt相关的知识,希望对你有一定的参考价值。
出处:ShareLeTeX应用模板:https://cn.sharelatex.com/project/5810ad8a07a1ab0f0f8c2ce4
代码如下:
1 % Copyright 2004 by Till Tantau <tantau@users.sourceforge.net>. 2 % 3 % In principle, this file can be redistributed and/or modified under 4 % the terms of the GNU Public License, version 2. 5 % 6 % However, this file is supposed to be a template to be modified 7 % for your own needs. For this reason, if you use this file as a 8 % template and not specifically distribute it as part of a another 9 % package/program, I grant the extra permission to freely copy and 10 % modify this file as you see fit and even to delete this copyright 11 % notice. 12 13 \\documentclass{beamer} 14 15 % There are many different themes available for Beamer. A comprehensive 16 % list with examples is given here: 17 % http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html 18 % You can uncomment the themes below if you would like to use a different 19 % one: 20 %\\usetheme{AnnArbor} 21 %\\usetheme{Antibes} 22 %\\usetheme{Bergen} 23 %\\usetheme{Berkeley} 24 %\\usetheme{Berlin} 25 %\\usetheme{Boadilla} 26 %\\usetheme{boxes} 27 %\\usetheme{CambridgeUS} 28 %\\usetheme{Copenhagen} 29 %\\usetheme{Darmstadt} 30 %\\usetheme{default} 31 %\\usetheme{Frankfurt} 32 %\\usetheme{Goettingen} 33 %\\usetheme{Hannover} 34 %\\usetheme{Ilmenau} 35 %\\usetheme{JuanLesPins} 36 %\\usetheme{Luebeck} 37 \\usetheme{Madrid} 38 %\\usetheme{Malmoe} 39 %\\usetheme{Marburg} 40 %\\usetheme{Montpellier} 41 %\\usetheme{PaloAlto} 42 %\\usetheme{Pittsburgh} 43 %\\usetheme{Rochester} 44 %\\usetheme{Singapore} 45 %\\usetheme{Szeged} 46 %\\usetheme{Warsaw} 47 48 \\title{Presentation Title} 49 50 % A subtitle is optional and this may be deleted 51 \\subtitle{Optional Subtitle} 52 53 \\author{F.~Author\\inst{1} \\and S.~Another\\inst{2}} 54 % - Give the names in the same order as the appear in the paper. 55 % - Use the \\inst{?} command only if the authors have different 56 % affiliation. 57 58 \\institute[Universities of Somewhere and Elsewhere] % (optional, but mostly needed) 59 { 60 \\inst{1}% 61 Department of Computer Science\\\\ 62 University of Somewhere 63 \\and 64 \\inst{2}% 65 Department of Theoretical Philosophy\\\\ 66 University of Elsewhere} 67 % - Use the \\inst command only if there are several affiliations. 68 % - Keep it simple, no one is interested in your street address. 69 70 \\date{Conference Name, 2013} 71 % - Either use conference name or its abbreviation. 72 % - Not really informative to the audience, more for people (including 73 % yourself) who are reading the slides online 74 75 \\subject{Theoretical Computer Science} 76 % This is only inserted into the PDF information catalog. Can be left 77 % out. 78 79 % If you have a file called "university-logo-filename.xxx", where xxx 80 % is a graphic format that can be processed by latex or pdflatex, 81 % resp., then you can add a logo as follows: 82 83 % \\pgfdeclareimage[height=0.5cm]{university-logo}{university-logo-filename} 84 % \\logo{\\pgfuseimage{university-logo}} 85 86 % Delete this, if you do not want the table of contents to pop up at 87 % the beginning of each subsection: 88 \\AtBeginSubsection[] 89 { 90 \\begin{frame}<beamer>{Outline} 91 \\tableofcontents[currentsection,currentsubsection] 92 \\end{frame} 93 } 94 95 % Let\'s get started 96 \\begin{document} 97 98 \\begin{frame} 99 \\titlepage 100 \\end{frame} 101 102 \\begin{frame}{Outline} 103 \\tableofcontents 104 % You might wish to add the option [pausesections] 105 \\end{frame} 106 107 % Section and subsections will appear in the presentation overview 108 % and table of contents. 109 \\section{First Main Section} 110 111 \\subsection{First Subsection} 112 113 \\begin{frame}{First Slide Title}{Optional Subtitle} 114 \\begin{itemize} 115 \\item { 116 My first point. 117 } 118 \\item { 119 My second point. 120 } 121 \\end{itemize} 122 \\end{frame} 123 124 \\subsection{Second Subsection} 125 126 % You can reveal the parts of a slide one at a time 127 % with the \\pause command: 128 \\begin{frame}{Second Slide Title} 129 \\begin{itemize} 130 \\item { 131 First item. 132 \\pause % The slide will pause after showing the first item 133 } 134 \\item { 135 Second item. 136 } 137 % You can also specify when the content should appear 138 % by using <n->: 139 \\item<3-> { 140 Third item. 141 } 142 \\item<4-> { 143 Fourth item. 144 } 145 % or you can use the \\uncover command to reveal general 146 % content (not just \\items): 147 \\item<5-> { 148 Fifth item. \\uncover<6->{Extra text in the fifth item.} 149 } 150 \\end{itemize} 151 \\end{frame} 152 153 \\section{Second Main Section} 154 155 \\subsection{Another Subsection} 156 157 \\begin{frame}{Blocks} 158 \\begin{block}{Block Title} 159 You can also highlight sections of your presentation in a block, with it\'s own title 160 \\end{block} 161 \\begin{theorem} 162 There are separate environments for theorems, examples, definitions and proofs. 163 \\end{theorem} 164 \\begin{example} 165 Here is an example of an example block. 166 \\end{example} 167 \\end{frame} 168 169 % Placing a * after \\section means it will not show in the 170 % outline or table of contents. 171 \\section*{Summary} 172 173 \\begin{frame}{Summary} 174 \\begin{itemize} 175 \\item 176 The \\alert{first main message} of your talk in one or two lines. 177 \\item 178 The \\alert{second main message} of your talk in one or two lines. 179 \\item 180 Perhaps a \\alert{third message}, but not more than that. 181 \\end{itemize} 182 183 \\begin{itemize} 184 \\item 185 Outlook 186 \\begin{itemize} 187 \\item 188 Something you haven\'t solved. 189 \\item 190 Something else you haven\'t solved. 191 \\end{itemize} 192 \\end{itemize} 193 \\end{frame} 194 195 196 197 % All of the following is optional and typically not needed. 198 \\appendix 199 \\section<presentation>*{\\appendixname} 200 \\subsection<presentation>*{For Further Reading} 201 202 \\begin{frame}[allowframebreaks] 203 \\frametitle<presentation>{For Further Reading} 204 205 \\begin{thebibliography}{10} 206 207 \\beamertemplatebookbibitems 208 % Start with overview books. 209 210 \\bibitem{Author1990} 211 A.~Author. 212 \\newblock {\\em Handbook of Everything}. 213 \\newblock Some Press, 1990. 214 215 216 \\beamertemplatearticlebibitems 217 % Followed by interesting articles. Keep the list short. 218 219 \\bibitem{Someone2000} 220 S.~Someone. 221 \\newblock On this and that. 222 \\newblock {\\em Journal of This and That}, 2(1):50--100, 223 2000. 224 \\end{thebibliography} 225 \\end{frame} 226 227 \\end{document}
首页预览如下:
模板2:
1 \\documentclass[compress]{beamer} 2 %\\documentclass[ignorenonframetext,handout]{beamer} 3 %\\setbeamercovered{transparent} 4 %\\usepackage[ISO 8859-1]{inputenc} 5 \\usepackage{default} 6 7 % para usar figuras devemos acrescentar 8 \\usepackage{graphicx} 9 %\\usepackage{graphics} 10 %\\DeclareGraphicsExtensions{.pdf,.png,.jpg} 11 %\\DeclareGraphicsExtensions{.jpg, .eps} 12 %\\DeclareGraphicsRule{.jpg}{eps}{.jpg}{`jpeg2ps -h -r 600 #1} 13 \\usepackage{tikz} 14 %\\usetikzlibrary{arrows,backgrounds,coordinatesystems,3d,shapes,plotmarks,automata,calendar,er, 15 %folding,matrix,mindmap,patterns,petri,plothandlers,topaths,trees} 16 \\usetikzlibrary{positioning} 17 %\\usepgflibrary{decorations.pathreplacing} 18 \\usetikzlibrary{decorations.pathreplacing} 19 \\usetikzlibrary{decorations.pathmorphing} 20 \\usetikzlibrary[patterns] 21 %\\tikzstyle{every text node part} 22 %\\usetikzlibrary{arrows,backgrounds,positioning,fit} 23 \\usetikzlibrary{calc} 24 % para gerar graficos no latex 25 \\usepackage{pgfplots} 26 \\pgfplotsset{compat=newest} 27 28 \\usepackage{amsfonts} 29 \\usepackage{amssymb} 30 \\usepackage{amsmath} 31 \\usepackage{MnSymbol} 32 33 \\usepackage[brazil]{babel} 34 \\usepackage[utf8]{inputenc} 35 36 % \\usepackage{algpseudocode} 37 % \\usepackage{algorithmicx} 38 \\usepackage[Algoritmo]{algorithm} 39 \\usepackage[noend]{algorithmic} 40 41 \\setbeamertemplate{bibliography entry title}{} 42 \\setbeamertemplate{bibliography entry location}{} 43 \\setbeamertemplate{bibliography entry note}{} 44 45 \\newcounter{saveenumi} 46 \\newcommand{\\seti}{\\setcounter{saveenumi}{\\value{enumi}}} 47 \\newcommand{\\conti}{\\setcounter{enumi}{\\value{saveenumi}}} 48 49 %\\usepackage{shadethm} 50 51 %\\definecolor{shadethmcolor}{rgb}{.75,.75,.75} 52 53 %\\newshadetheorem{theorem}{\\scshape Teorema}[chapter] 54 \\newtheorem{teorema}[theorem]{\\scshape Teorema} 55 \\newtheorem{proposicao}[theorem]{\\scshape Proposição} 56 \\newtheorem{corolario}[theorem]{\\scshape Corolário} 57 \\newtheorem{lema}[theorem]{\\scshape Lema} 58 \\newtheorem{definicao}[theorem]{\\scshape Definição} 59 \\newtheorem{conjectura}[theorem]{\\scshape Conjectura} 60 \\newtheorem{escolio}[theorem]{\\scshape Escólio} 61 \\newtheorem{exemplo}[theorem]{\\scshape Exemplo} 62 \\newtheorem{exemplos}[theorem]{\\scshape Exemplos} 63 \\newtheorem{propriedade}[theorem]{\\scshape Propriedade} 64 65 \\renewcommand{\\u}{{\\bf u}} 66 \\renewcommand{\\v}{{\\bf v}} 67 \\renewcommand{\\sin}{\\operatorname{sen}} 68 \\renewcommand{\\tan}{\\operatorname{tg}} 69 \\providecommand{\\cas}{\\operatorname{cas}} 70 \\providecommand{\\mdc}{\\mathrm{mdc}} 71 \\providecommand{\\f}{{\\bf f}} 72 73 \\newcommand{\\ie}{\\textit{i.e.}} 74 \\newcommand{\\eg}{\\textit{e.g.}} 75 %\\newcommand{\\qed}{\\hfill $\\square$} 76 77 \\renewcommand\\Re{\\operatorname{Re}} 78 \\renewcommand\\Im{\\operatorname{Im}} 79 80 \\providecommand{\\x}{{\\bf x}} 81 \\providecommand{\\y}{{\\bf y}} 82 \\providecommand{\\w}{{\\bf w}} 83 \\providecommand{\\f}{{\\bf f}} 84 \\providecommand{\\q}{{\\bf q}} 85 \\providecommand{\\bfa}{{\\bf a}} 86 \\providecommand{\\bfb}{{\\bf b}} 87 \\providecommand{\\bfc}{{\\bf c}} 88 \\providecommand{\\bfd}{{\\bf d}} 89 \\providecommand{\\bfe}{{\\bf e}} 90 \\providecommand{\\bfs}{{\\bf s}} 91 \\providecommand{\\bfz}{{\\bf z}} 92 \\providecommand{\\zero}{{\\bf 0}} 93 \\providecommand{\\spn}{\\mathrm{span}} 94 \\providecommand{\\posto}{\\mathrm{posto}} 95 \\providecommand{\\nul}{\\mathrm{nul}} 96 \\providecommand{\\proj}{\\mathrm{proj}} 97 \\providecommand{\\tr}{\\mathrm{tr}} 98 \\providecommand{\\sgn}{\\mathrm{sgn}} 99 100 \\providecommand{\\cov}{\\mathrm{cov}} 101 102 \\providecommand{\\dilation}{\\mathcal{D}} 103 \\providecommand{\\erosion}{\\mathcal{E}} 104 \\providecommand{\\open}{\\mathcal{O}} 105 \\providecommand{\\close}{\\mathcal{C}} 106 107 \\newcommand*{\\Bhat}{\\skew{3}{\\hat}{B}} 108 109 \\mode<presentation> 110 { 111 \\setbeamertemplate{background canvas}[vertical shading][bottom=white!10,top=blue!10] 112 % \\usetheme{Berkeley} 113 % \\usetheme{CambridgeUS} 114 % \\usetheme{Madrid} 115 \\usetheme{Warsaw} 116 \\usefonttheme[onlysmall]{structurebold} 117 118 \\setbeamertemplate{headline}{} 119 120 % \\setbeamercovered{invisible} % default 121 \\setbeamercovered{ transparent, again covered={\\opaqueness{25}} } % =15% 122 % \\setbeamercovered{transparent=50} 123 % \\setbeamercovered{dynamic} 124 125 % \\setbeamercovered{again covered={\\opaqueness<1->{25}}} 126 } 127 128 % copiado do site: 129 % http://latex-beamer-class.10966.n7.nabble.com/Covering-images-transparent-i-e-dimmed-figures-td1504 130 % . html 131 \\usepackage{ifthen} 132 133 \\makeatletter 134 \\newcommand{\\includecoveredgraphics}[2][]{ 135 \\ifthenelse{\\the\\beamer@coveringdepth=1}{ 136 \\tikz 137 \\node[inner sep=0pt,outer sep=0pt,opacity=0.15] 138 {\\includegraphics[#1]{#2}}; 139 }{ 140 \\tikz 141 \\node[inner sep=0pt,outer sep=0pt] 142 {\\includegraphics[#1]{#2}};% 143 } 144 } 145 \\makeatother % não sei se precisa... 146 147 %\\pgfdeclareimage[height=1.4cm]{logo_XIVsm}{semanauniversitaria} 148 149 %% put XIVsm logo in bottom left 150 %\\setbeamertemplate{sidebar left}{ 151 %% \\vfill% 152 % \\rlap{\\hskip0.0cm 153 % %\\href{http://www.uece.br/semanauniversitaria} 154 % {\\pgfuseimage{logo_XIVsm}}} 155 %%\\vskip2pt% 156 %%\\llap{\\usebeamertemplate***{navigation symbols}\\hskip0.1cm}% 157 %%\\vskip2pt% 158 %} 159 160 % para a disciplina de Processamento de Imagens 161 \\title{Processamento de Imagens\\\\Análise de Texturas} 162 \\author{Thelmo de Araujo} 163 \\date{Semestre 2013-2} 164 165 166 167 \\begin{document} 168 169 170 \\frame{\\titlepage} 171 172 %%% SUMÁRIO %%% 173 \\section{Sumário} 174 %\\frame{\\tableofcontents} 175 %\\section{} 176 177 \\begin{frame}{Sumário} 178 \\begin{enumerate} 179 \\item<+->{abc} 180 \\end{enumerate} 181 \\end{frame} 182 183 \\begin{frame}{\\tableofcontents} 184 \\end{frame} 185 186 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 187 \\begin{frame}{Análise de Texturas} 188 \\begin{center} 189 Esta apresentação baseia-se no Capítulo 8 do livro \\cite{Pedrini}\\\\ 190 \\textit{Análise de Imagens Digitais},\\\\ 191 de Hélio Pedrini e William Robson Schwartz. 192 \\end{center} 193 \\end{frame} 194 195 %%% 196 \\begin{frame}{Medidas baseadas na distribuição dos níveis de cinza} 197 \\uncover<+->{As principais medidas da distribuição dos níveis de cinza em imagem com $n$ pixels 198 são:} 199 200 201 \\begin{itemize} 202 \\vfill \\item<+->{Média: 203 \\begin{equation*} 204 \\mu = \\frac{1}{n} \\sum_{i = 1}^{n} g_i \\, . 205 \\end{equation*} 206 } 207 208 \\vfill \\item<+->{Variância: 209 \\begin{equation*} 210 \\sigma^2 = \\frac{1}{n} \\sum_{i = 1}^{n} (g_i - \\mu)^2 \\, . 211 \\end{equation*} 212 } 213 214 \\vfill \\item<+->{Simetria: 215 \\begin{equation*} 216 s = \\frac{1}{n \\sigma^3} \\sum_{i = 1}^{n} (g_i - \\mu)^3 \\, . 217 \\end{equation*} 218 } 219 220 \\vfill \\item<+->{Curtose: 221 \\begin{equation*} 222 k = \\left(\\frac{1}{n \\sigma^4} \\sum_{i = 1}^{n} (g_i - \\mu)^4 \\right) - 3 \\, . 223 \\end{equation*} 224 } 225 \\end{itemize} 226 \\end{frame} 227 228 229 \\begin{frame}{Matriz de co-ocorrência} 230 \\uncover<+->{Matriz de co-ocorrência com $d = 1$ e $\\theta = 0^{\\circ}$:} 231 232 %%begin novalidate 233 \\vfill 234 \\uncover<+->{ 235 \\begin{center} 236 \\begin{tabular}{|c|c|c|c|c|} 237 \\hline 238 3 & 2 & 0 & 1 & 0 \\\\ 239 \\hline 240 1 & 2 & 1 & 3 & 0 \\\\ 241 \\hline 242 3 & 1 & 0 & 2 & 3 \\\\ 243 \\hline 244 1 & 2 & 3 & 0 & 3 \\\\ 245 \\hline 246 0 & 0 & 0 & 0 & 1 \\\\ 247 \\hline 248 \\end{tabular} 249 } 250 \\uncover<+->{ 251 \\quad 252 \\begin{tabular}{c|c c c c} 253 & 0 & 1 & 2 & 3 \\\\ 254 \\hline 255 0 & 3 & 2 & 1 & 1 \\\\ 256 257 1 & 2 & 0 & 2 & 1 \\\\ 258 259 2 & 1 & 1 & 0 & 2 \\\\ 260 261 3 & 2 & 1 & 1 & 0 \\\\ 262 \\end{tabular} 263 \\end{center} 264 } 265 %%end novalidate 266 267 \\vfill 268 \\uncover<+->{ 269 \\begin{center} 270 \\begin{tabular}{c|c c c c} 271 & 0 & 1 & 2 & 3 \\\\ 272 \\hline 273 0 & 0.15 & 0.10 & 0.05 & 0.05 \\\\ 274 275 1 & 0.10 & 0.00 & 0.10 & 0.05 \\\\ 276 277 2 & 0.05 & 0.05 & 0.00 & 0.10 \\\\ 278 279 3 & 0.10 & 0.05 & 0.05 & 0.00 \\\\ 280 \\end{tabular} 281 \\end{center} 282 } 283 \\end{frame} 284 285 286 287 288 \\begin{frame}{Matriz de co-ocorrência} 289 \\uncover<+->{ 290 \\begin{eqnarray*} 291 P(i,j,d,135^{\\circ}) &=& \\#\\{\\{(k,l),(m,n)\\} \\subset S \\, | \\, (k - m = d, l - n = d) \\mbox{ ou}\\\\ 292 && (k - m = -d, l - n = -d), f(k,l) = i, f(m,n) = j \\} \\, . 293 \\end{eqnarray*} 294 } 295 296 \\vfill 297 \\uncover<+->{Pode-se normalizar os elementos da matriz de co-ocorrência para que representem 298 probabilidades fazendo:} 299 300 \\vfill 301 \\uncover<+->{ 302 \\begin{equation*} 303 p(i,j) = \\frac{P(i,j)}{\\sum\\limits_{p = 0}^{H_g} \\sum\\limits_{q = 0}^{H_g} P(p,q)} \\, , 304 \\end{equation*} 305 } 306 307 \\uncover<+->{sendo $H_g$ o nível de cinza máximo na imagem.} 308 \\end{frame} 309 310 \\begin{frame}{Tipos de Sinais -- Exemplos} 311 \\uncover<+->{ 312 Uma imagem pode ser vista como um sinal que é, por sua vez, uma função de duas variáveis espaciais: 313 $x$ e $y$. 314 } 315 316 \\uncover<+->{ 317以上是关于[杂记]LeTeX模板——ppt的主要内容,如果未能解决你的问题,请参考以下文章