Beruflich Dokumente
Kultur Dokumente
carlos.alexandre@engenharia.ufjf.br
Introduo
Sobre o LATEX
Link:
http://pt.sharelatex.com
q Principais pacotes:
q \usepackage[brazil]{babel}: gera datas e nomes em
portugus com o estilo brasileiro.
q \usepackage[utf8]{inputenc}: permite o uso de
caracteres com acentos. Se no funcionar, substitua utf8
por latin1.
q \usepackage{amsmath}: permite o uso de comandos
matemticos.
q \usepackage{color}: pacote para colorir o texto.
q \usepackage{graphicx}: permite incluir figuras.
\documentclass[a4paper,12pt]{article}
% Obrigatrio, tipo de documento (artigo) e opes de documento.
\usepackage[brazil]{babel} % Reconhecer texto em portugus
\usepackage[utf8]{inputenc} % Aceitar caracteres com acentos
Unidade Comprimento
mm (milmetro) aprox. 1/25 polegadas
cm (centmetro) 10 milmetros
in (polegada) 25.4 milmetros
pt (ponto) aprox. 1/3 milmetros
em aprox. largura de um M
ex aprox. altura de um x
Tabela: Unidades de medida
1
Prioridade de quebrar linha
2
Prioridade de no quebrar linha
Carlos Alexandre de A. Pires Minicurso de LATEX
Aspas, traos, hifens
e reticncias
Nota:
Caso se queira manter as propores, indicamos apenas uma
das duas dimenses e a outra substitua por !.
\emph{nfase} nfase
\textit{itlico} itlico
\textbf{negrito} negrito
\textrm{romano} romano
\textsf{sans serif} sans serif
\texttt{mquina de escrever} mquina de escrever
\textsc{caixa alta} CAIXA ALTA
\uline{sublinhado} sublinhado
\uuline{duplo sublinhado} duplo sublinhado
\uwave{sublinhado curvo} sublinhado curvo
:::::::::::::::::
\sout{riscado} riscado
\xout{muito riscado} muito
/////// //////////
riscado
\textcolor{blue}{Azul} Azul
\textcolor{red}{Vermelho} Vermelho
\textcolor{green}{Verde} Verde
\textcolor{purple}{Roxo} Roxo
\textcolor{cordosol}{Cor do Sol} Cor do Sol
\fcolorbox{black}{cordosol}{LaTeX} LaTeX
\colorbox{green}{Texto} Texto
Nota:
A cor cordosol foi previamente definida no documento como
j visto.
Nota:
Tambm h pequenos comandos para alinhar ambientes que
so: \centering (centralizar), \flushleft ( esquerda) e
\flushright ( direita).
\begin{flushright}
Texto direita.
\end{flushright} Texto direita.
\begin{center}
Texto centralizado. Texto centralizado.
\end{center}
\begin{flushleft} Texto esquerda.
Texto esquerda.
\end{flushleft}
\begin{enumerate}
\item Pode misturar
ambientes de listas:
\begin{itemize} 1. Pode misturar ambientes
de listas:
\item Mas pode ser
q Mas pode ser muito
muito pattico.
pattico.
\item[-] Com um hfen, - Com um hfen,
\end{itemize}
2. Portanto, lembre-se:
\item Portanto, lembre-se:
\begin{description} Estude muito.
\item[Estude] muito. Seja feliz.
\item[Seja] feliz.
\end{description}
\end{enumerate}
Carlos Alexandre de A. Pires Minicurso de LATEX
Figuras
\begin{figure}[!h]
\centering
\includegraphics[scale=0.05]
{Imagens/Latex} Figura: Figura 1
\caption{Figura 1}
\end{figure}
\begin{table}
\begin{tabular}[c]{|r|l|}
\hline
7C0 hexadecimal
7C0 & hexadecimal \\
3700 octal
3700 & octal \\ \cline{2-2}
11111000000 binrio
11111000000 & binrio \\
\hline \hline 1984 decimal
1984 & decimal \\ Tabela: Tabela 1
\hline
\end{tabular}
\caption{Tabela 1}
\end{table}
q \multirow{numLinhas}{largura}{texto} o comando
que permita o texto mesclar vrias linhas. Necessrio o
pacote \usepackage{multirow}.
q No caso que queira manter a largura padro da linha,
coloque * (asterisco) na especificao largura.
\begin{table}
\begin{tabular}{c r @{.} l}
Expresso Pi &
\multicolumn{2}{c}{Valor} \\ Expresso Pi Valor
\hline 3.1416
$\pi$ & 3 & 1416 \\ 36.46
$\pi^{\pi}$ & 36 & 46 \\ ( ) 80662.7
$(\pi^{\pi})^{\pi}$ Tabela: Tabela 2
& 80662 & 7 \\
\end{tabular}
\caption{Tabela 2}
\end{table}
\begin{table}
\begin{tabular}{|l|l|}
\hline Times
\multicolumn{2}{|c|}{Times} \\ Time 1 GK
\hline LB
Time 1 & GK \\ \hline DC
\multirow{4}{*}{Time 2} & LB \\ Time 2
DC
& DC \\ RB
& DC \\
Tabela: Tabela 3
& RB \\ \hline
\end{tabular}
\caption{Tabela 3}
\end{table}
\begin{equation}
\label{pitagoras}
a2 + b 2 = c 2 (1)
a^2 + b^2 = c^2
\end{equation} A equao (1) o teorema de
pitgoras.
A equao \eqref{pitagoras}
o teorema de pitgoras.
\mathrm{abc...} abcdefghijklmnopqrstuvwzyz
\mathit{abc...} abcdefghijklmnopqrstuvwzyz
\mathsf{abc...} abcdefghijklmnopqrstuvwzyz
\mathtt{abc...} abcdefghijklmnopqrstuvwzyz
\mathbf{abc...} abcdefghijklmnopqrstuvwzyz
\mathcal{ABC...} ABCDEFGHIJ KLMN OPQRST UVWX YZ
\mathbb{ABC...} ABCDEFGHIJKLMNOPQRSTUVWXYZ
\mathscr{ABC...} ABCDEFGHIJKLMNOPQRSTUVWXYZ
$$ a + b = c $$
a+b =c
$$ a - b = d $$ ab =d
$$ a \cdot b = e $$ ab =e
$$ a / b = f $$ a/b = f
$$ \frac{a}{b \cdot c} = d $$ a
=d
bc
$$ x < a $$ x <a
$$ y > b $$ y >b
$$ x\in\mathbb{N} x NZ
\subset\mathbb{Z} $$
$$ x < 6 \quad
\mbox{e} \quad y > 7 $$ x <6 e y >7
$$ x^4 = 9 $$ x4 = 9
xi = 7
$$ x_i = 7 $$
xi7 = 3
$$ x_i^7 = 3 $$
4=2
$$ \sqrt{4} = 2 $$ p
1.3
42 + 24
$$ \sqrt[1.3]{4^2 + 2^4}$$
ln 67
$$ \ln \; 67 $$
log9 67
$$ \log_9 \; 67 $$
$$ \underbrace{a+b+ {z + z}
|a + b +
\cdots+z}_{27} $$ 27
n
$$ \overbrace{p_1+p_2+
z }| {
p1 + p2 + + pn
\cdots+p_n}^{n} $$
m+n
$$ \overline{m+n} $$
$$ \overline{\overline{o}+p} $$ o+p
$$ \underline{A+B} $$
A+B
45x
$$ \lim_{y \to 0} lim
y 0 x2
\frac{45x}{x^2} $$
Z 67
$$ \int_0^{67} f(x) \; dx $$ f (x) dx
0
f 0 (x) = 89x 8
$$ f'(x) = 89x - 8 $$
f 00 (x) = 89
$$ f''(x) = 89 $$
dx
$$ \frac{dx}{dy} = 89x - 8\pi $$ = 89x 8
dy
$$ \frac{\partial x}{\partial y} x
= x $$ =x
y
sen x
$$ \sen x $$ % com declarao
3
$$ \cos \left( \frac{3}{4} cos
4
\right) $$
tan y
$$ \tan y $$
arccos x 2
$$ \arccos x^2 $$
$$ \tanh 8 $$ tanh 8
$$ \cosh tx $$
cosh tx
| ~a | ~ k
k bc
$$ \mid \vec a \mid \quad
\parallel \vec{bc} \parallel$$
AB
$$ \overrightarrow{AB} $$
$$ \overleftarrow{CD} $$
CD
$$ y = \left\{
\begin{array}{l}
a+ 2b + c = 89 \\
a + 2b + c = 89
b + c = 0 \\ y= b+c =0
a + 2c = 9
a + 2c = 9
\end{array} \right. $$
$$ \det A = 67 $$ det A = 67
$$ \begin{pmatrix}
x & y \\
z & v x y
\end{pmatrix} $$ z v
$$ \begin{bmatrix}
0 0
0 & \cdots & 0 \\ .. . . ..
\vdots & \ddots & \vdots \\ . . .
0 & \cdots & 0 0 0
\end{bmatrix} $$
x y
$$ \begin{vmatrix}
z v
x & y \\
z & v
\end{vmatrix} $$
$$ \begin{Vmatrix}
x & y \\
z & v
x y
\end{Vmatrix} $$
z v
$$ \begin{matrix}
x y
x & y \\
z v
z & v
\end{matrix} $$
x y
z v
$$ \begin{Bmatrix}
x & y \\
z & v
\end{Bmatrix} $$
Carlos Alexandre de A. Pires Minicurso de LATEX
Tabelas de smbolos matemticos
a \hat{a} a \check{a} a \tilde{a}
a \grave{a} a \dot{a} a \ddot{a}
a \bar{a} ~a \vec{a} A
b \widehat{A}
a \acute{a} a \breve{a} A
e \wildetilde{A}
P S W
Q \sum T \bigcup V \bigvee
` \prod F \bigcap U \bigwedge
J \coprod L \bigsqcup N \biguplus
\bigodot \bigoplus \bigotimes
Tabela: Delimitadores
Tabela: Setas
.. ..
... \dots \cdots . \vdots . \ddots
~ \hbar \imath \jmath ` \ell
< \Re = \Im \aleph \wp
\forall \exists f \mho \partial
(crase) 0 \prime \emptyset \infty
\nabla 4 \triangle \Box
\Diamond
\bot > \top \angle \surd
\diamondsuit \hearsuit \clubsuit \spadesuit
\neg ou \lnot [ \flat \ \natural ] \sharp
Nota:
Alguns cursos e/ou unidades adotam outros templates. No
momento que fizer seus trabalhos acadmicos, informe-se com
seu orientador ou coordenador de seu curso sobre modelos de
TCC.
Nota:
Verifique se h um tema padro no evento e fique atento em
relao as regras, se existir.