Escolar Documentos
Profissional Documentos
Cultura Documentos
Dicas e Truques Latex Wide Screen
Dicas e Truques Latex Wide Screen
Recursos Adicionais
wide screen
AAAAAAAAAAAA X X LALEEEEEEEEEEEEX LTLXXXXXXXXXTX LEEEEEEEEEEEE TATLLLLLLLLL X LATTTTTTTTT TXA A A A A A A A A LXXXXXXXXX TLLLLLLLLT TTTTTTTT
Regis da Silva Santos rg3915 yahoo.com.br 2009
1 / 50
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Compilando por Linha de Comando - DOS Compilando arquivos em lotes Alterando numeracao do captulo Captulo personalizado Alterando numeracao do enumerate Ajustando largura das colunas Cabecalhos personalizados (Fancy Headings) ndice remissivo I ndice remissivo personalizado I ndice remissivo em 3 colunas I Expressoes matematicas com mesmo tamanho Reduzindo fonte de expressoes matematicas Inserindo sequencia a partir de macros do Winedt Inserindo arquivos PDF dentro de um arquivo TEX MarginPar apenas do lado esquerdo
Quando o arquivo contem guras PostScript 1 deve-se digitar a seguinte sequencia de comandos:
latex arquivo.tex dvips arquivo.dvi ps2pdf arquivo.ps
Esta sequencia cria o arquivo DVI, converte para PS e depois para PDF. Para o comando ps2pdf temos ainda a opcao de renomear o arquivo:
ps2pdf arquivo.ps novoarquivo.pdf
Obs: Se o arquivo contiver guras PostScript elas nao serao compiladas usando apenas este comando. Se desejar, tambem pode usar o comando dvi2pdf, para isso digite:
dvipdfm arquivo.tex
4 / 50
Se desejar acrescente mais arquivos na sequencia. Salve o arquivo com a extensao .bat e execute-o pelo Windows Explorer. Obs: O arquivo deve estar dentro da pasta onde sera compilado o arquivo TEX.
5 / 50
P: Como eu faco para alterar a numeracao do captulo. Eu queria que iniciasse a partir do captulo 2. R: Digite: \setcounter{chapter}{1}
6 / 50
Captulo Personalizado
A O LTEX dispoe de alguns layouts personalizados para captulos. Para isto car regue o pacote fncychap. Existem 7 opcoes. Para escolhe-las basta digitar, por exemplo:
\usepackage[Sonny]{fncychap} As opcoes sao: Bjarne, Bjornstrup, Conny, Glenn, Lenny, Rejne e Sonny
7 / 50
Captulo Personalizado
Package description
CHAPTER
ONE
PACKAGE DESCRIPTION
In this chapter a short introduction of the package will be given. The package has been written in order A for me to learn more about L TEX and TEX. I have no idea if this package is written in a good way. Thus, if anyone reads and tries FancyChapters I would appreciate any feedback, good or bad. The reason is that it will help me gain insight in writing macros. In any publication it is important to remember that consistency plays a important role. That is, with this package one can change the appearance of each chapter in the publication. However, this is not desirable so don't forget modesty and consistency.
he package fncychap has been written such that chapter level headings can be altered fast and for me A to learn more about L TEX and TEX. I have no idea if this package is written in a good way. Thus, if anyone reads and tries FncyChap I would appreciate any feedback. This will help me gain insight in writing macros. In any publication it is important to remember that consistency plays a important role. That is, with this package one can change the appearance of each chapter in the publication. However, this is not desirable so dont forget modesty and consistency.
1.1
The package is invoked by writing the following in the preamble of your document \usepackage[style]{fncychap} If the option, style, is omitted then the default denition of chapter is used. Originally, there were six predened chapter styles, namely Sonny, Lenny, Glenn, Conny, Rejne and Bjarne. The names corresponds to Swedish given names, almost surely (a.s.) like IKEA1 . Each such style has a default conguration and if that conguration is sucient, then this is all that is needed. In the present release of fncychap two additional chapter denitions have been included. The rst of these is named PetersLenny, after the author Peter Osborn. This chapter denition is based on Lenny, Peter has carefully tweaked the measures of the lines individually for each chapter (up to 20) and each appendix (up to Z). The second chapter head is a new one dened by Jean-Marc Francois and he named it Bjornstrup. Originally, fncychap did not rely on any other package. However, for the style Lenny a postscript font is default, but this font can easily be changed. I encourage the use of the default postscript font since it is scalable in a truly huge manner, which makes Lenny nice. In the current release and with the use of Jean-Marcs Bjornstrup the color package from the base distribution will be invoked.
If the option, style, is omitted then the default de nition of chapter is used. There are six prede ned chapter styles, namely Sonny, Lenny, Glenn, Conny, Rejne and Bjarne. The names corresponds to Swedish given names, almost surely (a.e.) like IKEA1. Each such style has a default con guration and if that con guration is su cient, then this is all that is needed. The package does not rely on any other package. However, for the style Lenny a postscript font is default, but this font can easily be changed. I encourage the use of the default postscript font since it is scalable in a truly huge manner, which makes Lenny nice.
1 reg.
Figura: Bjarne
Figura: Bjornstrup
8 / 50
Captulo Personalizado
PACKAGE DESCRIPTION
n this chapter a short introduction of the package will be given. The package has been written in order A for me to learn more about L TEX and TEX. I have no idea if this package is written in a good way. Thus, if anyone reads and tries FancyChapters I would appreciate any feedback, good or bad. The reason is that it will help me gain insight in writing macros. In any publication it is important to remember that consistency plays a important role. That is, with this package one can change the appearance of each chapter in the publication. However, this is not desirable so don't forget modesty and consistency.
CHAPTER 1
CHAPTER 1
PACKAGE DESCRIPTION
In this chapter a short introduction of the package will be given. The package has been written in order A for me to learn more about L TEX and TEX. I have no idea if this package is written in a good way. Thus, if anyone reads and tries FancyChapters I would appreciate any feedback, good or bad. The reason is that it will help me gain insight in writing macros. In any publication it is important to remember that consistency plays a important role. That is, with this package one can change the appearance of each chapter in the publication. However, this is not desirable so don't forget modesty and consistency.
If the option, style, is omitted then the default de nition of chapter is used. There are six prede ned chapter styles, namely Sonny, Lenny, Glenn, Conny, Rejne and Bjarne. The names corresponds to Swedish given names, almost surely (a.e.) like IKEA1. Each such style has a default con guration and if that con guration is su cient, then this is all that is needed. The package does not rely on any other package. However, for the style Lenny a postscript font is default, but this font can easily be changed. I encourage the use of the default postscript font since it is scalable in a truly huge manner, which makes Lenny nice.
If the option, style, is omitted then the default de nition of chapter is used. There are six prede ned chapter styles, namely Sonny, Lenny, Glenn, Conny, Rejne and Bjarne. The names corresponds to Swedish given names, almost surely (a.e.) like IKEA1. Each such style has a default con guration and if that con guration is su cient, then this is all that is needed. The package does not rely on any other package. However, for the style Lenny a postscript font is default, but this font can easily be changed. I encourage the use of the default postscript font since it is scalable in a truly huge manner, which makes Lenny nice.
Figura: Conny
Figura: Glenn
9 / 50
Captulo Personalizado
Chapter
1
I
CHAPTER
Package description
1 PACKAGE DESCRIPTION
CHAPTER 1
Package description
In this chapter a short introduction of the package will be given. The package has been written in order A for me to learn more about L TEX and TEX. I have no idea if this package is written in a good way. Thus, if anyone reads and tries FancyChapters I would appreciate any feedback, good or bad. The reason is that it will help me gain insight in writing macros. In any publication it is important to remember that consistency plays a important role. That is, with this package one can change the appearance of each chapter in the publication. However, this is not desirable so don't forget modesty and consistency.
n this chapter a short introduction of the package will be given. The package has been written in order A for me to learn more about L TEX and TEX. I have no idea if this package is written in a good way. Thus, if anyone reads and tries FancyChapters I would appreciate any feedback, good or bad. The reason is that it will help me gain insight in writing macros. In any publication it is important to remember that consistency plays a important role. That is, with this package one can change the appearance of each chapter in the publication. However, this is not desirable so don't forget modesty and consistency.
A for me to learn more about L TEX and TEX. I have no idea if this package is written in a good way. Thus, if anyone reads and tries FancyChapters I would appreciate any feedback, good or bad. The reason is that it will help me gain insight in writing macros. In any publication it is important to remember that consistency plays a important role. That is, with this package one can change the appearance of each chapter in the publication. However, this is not desirable so don't forget modesty and consistency.
In this chapter a short introduction of the package will be given. The package has been written in order
If the option, style, is omitted then the default de nition of chapter is used. There are six prede ned chapter styles, namely Sonny, Lenny, Glenn, Conny, Rejne and Bjarne. The names corresponds to Swedish given names, almost surely (a.e.) like IKEA1. Each such style has a default con guration and if that con guration is su cient, then this is all that is needed. The package does not rely on any other package. However, for the style Lenny a postscript font is default, but this font can easily be changed. I encourage the use of the default postscript font since it is scalable in a truly huge manner, which makes Lenny nice.
If the option, style, is omitted then the default de nition of chapter is used. There are six prede ned chapter styles, namely Sonny, Lenny, Glenn, Conny, Rejne and Bjarne. The names corresponds to Swedish given names, almost surely (a.e.) like IKEA1. Each such style has a default con guration and if that con guration is su cient, then this is all that is needed. The package does not rely on any other package. However, for the style Lenny a postscript font is default, but this font can easily be changed. I encourage the use of the default postscript font since it is scalable in a truly huge manner, which makes Lenny nice.
Figura: Lenny
Figura: Rejne
Figura: Sonny
10 / 50
P: Como eu faco para alterar a numeracao do enumerate? Eu queria iniciar a partir do numero 5, por exemplo. R: Use o comando \setcounter{enumi}{4}
%inicia o contador a partir do 5. \begin{enumerate}[M1] \setcounter{enumi}{4} \item quinto \item sexto \item stimo e \item oitavo \end{enumerate}
11 / 50
Uma opcao interessante para ajustar as larguras da pagina e usando o pacote geometry. Veja o exemplo: \usepackage[lmargin=2cm,rmargin=2cm,tmargin=3cm,bmargin=1.5cm]{geometry}
left (esquerda), right (direita), top (topo ou superior), bottom (inferior).
13 / 50
14 / 50
ndice remissivo I
A Para habilitar o recurso de indexacao do LTEX, o pacote makeidx precisa ser carregado no preambulo com:
\usepackage{makeidx} e os comandos de indexacao precisam ser habilitados pelo comando \makeindex no preambulo do arquivo de entrada. O conteudo do ndice remissivo e especicado com comandos \index{chave} onde chave e a entrada do ndice remissivo.
15 / 50
ndice remissivo I
\documentclass{report} \usepackage{makeidx} \makeindex \begin{document} Exemplo \index{Exemplo}. Espaco vetorial \index{Espaco!vetorial}, espaco mtrico \index{Espaco!mtrico} e e \printindex %no final do documento \end{document}
A Para gerar o ndice remissivo na compilacao, clique no cone LTEX para compilar a primeira vez; Depois clique no cone Make Index para gerar o ndice; A Depois clique novamente no cone LTEX para gerar o DVI nal.
Para inserir um ndice personalizado que tenha uma letra maiuscula em todas as letras do alfabeto no ndice remissivo, primeiro prepare o documento: Carregue o pacote makeidx; Antes de \begin{document} digite \makeindex; Para indexar uma palavra, no corpo do texto digite por exemplo, \index{funco}; a No nal do documento digite \printindex.
17 / 50
18 / 50
Salve o arquivo no formato .ist, por exemplo, indexstyle.ist. No DOS digite os seguintes comandos:
latex arquivo bibtex arquivo makeindex arquivo makeindex -s indexstyle.ist arquivo latex arquivo
19 / 50
20 / 50
www.latex-community.org
21 / 50
http://aprendolatex.wordpress.com
22 / 50
Exemplo p(x) = a0 + a1 x + a2 x2 + . . . + an xn
p(x)=a0 +a1 x+a2 x2 +...+an xn
p(x)=a0 +a1 x+a2 x2 +...+an xn
23 / 50
Selecione o numero de linhas que voce quer numerar, por exemplo 5. Clique em Tools/Enumerate Lines... Na guia Line Numbers
O modo padrao e portrait (retrato), para isto basta tirar a opcao landscape (paisa gem).
25 / 50
Esta e uma adaptacao que simula o comando \marginpar para que o conteudo que apenas do lado esquerdo das paginas. No exemplo, crie um novo contador e um novo comando:
\newcounter{exemplo} \newlength\larguraexemplo \setlength\larguraexemplo{1.5cm} \newcommand\exemplo{ \refstepcounter{exemplo} \par\noindent\hspace{-\larguraexemplo}\makebox[\larguraexemplo][l] {{\tiny ex.\theexemplo}}% }
Neste caso ira criar um exemplo com autonumeracao do lado esquerdo da pagina.
26 / 50
Exemplo
ex. 1 ex. 2
Texto texto texto texto texto texto texto texto texto texto texto. Texto texto texto texto texto texto texto texto texto texto texto.
27 / 50
28 / 50
Veja que o pacote color permitira o uso de cores no documento nal, que tera a extensao .pdf. As extensoes das guras que podem ser includas no documento sao: .png, .pdf, .jpg, .mps (METAPOST) e .tif. Logo apos o comando \begin{document} digite: \DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png}
A A inclusao do comando acima faz com que o LTEX procure por guras com as extensoes declaradas: primeiro jpg, depois pdf, depois mps e por ultimo png, isto signica que nao e necessario voce colocar a extensao do seu arquivo no comando \includegraphics. Lembre-se que guras .eps nao serao possveis neste pacote. Se nao houver outra forma, pode-se usar alguns aplicativos que transformam (wrap) ou embrulham o .eps em um dos formatos suportados.
www.tex-br.org
29 / 50
P: Quando eu tenho uma gura sem nenhuma descricao, como eu faco para tirar os dois pontinhos? Ou seja, normalmente ca Figura 1.1: mas eu quero Figura 1.1. R: Requer o pacote caption. Na gura digite:
\begin{figure} \centering \input{nome da figura} \captionsetup{labelsep=none} \caption{Legenda}\label{fig00} \end{figure}
30 / 50
de programas\MiKTeX 2.7\doc\latex\pst-eps.pdf
de programas\MiKTeX 2.7\doc\latex\pst-pdf.pdf.
32 / 50
As guras inseridas no Word devem estar no formato EPS, por oferecer uma melhor qualidade de impressao. Entao se voce zer uma gura em pstricks e salvar em EPS, ao inserir no Word ela cara com um fundo preto. Para corrigir este problema faca o seguinte: Abra o Corel Draw e crie um arquivo novo; Clique em Arquivo/Importar... e escolha a gura EPS; Escolha importar texto como curva; No Gerenciador de objetos escolha o ultimo objeto e delete a camada Bitmap monocromatico; Clique em Arquivo/Exportar... e salve a gura no mesmo formato EPS; Na caixa de opcoes escolha Fundo transparente, RGBcolor e Texto. Pronto! Agora a gura pode ser inserida no Word. Lembre-se que a qualidade em tela nao e muito boa, mas para impressao ca excelente.
33 / 50
Faca os mesmos procedimentos de construcao que no processo anterior, mas no Corel Draw salve clicando em Arquivo/Exportar para o Ofce.... E escolha a opcao Otimizado para Impressao comercial. Sua gura sera salva no formato PNG, formato ideal para o PowerPoint.
34 / 50
35 / 50
3 2
b
Figura: Antes
1 2
Figura: Depois
36 / 50
37 / 50
Salve-o como PSTricksMonochrome.sty. No preambulo do seu arquivo TEX, digite: \usepackage{PSTricksMonochrome} E depois de \begin{document}, digite: \PSTricksMonochrome% Agora todas as guras pstricks carao em preto e branco.
38 / 50
Subguras
Para subguras carregue o pacote subfigure.
\begin{figure}[!h] \centering \subfigure[Circunferncia]{\label{fig01a}% e \includegraphics[width=3cm]{figuras/figCirc}}\quad \subfigure[Elipse]{\label{fig01b}% \includegraphics[width=3cm]{figuras/figElipse}} \caption{Cnicas}\label{fig01} o \end{figure}
1 1
F1
F2
(a) Circunferencia
(b) Elipse
39 / 50
MiniPage
Minipage e um recurso interessante quando se deseja uma gura do lado da outra para economizar espaco na folha (mas nao signica que sao subguras). Digite: \begin{figure}[!h] \begin{minipage}[t]{0.45\textwidth} \centering \includegraphics[width=2.5cm]{figuras/figParabola} \caption{Parbola}\label{figParabola} a \end{minipage} \begin{minipage}[t]{0.45\textwidth} \centering \includegraphics[width=2.5cm]{figuras/figTriangulo} \caption{Tringulo}\label{figTriangulo} a \end{minipage} \end{figure}
2 1
A D
1 1
2
B
Figura: Parabola
Figura: Triangulo
40 / 50
Onde 5 e o numero de linhas a serem movidas para o lado, l (left) posiciona a gura do lado esquerdo e 3.5 cm e a largura da regiao onde vai car a gura.
P x
a O
Figura: Legenda
41 / 50
A opcao l (left) posiciona a gura do lado esquerdo e 0.4\textwidth signica que a gura tera 40% da largura do texto.
Plo Sul o
Figura: Legenda
42 / 50
2
1 \begin{pspicture}[showgrid=true](0,0)(2,2) 2 \psline[linecolor=red,linestyle=dashed](1,1)(1.71,1.71) 3 \pscircle[linecolor=blue](1,1){1} 4 \psdots[linecolor=blue](1,1) 5 \end{pspicture}
0
Importante: Para remover o quadro sobre a gura digite a opcao rframe={}. www.tug.org/PSTricks/ - (group)
43 / 50
44 / 50
%continuaco a \node[xshift=4cm,yshift=-4.2cm] at (current page.north west) {\begin{tikzpicture}[remember picture, overlay] \draw[smooth,samples=100,domain=0.0:2.75,color=blue] plot(\x,{0.5*sin(2*\x r)-0.3}); \draw[smooth,samples=100,domain=0.0:3.2,color=blue] plot(\x,{0.5*cos(2*\x r)-0.3}); \end{tikzpicture} }; \end{tikzpicture} } \titlespacing*{\chapter}{0pt}{80pt}{0pt}
45 / 50
Veja como foi feita a tela de apresentacao deste material. Requer os pacotes tikz e animate, entre outros do beamer.
\documentclass[svgnames]{beamer} \usepackage{tikz} \usepackage{animate} \usepackage{wasysym} %fonte especial. %Definico de novas cores. a \definecolor{ciano}{rgb}{0,0.63,0.88} \definecolor{azul}{rgb}{0.19,0.35,0.69} \definecolor{azulB}{rgb}{0.27,0.49,0.82} \definecolor{azulC}{rgb}{0.29,0.56,0.85} \definecolor{azulD}{rgb}{0.13,0.36,0.87} \definecolor{azulE}{rgb}{0.14,0.41,0.65} \begin{document} \begin{frame} \begin{center} ...
46 / 50
47 / 50
%Tela de apresentaco com plano de fundo personalizado. a \begin{tikzpicture}[remember picture,overlay] \node at (current page.south west) {\begin{tikzpicture}[remember picture, overlay] \node (A) at (0,0) {}; \node (B) at (0.78\paperwidth,0.27\paperheight) {}; \node (C) at (0.78\paperwidth,0) {}; \node (D) at (0,0.27\paperheight) {}; \node (E) at (0.78\paperwidth,0.39\paperheight) {}; \node (F) at (\paperwidth,0.39\paperheight) {}; \node (G) at (0.78\paperwidth,\paperheight) {}; \node (H) at (\paperwidth,\paperheight) {}; \fill[bottom color=azulE,top color=ciano] (A) rectangle (G); \fill[bottom color=azulB,top color=azulC] (C) rectangle (H); \fill[color=azul] (D) rectangle (E); \fill[color=azulD] (B) rectangle (F); \draw[color=white] (0.39\paperwidth,0.35\paperheight) node {\bf DICAS \& TRUQUES}; \draw[color=white] (0.39\paperwidth,0.31\paperheight) node {\scriptsize Recursos Adicionais}; \draw[color=white] (0.89\paperwidth,0.27\paperheight) node[below] {\tiny Rgis da Silva Santos}; e \draw[color=white] (0.89\paperwidth,0.27\paperheight) node[below=8pt] {\tiny rg3915 $\smiley$ yahoo.com.br}; \draw[color=white] (0.89\paperwidth,0.27\paperheight) node[below=16pt] {\tiny 2009}; \end{tikzpicture} }; \end{tikzpicture} \end{frame}
48 / 50
Baixe o pacote em www-i6.informatik.rwth-aachen.de/dreuw/download/beamerposter.sty.110. Se quiser voce ainda pode mudar o tamanho da fonte de uma forma geral com o comando
\renewcommand*{\normalfont}{\footnotesize} %fonte menor.
www-i6.informatik.rwth-aachen.de/dreuw/latexbeamerposter.php#169-slides
49 / 50
A www.dm.ufscar.br/sadao/curso/latex/ - O primeiro site que voce deve entrar para obter informacoes sobre LTEX e o do Sadao Massago. No nal da pagina de curso via exemplos voce encontra varios outros links interessantes.
www.ctan.org/tex-archive/info/lshort/portuguese-BR/lshortBR.pdf Manual IshortBR.pdf. Indispensavel. www.ctan.org A Distribuidor de conteudo LTEX. Nele voce encontra todos os pacotes, documentacao, etc. www.tex-br.org Site brasileiro, ideal para iniciantes e intermediarios. Contem varias dicas, interessantes. www.tug.org A Alem de informacoes sobre o LTEX, voce encontra muitas informacoes sobre o pacote pstricks. www.dante.de/CTAN/graphics/pstricks/base/doc/pstricks-doc.pdf Manual de Pstricks. www.tug.org/PSTricks/main.cgi?file=examples Exemplos de Pstricks. www.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf Manual de PGF/TikZ. www.texample.net/tikz/examples/ Exemplos de TikZ.
50 / 50