2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11 <meta name="generator" content="S5" />
12 <meta name="version" content="S5 1.1" />
13 <!-- configuration parameters -->
14 <meta name="defaultView" content="slideshow" />
15 <meta name="controlVis" content="hidden" />
16 <!-- style sheet links -->
17 <link rel="stylesheet" href="/~kssilveira/site/lib/styles/style.css" type="text/css" media="screen" />
18 <link rel="stylesheet" href="/~kssilveira/site/lib/plugins/s5/ui/dokuwiki/slides.css" type="text/css" media="projection" id="slideProj" />
19 <link rel="stylesheet" href="/~kssilveira/site/lib/plugins/s5/ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" />
20 <link rel="stylesheet" href="/~kssilveira/site/lib/plugins/s5/ui/default/print.css" type="text/css" media="print" id="slidePrint" />
21 <link rel="stylesheet" href="/~kssilveira/site/lib/plugins/s5/ui/default/opera.css" type="text/css" media="projection" id="operaFix" />
23 <script src="/~kssilveira/site/lib/plugins/s5/ui/default/slides.js" type="text/javascript"></script>
27 <div id="controls"><!-- DO NOT EDIT --></div>
28 <div id="currentSlide"><!-- DO NOT EDIT --></div>
29 <div id="header"></div>
31 <h1>tutorials:latex</h1>
32 <h2>Kauê Silveira • 2010/05/30 10:12</h2>
36 <div class="presentation">
39 <div class="slidecontent">
43 <a href="http://www.inf.ufrgs.br/~kssilveira" class="urlextern" title="http://www.inf.ufrgs.br/~kssilveira" rel="nofollow">Kauê Soares da Silveira</a> <br/>
45 <a href="http://www.inf.ufrgs.br/~ffbeltrao" class="urlextern" title="http://www.inf.ufrgs.br/~ffbeltrao" rel="nofollow">Fábio da Fontoura Beltrão</a> <br/>
50 Universidade Federal Rio Grande do Sul <br/>
52 Instituto de Informática <br/>
54 Grupo PET Computação <br/>
63 <!-- testar tudo que está nos slides -->
64 <!-- mudar a data do exemplo para 2010 -->
68 <!-- SECTION "Latex" [16-382] --></div>
71 <div class="slidecontent">
73 <li class="level1"><div class="li"> Criado por Donald Knuth em 1982</div>
75 <li class="level1"><div class="li"> Voltado ao desenvolvimento de textos com alta qualidade tipográfica, e à escrita de textos matemáticos</div>
77 <li class="level1"><div class="li"> A versão tende a pi. Atualmente é 3.141592</div>
79 <li class="level1"><div class="li"> TeX se pronuncia “Tech”</div>
81 <li class="level1"><div class="li"> Requer controle da formatação, tornando o trabalho oneroso</div>
86 <!-- SECTION "TeX" [383-688] --></div>
89 <div class="slidecontent">
91 <li class="level1"><div class="li"> Conjunto de macros para o TeX, automatizando o processo</div>
93 <li class="level1"><div class="li"> Criado por Leslie Lamport</div>
95 <li class="level1"><div class="li"> Contém um conjunto de layouts e classes para vários fins diferentes</div>
97 <li class="level1"><div class="li"> Paradigma WYSIWYM </div>
99 <li class="level1"><div class="li"> LaTeX se pronuncia “Lay-Tech” ou “Lah-Tech”</div>
104 <!-- SECTION "LaTeX" [689-976] --></div>
107 <div class="slidecontent">
109 <li class="level1"><div class="li"> Produto final altamente profissional</div>
111 <li class="level1"><div class="li"> Menos preocupação com formatação e adequação às normas, foco no conteúdo</div>
113 <li class="level1"><div class="li"> Suporte avançado para fórmulas matemáticas</div>
115 <li class="level1"><div class="li"> Aprendizado intuitivo</div>
117 <li class="level1"><div class="li"> Pacotes para gerar vários tipos de documentos (artigos, relatórios, livros, slides)</div>
119 <li class="level1"><div class="li"> Sistema de desenvolvimento e formatos de exibição altamente portáveis e grátis</div>
124 <!-- SECTION "Vantagens" [977-1379] --></div>
126 <h1>Desvantagens</h1>
127 <div class="slidecontent">
129 <li class="level1"><div class="li"> Você só vê o resultado final do documento após compilá-lo</div>
131 <li class="level1"><div class="li"> É extremamente díficil escrever documentos sem estrutura e ordem bem definidas</div>
133 <li class="level1"><div class="li"> A criação de novos layouts pode ser complexa</div>
138 <!-- SECTION "Desvantagens" [1380-1609] --></div>
140 <h1>Instalando no Linux</h1>
141 <div class="slidecontent">
142 <pre class="code bash">$ <span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> kile
143 $ <span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> texlive-lang-portuguese</pre>
146 <!-- SECTION "Instalando no Linux" [1610-1738] --></div>
148 <h1>Instalando no Windows</h1>
149 <div class="slidecontent">
151 <li class="level1"><div class="li"> MikTeX</div>
153 <li class="level1"><div class="li"> LEd</div>
158 <!-- SECTION "Instalando no Windows" [1739-1793] --></div>
161 <div class="slidecontent">
163 <dt><a href="/~kssilveira/site/doku.php?do=export_code&id=tutorials:latex&codeblock=1" title="Download Snippet" class="mediafile mf_tex">hello_world.tex</a></dt>
164 <dd><pre class="code file latex"><span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span class="kw1">documentclass</span></a><span class="sy0">{</span><span class="re9">article</span><span class="sy0">}</span>
165 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">[</span><span class="re2">brazil</span><span class="sy0">]{</span><span class="re9">babel</span><span class="sy0">}</span>
166 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">[</span><span class="re2">T1</span><span class="sy0">]{</span><span class="re9">fontenc</span><span class="sy0">}</span>
167 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">[</span><span class="re2">utf8</span><span class="sy0">]{</span><span class="re9">inputenc</span><span class="sy0">}</span>
168 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">{</span><span class="re9">indentfirst</span><span class="sy0">}</span>
169 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cauthor"><span class="kw1">author</span></a><span class="sy0">{</span><span class="re9">Leslie Lamport</span><span class="sy0">}</span>
170 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctitle"><span class="kw1">title</span></a><span class="sy0">{</span><span class="re9">Hello World Title</span><span class="sy0">}</span>
171 <span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">document</span></span><span class="sy0">}</span>
172 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cmaketitle"><span class="kw1">maketitle</span></a>
174 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">document</span></span><span class="sy0">}</span></pre>
178 <!-- SECTION "Hello World" [1794-2099] --></div>
181 <div class="slidecontent">
185 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:hello_world.png" class="media" title="tutorials:latex:hello_world.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=750&media=tutorials:latex:hello_world.png" class="media" alt="" width="750" /></a>
189 <!-- SECTION "Hello World" [2100-2165] --></div>
191 <h1>O que acabei de digitar?</h1>
192 <div class="slidecontent">
195 <!-- acentuar listings -->
197 <pre class="code latex"><span class="co1">% formata saída para um artigo</span>
198 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span class="kw1">documentclass</span></a><span class="sy0">{</span><span class="re9">article</span><span class="sy0">}</span>
200 <span class="co1">% traduz os parâmetros (data, etc.)</span>
201 <span class="co1">% para o formato brasileiro, e faz</span>
202 <span class="co1">% a hifenização correta</span>
203 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">[</span><span class="re2">brazil</span><span class="sy0">]{</span><span class="re9">babel</span><span class="sy0">}</span>
205 <span class="co1">% formata a codificação de saída </span>
206 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">[</span><span class="re2">T1</span><span class="sy0">]{</span><span class="re9">fontenc</span><span class="sy0">}</span>
208 <span class="co1">% formata a codificação de entrada</span>
209 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">[</span><span class="re2">utf8</span><span class="sy0">]{</span><span class="re9">inputenc</span><span class="sy0">}</span></pre>
212 <!-- SECTION "O que acabei de digitar?" [2166-2589] --></div>
214 <h1>O que acabei de digitar?</h1>
215 <div class="slidecontent">
218 <!-- acentuar listings -->
220 <pre class="code latex"><span class="co1">% indentação na primeira linha</span>
221 <span class="co1">% de todas as seções</span>
222 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">{</span><span class="re9">indentfirst</span><span class="sy0">}</span>
224 <span class="co1">% autor do artigo </span>
225 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cauthor"><span class="kw1">author</span></a><span class="sy0">{</span><span class="re9">Leslie Lamport</span><span class="sy0">}</span>
227 <span class="co1">% título do artigo </span>
228 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctitle"><span class="kw1">title</span></a><span class="sy0">{</span><span class="re9">Hello World Title</span><span class="sy0">}</span></pre>
231 <!-- SECTION "O que acabei de digitar?" [2590-2873] --></div>
233 <h1>O que acabei de digitar?</h1>
234 <div class="slidecontent">
235 <pre class="code latex"><span class="co1">% fim do preâmbulo</span>
236 <span class="co1">% começo do corpo</span>
237 <span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">document</span></span><span class="sy0">}</span>
239 <span class="co1">% faz o cabeçalho</span>
240 <span class="co1">% (página, slide) de título </span>
241 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cmaketitle"><span class="kw1">maketitle</span></a>
243 <span class="co1">% texto do corpo do documento </span>
246 <span class="co1">% fim do corpo</span>
247 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">document</span></span><span class="sy0">}</span></pre>
250 <!-- SECTION "O que acabei de digitar?" [2874-3163] --></div>
252 <h1>Como compilo?</h1>
253 <div class="slidecontent">
256 <!-- SECTION "Como compilo?" [3164-3190] --><h2>Console</h2>
258 <pre class="code bash">$ pdflatex hello_world.tex</pre>
261 <!-- SECTION "Console" [3191-3257] --><h2>Kile</h2>
266 Build → Compile → Pdflatex
270 <!-- SECTION "Kile" [3258-3303] --></div>
272 <h1>Organização dos arquivos .tex</h1>
273 <div class="slidecontent">
277 Um documento LaTeX costuma ter três partes principais:
279 <table class="inline">
281 <th class="col0 leftalign"> Preâmbulo </th><td class="col1"> → Contém declarações, inclusão de pacotes e outras construções que indicam a estrutura do documento </td>
284 <th class="col0 leftalign"> Corpo </th><td class="col1"> → O documento em si </td>
287 <th class="col0 leftalign"> Bibliografia </th><td class="col1"> → Referências </td>
292 <!-- SECTION "Organização dos arquivos .tex" [3304-3600] --></div>
294 <h1>Document Class</h1>
295 <div class="slidecontent">
296 <pre class="code latex"><span class="co1">% define a classe do documento</span>
297 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span class="kw1">documentclass</span></a><span class="sy0">[</span><span class="re2">options</span><span class="sy0">]{</span><span class="re9">class</span><span class="sy0">}</span></pre>
298 <table class="inline">
300 <th class="col0 centeralign" colspan="2"> Classes </th>
303 <th class="col0 leftalign"> article </th><td class="col1"> → Artigos científicos </td>
306 <th class="col0 leftalign"> report </th><td class="col1"> → Relatórios e monografias </td>
309 <th class="col0 leftalign"> book </th><td class="col1"> → Livros </td>
312 <th class="col0 leftalign"> beamer </th><td class="col1"> → Slides </td>
315 <th class="col0 leftalign"> abnt </th><td class="col1"> → Monografia no padrão ABNT </td>
320 <!-- SECTION "Document Class" [3601-3899] --></div>
322 <h1>Document Class</h1>
323 <div class="slidecontent">
324 <pre class="code latex"><span class="co1">% define a classe do documento</span>
325 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span class="kw1">documentclass</span></a><span class="sy0">[</span><span class="re2">options</span><span class="sy0">]{</span><span class="re9">class</span><span class="sy0">}</span></pre>
326 <table class="inline">
328 <th class="col0 centeralign" colspan="2"> Opções </th>
331 <th class="col0 leftalign"> 10pt, 11pt, 12pt </th><td class="col1"> → Tamanho da fonte </td>
334 <th class="col0 leftalign"> a4paper, letterpaper </th><td class="col1"> → Tamanho do papel </td>
337 <th class="col0 leftalign"> titlepage, notitlepage </th><td class="col1"> → Página de título separada ou não </td>
340 <th class="col0 leftalign"> onecolumn, twocolumn </th><td class="col1"> → Texto em uma ou duas colunas </td>
345 <!-- SECTION "Document Class" [3900-4250] --></div>
348 <div class="slidecontent">
349 <pre class="code latex"><span class="co1">% inclusão de pacotes</span>
350 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span class="kw1">usepackage</span></a><span class="sy0">[</span><span class="re2">options</span><span class="sy0">]{</span><span class="re9">package</span><span class="sy0">}</span></pre>
351 <table class="inline">
353 <th class="col0 centeralign" colspan="2"> Pacotes </th>
356 <th class="col0 leftalign"> inputenc </th><td class="col1"> → Codificação do arquivo .tex (utf8, latin1) </td>
359 <th class="col0 leftalign"> babel </th><td class="col1"> → Traduz nomes e formas de data (brazil, portuguese) </td>
362 <th class="col0 leftalign"> amsmath </th><td class="col1"> → Fórmulas matemáticas </td>
365 <th class="col0 leftalign"> listings </th><td class="col1"> → Formatação de código fonte </td>
368 <th class="col0 leftalign"> indentfirst </th><td class="col1"> → Indentação na primeira linha das seções </td>
371 <th class="col0 leftalign"> verbatim </th><td class="col1"> → Ambiente comment </td>
376 <!-- SECTION "Use Package" [4251-4692] --></div>
378 <h1>Considerações</h1>
379 <div class="slidecontent">
381 <li class="level1"><div class="li"> Espaços a mais são desconsiderados</div>
383 <li class="level1"><div class="li"> Todo comando começa com \</div>
385 <li class="level1"><div class="li"> Comentários de uma linha começam com %</div>
387 <li class="level1"><div class="li"> Use \begin{comment} e \end{comment} para comentários com várias linhas</div>
389 <li class="level1"><div class="li"> Escape os caracteres $, ^, &, _, {, } e % com uma barra invertida (\$, por exemplo)</div>
391 <li class="level1"><div class="li"> Escape \ com \textbackslash{}.</div>
393 <li class="level1"><div class="li"> Quebras de linha são sinalizadas com \\</div>
395 <li class="level1"><div class="li"> Deixe uma linha em branco para quebrar o parágrafo</div>
400 <!-- SECTION "Considerações" [4693-5144] --></div>
403 <div class="slidecontent">
407 Evite usar! Lembre-se: foco no conteúdo.
410 <table class="inline">
412 <th class="col0 centeralign" colspan="2"> Tipos de Fontes </th>
415 <th class="col0 leftalign"> \textbf </th><td class="col1 leftalign"> → negrito </td>
418 <th class="col0 leftalign"> \textit </th><td class="col1 leftalign"> → itálico </td>
421 <th class="col0 leftalign"> \emph </th><td class="col1 leftalign"> → ênfase </td>
424 <pre class="code latex">Exemplo de palavras <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctextbf"><span class="kw1">textbf</span></a><span class="sy0">{</span><span class="re9">em negrito</span><span class="sy0">}</span>,
425 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctextit"><span class="kw1">textit</span></a><span class="sy0">{</span><span class="re9">itálico</span><span class="sy0">}</span> e <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cemph"><span class="kw1">emph</span></a><span class="sy0">{</span><span class="re9">com ênfase</span><span class="sy0">}</span>.</pre>
428 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:fonts.png" class="media" title="tutorials:latex:fonts.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=750&media=tutorials:latex:fonts.png" class="media" alt="" width="750" /></a>
432 <!-- SECTION "Fontes" [5145-5452] --></div>
434 <h1>Tamanho de Fontes</h1>
435 <div class="slidecontent">
439 Evite usar! Lembre-se: foco no conteúdo.
442 <table class="inline">
444 <th class="col0 centeralign" colspan="2"> Tamanhos de Fontes </th>
447 <th class="col0 leftalign"> \tiny </th><td class="col1 leftalign"> → tiny </td>
450 <th class="col0 leftalign"> \normalsize </th><td class="col1 leftalign"> → normal </td>
453 <th class="col0 leftalign"> \Huge </th><td class="col1 leftalign"> → largest </td>
456 <pre class="code latex">Exemplo de palavras <span class="re12">\tiny</span><span class="sy0">{</span><span class="re9">muito pequenas</span><span class="sy0">}</span>,
457 <span class="re12">\normalsize</span><span class="sy0">{</span><span class="re9">com tamanho normal</span><span class="sy0">}</span> e <span class="re12">\Huge</span><span class="sy0">{</span><span class="re9">muito grandes</span><span class="sy0">}</span>.</pre>
460 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:font_sizes.png" class="media" title="tutorials:latex:font_sizes.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=750&media=tutorials:latex:font_sizes.png" class="media" alt="" width="750" /></a>
464 <!-- SECTION "Tamanho de Fontes" [5453-5791] --></div>
466 <h1>Estruturação</h1>
467 <div class="slidecontent">
469 <li class="level1"><div class="li"> Documentos são estruturados através de ambientes</div>
471 <li class="level1"><div class="li"> Ambientes são delimitados por \begin{ambiente} e \end{ambiente}</div>
473 <li class="level1"><div class="li"> Tudo que aparece entre esses comandos pertence ao ambiente</div>
475 <li class="level1"><div class="li"> Ambientes podem ser aninhados</div>
480 <!-- SECTION "Estruturação" [5792-6041] --></div>
482 <h1>Mais Um Exemplo</h1>
483 <div class="slidecontent">
484 <pre class="code latex"><span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">document</span></span><span class="sy0">}</span>
485 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cmaketitle"><span class="kw1">maketitle</span></a> <span class="co1">% título</span>
486 <span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">abstract</span></span><span class="sy0">}</span>
487 <span class="co1">% resumo aqui</span>
488 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">abstract</span></span><span class="sy0">}</span>
489 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctableofcontents"><span class="kw1">tableofcontents</span></a> <span class="co1">% sumário</span>
490 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Csection"><span class="kw1">section</span></a><span class="sy0">{</span><span class="re9">Título da Primeira Seção</span><span class="sy0">}</span>
491 <span class="co1">% corpo da seção (1)</span>
492 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Csubsection"><span class="kw1">subsection</span></a><span class="sy0">{</span><span class="re9">Título da Primeira Sub-seção</span><span class="sy0">}</span>
493 <span class="co1">% corpo da sub-seção (1.1)</span>
494 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Csubsubsection"><span class="kw1">subsubsection</span></a><span class="sy0">{</span><span class="re9">Título da Sub-sub-seção</span><span class="sy0">}</span>
495 <span class="co1">% corpo da sub-sub-seção (1.1.1)</span>
496 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Csubsection"><span class="kw1">subsection</span></a><span class="sy0">{</span><span class="re9">Outra sub-seção</span><span class="sy0">}</span>
497 <span class="co1">% corpo da outra sub-seção (1.2)</span>
498 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Csection"><span class="kw1">section</span></a><span class="sy0">{</span>Outra Seção)
499 <span class="co1">% corpo da outra seção (2)</span>
500 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">document</span></span><span class="sy0">}</span></pre>
503 <!-- SECTION "Mais Um Exemplo" [6042-6583] --></div>
506 <div class="slidecontent">
507 <table class="inline">
509 <th class="col0 centeralign" colspan="2"> Tipos de Listas </th>
512 <th class="col0 leftalign"> itemize </th><td class="col1 leftalign"> → lista desordenada </td>
515 <th class="col0 leftalign"> enumerate </th><td class="col1 leftalign"> → lista ordenada </td>
518 <th class="col0 leftalign"> description </th><td class="col1 leftalign"> → lista descritiva </td>
523 <!-- SECTION "Listas" [6584-6740] --></div>
525 <h1>Exemplo Itemize</h1>
526 <div class="slidecontent">
527 <pre class="code latex"><span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">itemize</span></span><span class="sy0">}</span> <span class="co1">% início da lista desordenada</span>
528 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Citem"><span class="kw1">item</span></a> um item <span class="co1">% item da lista desordenada</span>
529 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Citem"><span class="kw1">item</span></a> outro item <span class="co1">% outro item da lista desordenada</span>
530 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">itemize</span></span><span class="sy0">}</span> <span class="co1">% fim da lista desordenada</span></pre>
533 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:itemize.png" class="media" title="tutorials:latex:itemize.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=125&media=tutorials:latex:itemize.png" class="media" alt="" width="125" /></a>
537 <!-- SECTION "Exemplo Itemize" [6741-7024] --></div>
539 <h1>Exemplo Enumerate</h1>
540 <div class="slidecontent">
541 <pre class="code latex"><span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">enumerate</span></span><span class="sy0">}</span> <span class="co1">% início da lista ordenada</span>
542 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Citem"><span class="kw1">item</span></a> primeiro item <span class="co1">% item da lista ordenada</span>
543 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Citem"><span class="kw1">item</span></a> segundo item <span class="co1">% outro item da lista ordenada</span>
544 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">enumerate</span></span><span class="sy0">}</span> <span class="co1">% fim da lista ordenada</span></pre>
547 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:enumerate.png" class="media" title="tutorials:latex:enumerate.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=125&media=tutorials:latex:enumerate.png" class="media" alt="" width="125" /></a>
551 <!-- SECTION "Exemplo Enumerate" [7025-7312] --></div>
553 <h1>Exemplo Description</h1>
554 <div class="slidecontent">
555 <pre class="code latex"><span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">description</span></span><span class="sy0">}</span> <span class="co1">% lista descritiva</span>
556 <span class="co1">% item da lista descritiva</span>
557 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Citem"><span class="kw1">item</span></a><span class="sy0">[</span><span class="re2">nome do item:</span><span class="sy0">]</span> descrição do item
558 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Citem"><span class="kw1">item</span></a><span class="sy0">[</span><span class="re2">nome do outro item:</span><span class="sy0">]</span> descrição do outro item
559 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">description</span></span><span class="sy0">}</span> <span class="co1">% fim da lista descritiva</span></pre>
562 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:description.png" class="media" title="tutorials:latex:description.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=500&media=tutorials:latex:description.png" class="media" alt="" width="500" /></a>
566 <!-- SECTION "Exemplo Description" [7313-7621] --></div>
569 <div class="slidecontent">
570 <table class="inline">
572 <th class="col0 centeralign" colspan="2"> Definição </th>
575 <th class="col0 leftalign"> \label{nome} </th><td class="col1 leftalign"> → colocado no lugar que será referenciado </td>
578 <th class="col0 centeralign" colspan="2"> Utilização </th>
581 <th class="col0 leftalign"> \ref{nome} </th><td class="col1 leftalign"> → referencia a seção, tabela, figura </td>
584 <th class="col0 leftalign"> \pageref{nome} </th><td class="col1 leftalign"> → referencia a página </td>
587 <th class="col0 leftalign"> \eqref{nome} </th><td class="col1 leftalign"> → referencia a equação </td>
592 <!-- SECTION "Referências" [7622-7905] --></div>
594 <h1>Exemplo de Referências</h1>
595 <div class="slidecontent">
596 <pre class="code latex"> <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Csection"><span class="kw1">section</span></a><span class="sy0">{</span><span class="re9">Informática</span><span class="sy0">}</span>
597 Esta seção fala sobre informática. <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Clabel"><span class="kw1">label</span></a><span class="sy0">{</span><span class="re9">inf</span><span class="sy0">}</span>
598 <span class="co1">% ...</span>
599 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Csection"><span class="kw1">section</span></a><span class="sy0">{</span><span class="re9">Conclusão</span><span class="sy0">}</span>
600 Como visto na seção <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cref"><span class="kw1">ref</span></a><span class="sy0">{</span><span class="re9">inf</span><span class="sy0">}</span> (pág. <span class="re4">\pageref</span><span class="sy0">{</span><span class="re9">inf</span><span class="sy0">}</span>),
601 a informática <span class="co1">% ...</span></pre>
604 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:references.png" class="media" title="tutorials:latex:references.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=300&media=tutorials:latex:references.png" class="media" alt="" width="300" /></a>
608 <!-- SECTION "Exemplo de Referências" [7906-8201] --></div>
610 <h1>Notas de Rodapé</h1>
611 <div class="slidecontent">
612 <pre class="code latex"> <span class="co1">% ...</span>
613 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cfootnote"><span class="kw1">footnote</span></a><span class="sy0">{</span><span class="re9">Esta é uma nota de rodapé.</span><span class="sy0">}</span>
614 <span class="co1">% ...</span></pre>
615 <pre class="code latex"> <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cauthor"><span class="kw1">author</span></a><span class="sy0">{</span><span class="re9">
616 Kauê Soares da Silveira
617 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cfootnote"><span class="kw1">footnote</span></a><span class="sy0">{</span>UFRGS</span><span class="sy0">}</span>
618 <span class="re12">\and</span> Fábio da Fontoura Beltrão
619 <span class="re12">\footnotemark</span><span class="sy0">[</span><span class="re2"><span class="re12">\value</span><span class="sy0">{</span><span class="re9">footnote</span><span class="sy0">}</span></span><span class="sy0">]</span> <span class="co1">% mesmo footnote anterior</span>
620 <span class="re12">\and</span> Matheus de Carvalho Proença
621 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cfootnote"><span class="kw1">footnote</span></a><span class="sy0">{</span><span class="re9">École Centrale de Marseille</span><span class="sy0">}</span>
622 <span class="sy0">}</span></pre>
625 <!-- SECTION "Notas de Rodapé" [8202-8585] --></div>
627 <h1>Fórmulas Matemáticas</h1>
628 <div class="slidecontent">
629 <table class="inline">
631 <th class="col0 leftalign"> $ … $ </th><td class="col1 leftalign"> → Inserção inline </td>
634 <th class="col0 leftalign"> $$ … $$ </th><td class="col1 leftalign"> → Inserção em nova linha </td>
637 <pre class="code latex"><span class="re3">$$ \<a href="http://www.golatex.de/wiki/index.php?title=%5Csum"><span class="kw1">sum</span></a>_<span class="sy0">{</span><span class="re9">i = 1</span><span class="sy0">}</span>^n a_i = <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cfrac"><span class="kw1">frac</span></a><span class="sy0">{</span><span class="re9">n(a_1 + a_n)</span><span class="sy0">}{</span><span class="re9">2</span><span class="sy0">}</span> $</span>$</pre>
640 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:soma_pa.jpg" class="media" title="tutorials:latex:soma_pa.jpg"><img src="/~kssilveira/site/lib/exe/fetch.php?w=250&media=tutorials:latex:soma_pa.jpg" class="media" title="soma_pa.jpg" alt="soma_pa.jpg" width="250" /></a>
644 <!-- SECTION "Fórmulas Matemáticas" [8586-8816] --></div>
646 <h1>Equação Numerada</h1>
647 <div class="slidecontent">
648 <pre class="code latex"><span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">equation</span></span><span class="sy0">}</span>
649 a^x + y <span class="re12">\neq</span> a^<span class="sy0">{</span><span class="re9">x + y</span><span class="sy0">}</span>
650 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Clabel"><span class="kw1">label</span></a><span class="sy0">{</span><span class="re9">eq_errada</span><span class="sy0">}</span> <span class="co1">% para posterior referência</span>
651 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">equation</span></span><span class="sy0">}</span>
653 Como mostrado em <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ceqref"><span class="kw1">eqref</span></a><span class="sy0">{</span><span class="re9">eq_errada</span><span class="sy0">}</span>, ...</pre>
656 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:equation_definition.png" class="media" title="tutorials:latex:equation_definition.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=750&media=tutorials:latex:equation_definition.png" class="media" alt="" width="750" /></a> <br/>
658 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:equation_reference.png" class="media" title="tutorials:latex:equation_reference.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=250&media=tutorials:latex:equation_reference.png" class="media" alt="" width="250" /></a>
662 <!-- SECTION "Equação Numerada" [8817-9112] --></div>
664 <h1>Equações Alinhadas</h1>
665 <div class="slidecontent">
666 <table class="inline">
668 <th class="col0 leftalign"> & </th><td class="col1 leftalign"> → Marca alinhamento </td>
671 <pre class="code latex"><span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">align*</span></span><span class="sy0">}</span> <span class="co1">% *: sem numerar</span>
672 a = b <span class="sy0">&</span><span class="re12">\iff</span> a^2 = ab <span class="sy0">\\</span>
673 <span class="sy0">&</span><span class="re12">\iff</span> a^2 - b^2 = ab - b^2 <span class="sy0">\\</span>
674 <span class="sy0">&</span><span class="re12">\iff</span> (a + b)(a - b) = b(a - b) <span class="sy0">\\</span>
675 <span class="sy0">&</span><span class="re12">\iff</span> a + b = b <span class="sy0">\\</span>
676 <span class="sy0">&</span><span class="re12">\iff</span> 2b = b <span class="sy0">\\</span>
677 <span class="sy0">&</span><span class="re12">\iff</span> 2 = 1
678 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">align*</span></span><span class="sy0">}</span></pre>
681 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:align.png" class="media" title="tutorials:latex:align.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=250&media=tutorials:latex:align.png" class="media" alt="" width="250" /></a>
685 <!-- SECTION "Equações Alinhadas" [9113-9446] --></div>
688 <div class="slidecontent">
689 <pre class="code latex">$$
690 <span class="re12">\mathbf</span><span class="sy0">{</span><span class="re9">A</span><span class="sy0">}</span> = <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cleft"><span class="kw1">left</span></a>(
691 <span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">array</span></span><span class="sy0">}{</span><span class="re9">ccc</span><span class="sy0">}</span> <span class="co1">% 3 colunas centralizadas</span>
692 a_<span class="sy0">{</span><span class="re9">11</span><span class="sy0">}</span> <span class="sy0">&</span> a_<span class="sy0">{</span><span class="re9">12</span><span class="sy0">}</span> <span class="sy0">&</span> <span class="re12">\cdots</span> <span class="sy0">\\</span>
693 a_<span class="sy0">{</span><span class="re9">21</span><span class="sy0">}</span> <span class="sy0">&</span> a_<span class="sy0">{</span><span class="re9">22</span><span class="sy0">}</span> <span class="sy0">&</span> <span class="re12">\cdots</span> <span class="sy0">\\</span>
694 <span class="re12">\vdots</span> <span class="sy0">&</span> <span class="re12">\vdots</span> <span class="sy0">&</span> <span class="re12">\ddots</span>
695 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">array</span></span><span class="sy0">}</span> <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cright"><span class="kw1">right</span></a>)
699 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:array.png" class="media" title="tutorials:latex:array.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=250&media=tutorials:latex:array.png" class="media" alt="" width="250" /></a>
703 <!-- SECTION "Matrizes" [9447-9715] --></div>
706 <div class="slidecontent">
707 <pre class="code latex"><span class="re3">$$
708 F_<span class="sy0">{</span><span class="re9">n</span><span class="sy0">}</span> = <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cleft"><span class="kw1">left</span></a><span class="sy0">\{</span><span class="re9">
709 <span class="re8">\begin</span><span class="sy0">{</span><span class="re7">array</span></span><span class="sy0">}{</span><span class="re9">ll</span><span class="sy0">}</span>
710 n <span class="sy0">&</span> n <span class="re12">\leq</span> 1 <span class="sy0">\\</span>
711 F_<span class="sy0">{</span><span class="re9">n - 1</span><span class="sy0">}</span> + F_<span class="sy0">{</span><span class="re9">n - 2</span><span class="sy0">}</span> <span class="sy0">&</span> n <span class="re12">\geq</span> 2 <span class="sy0">\\</span>
712 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">array</span></span><span class="sy0">}</span>
713 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cright"><span class="kw1">right</span></a>.
717 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:fibonacci.png" class="media" title="tutorials:latex:fibonacci.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=500&media=tutorials:latex:fibonacci.png" class="media" alt="" width="500" /></a>
721 <!-- SECTION "Fibonacci" [9716-9927] --></div>
724 <div class="slidecontent">
725 <pre class="code latex"><span class="co1">% no preâmbulo (antes do begin{document})</span>
726 <span class="re12">\newtheorem</span><span class="sy0">{</span><span class="re9">mur</span><span class="sy0">}{</span><span class="re9">Lei de Murphy</span><span class="sy0">}</span>
728 <span class="co1">% no corpo</span>
729 <span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">mur</span></span><span class="sy0">}[</span><span class="re2">enunciada por Edward A. Murphy</span><span class="sy0">]</span>
730 If there are two or more ways to do
731 something, and one of those ways can
732 result in a catastrophe, then someone
734 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">mur</span></span><span class="sy0">}</span></pre>
737 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:murphy.png" class="media" title="tutorials:latex:murphy.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=750&media=tutorials:latex:murphy.png" class="media" alt="" width="750" /></a>
741 <!-- SECTION "Teoremas" [9928-10271] --></div>
744 <div class="slidecontent">
748 Crie um artigo com o Teorema Fundamental do Cálculo:
752 <a href="/~kssilveira/site/lib/exe/detail.php?id=tutorials%3Alatex&media=tutorials:latex:teorema_calculo.png" class="media" title="tutorials:latex:teorema_calculo.png"><img src="/~kssilveira/site/lib/exe/fetch.php?w=750&media=tutorials:latex:teorema_calculo.png" class="media" alt="" width="750" /></a>
756 <!-- SECTION "Exercício" [10272-10395] --></div>
758 <h1>Corpos Flutuantes</h1>
759 <div class="slidecontent">
761 <li class="level1"><div class="li"> Tabelas ou figuras</div>
763 <li class="level1"><div class="li"> Podem ter legenda</div>
765 <li class="level1"><div class="li"> Podem ser referenciados</div>
767 <li class="level1"><div class="li"> Ambientes table ou figure</div>
772 <!-- SECTION "Corpos Flutuantes" [10396-10530] --></div>
774 <h1>Códigos de Modificação</h1>
775 <div class="slidecontent">
776 <table class="inline">
778 <th class="col0 leftalign"> h </th><td class="col1 leftalign"> → Aqui </td>
781 <th class="col0 leftalign"> t </th><td class="col1 leftalign"> → No topo de uma página </td>
784 <th class="col0 leftalign"> b </th><td class="col1 leftalign"> → Na base de uma página </td>
787 <th class="col0 leftalign"> p </th><td class="col1 leftalign"> → Em uma página só para isso </td>
790 <th class="col0 leftalign"> ! </th><td class="col1 leftalign"> → Força inserção </td>
796 Especificam onde o corpo flutuante poderá ser inserido.
800 <!-- SECTION "Códigos de Modificação" [10531-10791] --></div>
802 <h1>Comandos Relacionados</h1>
803 <div class="slidecontent">
804 <table class="inline">
806 <th class="col0 leftalign"> \caption{} </th><td class="col1 leftalign"> → Legenda </td>
809 <th class="col0 leftalign"> \label{} </th><td class="col1 leftalign"> → Rótulo </td>
812 <th class="col0 leftalign"> \listoftables </th><td class="col1 leftalign"> → Lista de Tabelas </td>
815 <pre class="code latex"><span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">table</span></span><span class="sy0">}[</span><span class="re2">htbp</span><span class="sy0">]</span>
816 <span class="co1">% ... como fazer tabelas em seguida</span>
817 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ccaption"><span class="kw1">caption</span></a><span class="sy0">{</span><span class="re9">Uma tabela em branco por enquanto</span><span class="sy0">}</span>
818 <span class="sy0">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Clabel"><span class="kw1">label</span></a><span class="sy0">{</span><span class="re9">tab_em_branco</span><span class="sy0">}</span>
819 <span class="re8">\end</span><span class="sy0">{</span><span class="re9"><span class="re7">table</span></span><span class="sy0">}</span></pre>
827 <!-- SECTION "Comandos Relacionados" [10792-] --></div>