Mudanças entre as edições de "Editoração em LaTeX"

De WikiLICC
Ir para: navegação, pesquisa
(Dicas)
m (Ver também)
 
(8 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
 
==Dicas==
 
==Dicas==
 +
Para procurar um símbolo em especial utilize
 +
* http://detexify.kirelabs.org/classify.html
 +
 
Definindo vetores:
 
Definindo vetores:
  
Linha 12: Linha 15:
 
  \DeclareMathOperator{\sen}{sen}
 
  \DeclareMathOperator{\sen}{sen}
 
  \DeclareMathOperator{\senh}{senh}
 
  \DeclareMathOperator{\senh}{senh}
 +
 +
Múltiplos índices no somatório:
 +
 +
\sum_{\substack{i=0 \\ i < j} P(i,j)
 +
 +
ou
 +
 +
\sum_{\begin{subarray}{l}
 +
i=0 \\ i < j
 +
\end{subarray}} P(i,j)
 +
 +
Primeira e segundo
 +
1\textordfeminine, 2\textordmasculine
 +
 +
===Numeração de páginas===
 +
Numeração de páginas a direita no topo
 +
\pagestyle{headings}
 +
Numeração de páginas a direita no topo com texto MeuTexto
 +
\pagestyle{myheadings}
 +
\markright{MeuTexto}  % para book, report article
 +
%\markboth{MeuTexto}  % para book
  
 
== Teste longo==
 
== Teste longo==
 
Veja abaixo um teste mais longo:
 
Veja abaixo um teste mais longo:
 
  \documentclass[11pt]{article}
 
  \documentclass[11pt]{article}
  \usepackage{amsmath,amsfonts}   % \mathbb, para fontes matematicas
+
  \usepackage{amsmath,amsfonts}     % \mathbb, para fontes matematicas
  \usepackage{amssymb,amsthm}     % simbolos matematicos e teoremas
+
  \usepackage{amssymb,amsthm}       % simbolos matematicos e teoremas
 
  \usepackage{graphicx}
 
  \usepackage{graphicx}
 +
\usepackage[latin1]{inputenc}    % caracteres acentuados no texto
 
   
 
   
 
  \author{Nome do Aluno}
 
  \author{Nome do Aluno}
  \title{MAP0003-Métodos Numéricos para Equações Diferenciais\\Lista 1}
+
  \title{Lista de Exercícios 1}
 
   
 
   
  \newcommand{\R}{\mathbb{R}}                 % Campo dos Reais
+
  \newcommand{\R}{\mathbb{R}}       % Reais
  \newcommand{\norm}[1]{\| #1 \|}             % Norma
+
  \newcommand{\norm}[1]{\| #1 \|}   % Norma
 
   
 
   
 
  %----------------------------------------------------------------------------------------
 
  %----------------------------------------------------------------------------------------
Linha 70: Linha 95:
 
   
 
   
 
  \end{document}
 
  \end{document}
 +
 +
==Contadores==
 +
\documentclass[11pt]{report}
 +
\usepackage{amsmath,amstext,amsthm,amsfonts,latexsym,bm}
 +
\usepackage[a4paper,showframe]{geometry}
 +
\pagestyle{empty}
 +
 +
%\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
 +
%\renewcommand{\thefigure}{15.\arabic{figure}}
 +
 +
\renewcommand{\thetable}{\thechapter.\arabic{table}}
 +
%\renewcommand{\thetable}{15.\arabic{table}}
 +
 +
\begin{document}
 +
\chapter{Primeiro}
 +
 +
\setcounter{figure}{1}
 +
\setcounter{chapter}{15}
 +
\chapter{Segundo}
 +
 +
\begin{table}[h]
 +
  \centering
 +
  \begin{tabular}{|c|c|}
 +
    \hline
 +
    Txt & Txt \\
 +
    \hline
 +
  \end{tabular}
 +
  \caption{Esta é a primeira}\label{Tab1}
 +
\end{table}
 +
 +
 +
\begin{table}[h]
 +
  \centering
 +
  \begin{tabular}{|c|c|}
 +
    \hline
 +
    Txt & Txt \\
 +
    \hline
 +
  \end{tabular}
 +
  \caption{Esta é a primeira}\label{Tab2}
 +
\end{table}
 +
 +
 +
===Numbering===
 +
 +
Each of these objects are numbered in LaTeX with a counter:
 +
 +
\begin{table}[h]
 +
  \centering
 +
  \begin{tabular}{|c|c|c|c|}
 +
    \hline
 +
    part        & paragraph    & figure    & enumi \\
 +
    chapter      & subparagraph  & table    & enumii \\
 +
    section      & page          & footnote  & enumiii \\
 +
    subsection  & equation      & mpfootnote & enumiv \\
 +
    subsubsection & & & \\
 +
    \hline
 +
  \end{tabular}
 +
  \caption{Esta é a primeira}\label{Tab3}
 +
\end{table}
 +
 +
The code word that prints the current value of the counter in your document is \thecounter. That is, \thepart, \thechapter, \thesection and so on.
 +
 +
The appearance of these counters, and your own counters, can be changed:
 +
 +
You can change the way the number is printed. Quoting from Lamport (p.92), if the page counter has value 4, then you have these choices:
 +
\arabic{page}  4
 +
\roman{page} iv
 +
\Roman{page} IV
 +
\alph{page} d
 +
\Alph{page} D
 +
 +
To change the numbering style, even half way through your document, you simply renew it:
 +
 +
\verb#\renewcommand{\thefigure}{\thechapter.\arabic{figure}}#
 +
 +
Mais em
 +
\verb#http://www.iam.ubc.ca/old_pages/newbury/tex/numbering.html#
  
 
==Ver também==
 
==Ver também==
 
Volta para [[Auxílio aos usuários do LICC]]
 
Volta para [[Auxílio aos usuários do LICC]]
 +
 +
[[Categoria:Latex]]

Edição atual tal como às 15h34min de 10 de junho de 2010

Dicas

Para procurar um símbolo em especial utilize

Definindo vetores:

\vec{x}

Redefinindo vetores para aparecerem em negrito

\renewcommand{\vec}[1]{\mathbf{#}}

Declarando operadores matemáticos novos:

\DeclareMathOperator{\sen}{sen}
\DeclareMathOperator{\senh}{senh}

Múltiplos índices no somatório:

\sum_{\substack{i=0 \\ i < j} P(i,j)

ou

\sum_{\begin{subarray}{l}
i=0 \\ i < j
\end{subarray}} P(i,j)

Primeira e segundo

1\textordfeminine, 2\textordmasculine

Numeração de páginas

Numeração de páginas a direita no topo

\pagestyle{headings}

Numeração de páginas a direita no topo com texto MeuTexto

\pagestyle{myheadings}
\markright{MeuTexto}  % para book, report article
%\markboth{MeuTexto}   % para book

Teste longo

Veja abaixo um teste mais longo:

\documentclass[11pt]{article}
\usepackage{amsmath,amsfonts}     % \mathbb, para fontes matematicas
\usepackage{amssymb,amsthm}       % simbolos matematicos e teoremas
\usepackage{graphicx}
\usepackage[latin1]{inputenc}     % caracteres acentuados no texto

\author{Nome do Aluno}
\title{Lista de Exercícios 1}

\newcommand{\R}{\mathbb{R}}       % Reais
\newcommand{\norm}[1]{\| #1 \|}   % Norma

%----------------------------------------------------------------------------------------
\begin{document}
\maketitle

\textbf{ Exercício 1} Instale uma versão do Latex (Miktex) e WinEdt.

\textbf{ Exercício 2} Dois tipos de figuras dentre outros. Veja uma figura bitmap \ref{Fig1}:
\begin{figure}[htb]
\begin{center}
  \includegraphics[bb=0 0 3cm 3cm]{figura1.bmp}
  \caption{Uma função quadrática.}\label{Fig1}
\end{center}
\end{figure}

e uma figura eps:
\begin{figure}[htb]
\begin{center}
  \includegraphics[width=3cm,height=3cm]{figura1.eps}
  \caption{Outra figura.}\label{Fig2}
\end{center}
\end{figure}

\textbf{ Exercício 2} Este é um exemplo de exercício. Calcule as raízes de uma equação quadrática.

A fórmula abaixo calcula as raízes de uma equação quadrática:
\begin{equation}
   x_{1,2} = \frac{-b \pm \sqrt{b^2-4ac}}{2a}
\end{equation}

Utilize o ambiente verbatim para colocar códigos:
\begin{verbatim}
  function x=raiz(a,b,c)
   x(1) = (-b + sqrt(b^2-4*a*c))/(2*a);
   x(2) = (-b - sqrt(b^2-4*a*c))/(2*a);
  end
\end{verbatim}

Aqui vai uma lista:
\begin{enumerate}
 \item Item A da lista;
 \item Item B da lista.
\end{enumerate}

\end{document}

Contadores

\documentclass[11pt]{report}
\usepackage{amsmath,amstext,amsthm,amsfonts,latexsym,bm}
\usepackage[a4paper,showframe]{geometry}
\pagestyle{empty}
%\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
%\renewcommand{\thefigure}{15.\arabic{figure}}
\renewcommand{\thetable}{\thechapter.\arabic{table}}
%\renewcommand{\thetable}{15.\arabic{table}}
\begin{document}
\chapter{Primeiro}
\setcounter{figure}{1}
\setcounter{chapter}{15}
\chapter{Segundo}
\begin{table}[h]
 \centering
 \begin{tabular}{|c|c|}
   \hline
   Txt & Txt \\
   \hline
 \end{tabular}
 \caption{Esta é a primeira}\label{Tab1}
\end{table}


\begin{table}[h]
 \centering
 \begin{tabular}{|c|c|}
   \hline
   Txt & Txt \\
   \hline
 \end{tabular}
 \caption{Esta é a primeira}\label{Tab2}
\end{table}


Numbering

Each of these objects are numbered in LaTeX with a counter:

\begin{table}[h]
 \centering
 \begin{tabular}{|c|c|c|c|}
   \hline
   part         & paragraph     & figure    & enumi \\
   chapter      & subparagraph  & table     & enumii \\
   section      & page          & footnote  & enumiii \\
   subsection   & equation      & mpfootnote & enumiv \\
   subsubsection & & & \\
   \hline
 \end{tabular}
 \caption{Esta é a primeira}\label{Tab3}
\end{table}

The code word that prints the current value of the counter in your document is \thecounter. That is, \thepart, \thechapter, \thesection and so on.

The appearance of these counters, and your own counters, can be changed:

You can change the way the number is printed. Quoting from Lamport (p.92), if the page counter has value 4, then you have these choices:

\arabic{page}  4
\roman{page} iv
\Roman{page} IV
\alph{page} d
\Alph{page} D

To change the numbering style, even half way through your document, you simply renew it:

\verb#\renewcommand{\thefigure}{\thechapter.\arabic{figure}}#

Mais em

\verb#http://www.iam.ubc.ca/old_pages/newbury/tex/numbering.html#

Ver também

Volta para Auxílio aos usuários do LICC