[杂记]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 itle{Presentation Title} 49 50 % A subtitle is optional and this may be deleted 51 subtitle{Optional Subtitle} 52 53 author{F.~Authorinst{1} and S.~Anotherinst{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 egin{frame}<beamer>{Outline} 91 ableofcontents[currentsection,currentsubsection] 92 end{frame} 93 } 94 95 % Let's get started 96 egin{document} 97 98 egin{frame} 99 itlepage 100 end{frame} 101 102 egin{frame}{Outline} 103 ableofcontents 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 egin{frame}{First Slide Title}{Optional Subtitle} 114 egin{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 egin{frame}{Second Slide Title} 129 egin{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 egin{frame}{Blocks} 158 egin{block}{Block Title} 159 You can also highlight sections of your presentation in a block, with it's own title 160 end{block} 161 egin{theorem} 162 There are separate environments for theorems, examples, definitions and proofs. 163 end{theorem} 164 egin{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 egin{frame}{Summary} 174 egin{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 egin{itemize} 184 item 185 Outlook 186 egin{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 egin{frame}[allowframebreaks] 203 frametitle<presentation>{For Further Reading} 204 205 egin{thebibliography}{10} 206 207 eamertemplatebookbibitems 208 % Start with overview books. 209 210 ibitem{Author1990} 211 A.~Author. 212 ewblock {em Handbook of Everything}. 213 ewblock Some Press, 1990. 214 215 216 eamertemplatearticlebibitems 217 % Followed by interesting articles. Keep the list short. 218 219 ibitem{Someone2000} 220 S.~Someone. 221 ewblock On this and that. 222 ewblock {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 % ikzstyle{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 ewcounter{saveenumi} 46 ewcommand{seti}{setcounter{saveenumi}{value{enumi}}} 47 ewcommand{conti}{setcounter{enumi}{value{saveenumi}}} 48 49 %usepackage{shadethm} 50 51 %definecolor{shadethmcolor}{rgb}{.75,.75,.75} 52 53 % ewshadetheorem{theorem}{scshape Teorema}[chapter] 54 ewtheorem{teorema}[theorem]{scshape Teorema} 55 ewtheorem{proposicao}[theorem]{scshape Proposição} 56 ewtheorem{corolario}[theorem]{scshape Corolário} 57 ewtheorem{lema}[theorem]{scshape Lema} 58 ewtheorem{definicao}[theorem]{scshape Definição} 59 ewtheorem{conjectura}[theorem]{scshape Conjectura} 60 ewtheorem{escolio}[theorem]{scshape Escólio} 61 ewtheorem{exemplo}[theorem]{scshape Exemplo} 62 ewtheorem{exemplos}[theorem]{scshape Exemplos} 63 ewtheorem{propriedade}[theorem]{scshape Propriedade} 64 65 enewcommand{u}{{f u}} 66 enewcommand{v}{{f v}} 67 enewcommand{sin}{operatorname{sen}} 68 enewcommand{ an}{operatorname{tg}} 69 providecommand{cas}{operatorname{cas}} 70 providecommand{mdc}{mathrm{mdc}} 71 providecommand{f}{{f f}} 72 73 ewcommand{ie}{ extit{i.e.}} 74 ewcommand{eg}{ extit{e.g.}} 75 % ewcommand{qed}{hfill $square$} 76 77 enewcommandRe{operatorname{Re}} 78 enewcommandIm{operatorname{Im}} 79 80 providecommand{x}{{f x}} 81 providecommand{y}{{f y}} 82 providecommand{w}{{f w}} 83 providecommand{f}{{f f}} 84 providecommand{q}{{f q}} 85 providecommand{fa}{{f a}} 86 providecommand{fb}{{f b}} 87 providecommand{fc}{{f c}} 88 providecommand{fd}{{f d}} 89 providecommand{fe}{{f e}} 90 providecommand{fs}{{f s}} 91 providecommand{fz}{{f z}} 92 providecommand{zero}{{f 0}} 93 providecommand{spn}{mathrm{span}} 94 providecommand{posto}{mathrm{posto}} 95 providecommand{ ul}{mathrm{nul}} 96 providecommand{proj}{mathrm{proj}} 97 providecommand{ r}{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 ewcommand*{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 ewcommand{includecoveredgraphics}[2][]{ 135 ifthenelse{ heeamer@coveringdepth=1}{ 136 ikz 137 ode[inner sep=0pt,outer sep=0pt,opacity=0.15] 138 {includegraphics[#1]{#2}}; 139 }{ 140 ikz 141 ode[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 % lap{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 itle{Processamento de Imagens\Análise de Texturas} 162 author{Thelmo de Araujo} 163 date{Semestre 2013-2} 164 165 166 167 egin{document} 168 169 170 frame{ itlepage} 171 172 %%% SUMÁRIO %%% 173 section{Sumário} 174 %frame{ ableofcontents} 175 %section{} 176 177 egin{frame}{Sumário} 178 egin{enumerate} 179 item<+->{abc} 180 end{enumerate} 181 end{frame} 182 183 egin{frame}{ ableofcontents} 184 end{frame} 185 186 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 187 egin{frame}{Análise de Texturas} 188 egin{center} 189 Esta apresentação baseia-se no Capítulo 8 do livro cite{Pedrini}\ 190 extit{Análise de Imagens Digitais},\ 191 de Hélio Pedrini e William Robson Schwartz. 192 end{center} 193 end{frame} 194 195 %%% 196 egin{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 egin{itemize} 202 vfill item<+->{Média: 203 egin{equation*} 204 mu = frac{1}{n} sum_{i = 1}^{n} g_i \, . 205 end{equation*} 206 } 207 208 vfill item<+->{Variância: 209 egin{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 egin{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 egin{equation*} 222 k = left(frac{1}{n sigma^4} sum_{i = 1}^{n} (g_i - mu)^4 ight) - 3 \, . 223 end{equation*} 224 } 225 end{itemize} 226 end{frame} 227 228 229 egin{frame}{Matriz de co-ocorrência} 230 uncover<+->{Matriz de co-ocorrência com $d = 1$ e $ heta = 0^{circ}$:} 231 232 %%begin novalidate 233 vfill 234 uncover<+->{ 235 egin{center} 236 egin{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 egin{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 egin{center} 270 egin{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 egin{frame}{Matriz de co-ocorrência} 289 uncover<+->{ 290 egin{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 egin{equation*} 303 p(i,j) = frac{P(i,j)}{sumlimits_{p = 0}^{H_g} sumlimits_{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 egin{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 egin{figure} 318 includecoveredgraphics[width=0.9paperwidth, clip=true, trim=50mm 100mm 10mm 319 0]{./figures/fig_image_signal.jpg} 320 end{figure} 321 } 322 end{frame} 323 324 325 326 327 328 %%% BIBLIOGRAFIA %%% 329 egin{frame}[allowframebreaks] 330 frametitle{Referências} 331 ibliographystyle{plain} 332 ibliography{biblio.bib} 333 end{frame} 334 335 336 337 end{document}