1 / 25

Latex

Latex. Erika Guimarães Pereira da Fonseca. Primeira Aula. Textos. Instalação. No windows: Baixe uma versão do MiKTeX. Para uma interface mais agradável baixe e instale o Texmaker. No Linux: Debian: 1.#aptitude install tetex-base tetex-extra tetex-bin texlive texlive-base texlive.

Download Presentation

Latex

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Latex Erika Guimarães Pereira da Fonseca

  2. Primeira Aula Textos

  3. Instalação No windows: • Baixe uma versão do MiKTeX. • Para uma interface mais agradável baixe e instale o Texmaker. No Linux: • Debian: • 1.#aptitude install tetex-base tetex-extra tetex-bin texlive texlive-base texlive. • Gentoo: • 1.#emerge -va tetex

  4. Organização • O arquivo é dividido da seguinte maneira: • Preâmbulo(estilo, tipo do documento, bibliotecas). • Ambiente – iniciado com \begin(document) -terminado com \end(document)

  5. Exemplo de Preâmbulo • \documentclass[a4paper,12pt]{report} • \usepackage[brazilian]{babel} • \usepackage[T1]{fontenc} • \usepackage{ae} • \usepackage[ansinew]{inputenc} • \usepackage{graphicx}

  6. Divisão do Documento • Capa:\title{título} \author{autor} \begin{document} \maketitle • Sumário :\tableofcontents • Capítulo:\chapter{titulo} *So pode ser usado em "modo" livro • Seção: \section{titulo} • Subseção:\subsection{txt} PS: Para que as divisões não sejam enumeradas basta acrescentar um *antes do {.

  7. Acentuação • \c{c} – ç \\ • \`{e} – è\\ • \'{e} – é\\ • \^{e} – ê\\ • \~{a} – ã\\ • \"{q} – ¨\\ Caracteres Especiais ~ ^ # $ % & _ { } PS:Utilise \ antes dos caracteres.

  8. Estilos de Letras e Tamanhos • \textbf{o que esta escrito aqui fica em negrito} –para um texto todo em negrito \bf antes do texto, no final \normalfont. • \it{Italico} –para um texto em itálico \it antes e \normalfont depois. • \underline{sublinhado} Tamanhos: • {\tiny{texto}} – pequeno. • {\large{texto}} – um pouco acima do normal. • {\LARGE{texto}} – grande. • {\Huge{texto} }– muito grande.

  9. Paragrafos • Para destacar uma sentença: \begin{quotation} ... \end{quotation} • \\ --quebra de linha • \par --ele quebra a linha e começa a outra com paragrafo. • \newpage --nova pagina • \pagebreak --quebra a pagina. É util quando tem uma figura ou texto dividido entre paginas

  10. Alinhamento • Para centralizar: \begin{center} ... \end{center} • Com o ambiente flushleft o texto é alinhado a esquerda. • E com o ambiente flushright o texto é alinhado a direita.

  11. Listas • \begin{itemize} \item primeiro item \item segundo item \item[$\clubsuit$] terceiro item personalizado \end{itemize} • \begin{enumerate} \item item \begin{enumerate} \item subitem \end{enumerate} \end{enumerate}

  12. Comentários • \mbox{palavra} – divide a palavra corretamente. • \footnote{texto} –inseri uma nota no final da página. • \marginpar{texto} –inseri uma nota na altura do texto em que foi colocada. • \footnote{texto} -> Apresenta no final do texto um breve comentario sendo este enumerado automaticamente.

  13. Textos Pré-Formatados • Para textos e paragrafos: \begin{verbatim} texto, pode ser de programação. \end{verbatim} • Para palavras: \verb= Ã =

  14. Segunda Aula Ambientes Matemáticos

  15. Fórmulas • Inserir fórmulas: entre $ fórmula $ • ^ -> elevado à. • b^{e} Subescritos. • b_ Sobrescritos. • Frações: (a+b)/2. \frac{numerador}{denominador} • Raizes: $\sqrt[3]{8}$ • Funções: $log_{b}a \cos^ 2x+\sin^ 2x=1 \cos90^ \circ=0$.

  16. Array • Divide o texto em linhas e colunas • Ex:\begin{equation} \begin{array}{lr} x & y \\ z & w \\ \end{array} \end{equation}

  17. Matrizes • Os comandos \left \right servem para a limitar as partes esquerda e direita. • Ex:\[ \left( \begin{array}{c} x\\ y \end{array} \right) \]

  18. Equações • Modulo -> \mid ; • Maior ou Igual -> \ge Ex:\begin{equation} \mid x-1 \mid \,= \left \{ \begin{array}{cc} x-1,&x\ge 1\\ 1-x,&x<1\\ \end{array} \right\} -> Para fechar com nada coloca-se um ".” \end{equation}

  19. Fórmulas em várias linhas • Ex: \begin{eqnarray} x & = & m + n + p \\ y & = & z + w + u \nonumber \\ x & & p + n \end{eqnarray} Linhas Ex: $\overline{\overline{A}+B}$

  20. Tabelas • Ex: \begin{tabular}{|c|l|r|c|} \hline jan&fev&mar&abr \\ \hline mai&jun&jul&ago \\ \cline{1-1} \cline{3-4} set&out&nov&dez \\ \hline \end{tabular} • As barras | indicam se haverá linhas entre as colunas. • As letras c, l e r indicam para onde estará alinhada. • A letra & separa as colunas.

  21. Table • \begin{table}[t] ->Alinhamento da tabela b(inferior),t(superior),h("here"),p(pagina separada) \centering \begin{tabular}{|l|ll|} \hline seg & \multicolumn{2}{c|}{ter\c{c}a} \\ \hline 10 & 15 & 20 \\ 15 & 10 & 25 \\ \hline \end{tabular} \caption{Tabela} ->Da nome a tabela e tem que ser usado dentro do "table“. \end{table}

  22. Referência Cruzada • Quando se tem uma fórmula no texto, geralmente se faz referência a mesma, para isto no :atex há uma função. • Ex: \begin{equation} a^{2}+ b^{2}=c^{2} \label{equ:pitágoras} \end{equation} Consulte a \ref{equ:pitágoras} que é a equação de Pitágoras.

  23. Figuras • \begin{figure}[argumento de posição como no table] \includegraphics[medidas]{nome do arquivo}\\ \caption{Título da figura.} \label{código de referência} \end{figure} • As medidas são os parâmetros: • width Largura; • height Altura; • angle Rotaciona a figura no sentido anti-horário. • scale Muda a escala da figura.

  24. Ex: • \begin{figure}[h] • \centering • \includegraphics[width=8cm, heitght=10cm]{figuradeentr.jpg} • \caption{Diagrama de Blocos} • \end{figure}

  25. Subfiguras • \begin{figure}[h] \centering \subfigure[Primeira\label{fig:pri}]{\includegraphics{miktex.jpg}} \subfigure[Segunda\label{fig:seg}]{\includegraphics{miktex.jpg}} \center{\subfigure[Terceira\label{fig:ter}]{\includegraphics{miktex.jpg}}} \caption{Conjunto de figuras.} \label{fig:conj} \end{figure} \end{document}

More Related