Não foi possível enviar o arquivo. Será algum problema com as permissões?
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anterior Revisão anterior Próxima revisão | Revisão anterior Próxima revisão Ambos lados da revisão seguinte | ||
disciplinas:ce223:comandos2008 [2008/05/26 15:02] ehlers |
disciplinas:ce223:comandos2008 [2008/05/26 15:45] ehlers |
||
---|---|---|---|
Linha 1045: | Linha 1045: | ||
\right] | \right] | ||
</latex> | </latex> | ||
+ | |||
+ | <code> | ||
+ | \left[ | ||
+ | \begin{array}{cccc} | ||
+ | a_{11} & a_{12} & \dots & a_{1n}\\ | ||
+ | a_{21} & a_{22} & \dots & a_{2n}\\ | ||
+ | \vdots & \vdots & \vdots & \vdots\\ | ||
+ | a_{m1} & a_{m2} & \dots & a_{mn}\\ | ||
+ | \end{array} | ||
+ | \right] | ||
+ | </code> | ||
Escreva os comandos do Latex para montar as seguintes tabelas. Tente numerar as tabelas, colocar um comentário e referenciar as tabelas no texto. | Escreva os comandos do Latex para montar as seguintes tabelas. Tente numerar as tabelas, colocar um comentário e referenciar as tabelas no texto. | ||
Linha 1053: | Linha 1064: | ||
&masculino & feminino \\ | &masculino & feminino \\ | ||
\hline | \hline | ||
- | Não fumac &45 & 16 \\ | + | Não fuma &45 & 16 \\ |
Fuma pouco &28 & 22 \\ | Fuma pouco &28 & 22 \\ | ||
\hline | \hline | ||
\end{tabular} | \end{tabular} | ||
</latex> | </latex> | ||
+ | |||
+ | <code> | ||
+ | \begin{tabular}{ccc} | ||
+ | \hline | ||
+ | &masculino & feminino \\ | ||
+ | \hline | ||
+ | Não fuma &45 & 16 \\ | ||
+ | Fuma pouco &28 & 22 \\ | ||
+ | \hline | ||
+ | \end{tabular} | ||
+ | </code> | ||
<latex> | <latex> | ||
Linha 1069: | Linha 1091: | ||
\end{tabular} | \end{tabular} | ||
</latex> | </latex> | ||
+ | |||
+ | <code> | ||
+ | \begin{tabular}{|l|cc|} | ||
+ | \hline | ||
+ | &masculino & feminino \\ | ||
+ | \hline\hline | ||
+ | Não fuma &45 & 16 \\ | ||
+ | Fuma pouco &28 & 22 \\ | ||
+ | \hline | ||
+ | \end{tabular} | ||
+ | </code> | ||
Incluindo figuras. | Incluindo figuras. | ||
Linha 1088: | Linha 1121: | ||
</code> | </code> | ||
- | Pode-se fazer referencia a figura no texto: figura \ref{hfig:ist}, na pagina \pageref{fig:hist}. | + | Pode-se fazer referencia a figura no texto: figura \ref{hfig:ist}, na pagina \pageref{fig:hist}. Note que a figura ficou rotacionada à esquerda. Podemos corrigir refazendo o arquivo .ps ou usando a opção "angle". |
+ | |||
+ | <code R> | ||
+ | postscript('histograma.ps',horozontal=F) | ||
+ | hist(rnorm(1000)) | ||
+ | dev.off() | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | \begin{figure}[htbp]\centering | ||
+ | \includegraphics[width = 10cm, height = 10cm, angle = 270]{histograma.ps} | ||
+ | \caption{Histograma de uma amostra de tamanho 1000 da distribuição normal padrão.} | ||
+ | \label{fig:hist} | ||
+ | \end{figure} | ||
+ | </code> | ||
+ | |||
+ | Colocando duas figuras lado a lado. Acrescente \usepackage{subfigure} no preambulo. | ||
+ | |||
+ | <code> | ||
+ | \begin{figure}[h] | ||
+ | \centerline{ | ||
+ | \subfigure[histograma grande]{\includegraphics[width=10cm, height = 10cm]{histograma.ps} | ||
+ | \label{fig:hist1}} | ||
+ | \hfil | ||
+ | \subfigure[histograma pequeno]{\includegraphics[width=5cm, height=5cm]{histograma.ps} | ||
+ | \label{fig:hist2}} | ||
+ | } | ||
+ | \caption{Exemplo de duas figuras.} | ||
+ | \label{fig:histogramas} | ||
+ | \end{figure} | ||
+ | </code> | ||
+ | |||
+ | Fazendo referencia: Figuras \ref{fig:histogramas}, \ref{fig:hist1} e \ref{fig:hist2}. | ||
+ | |||
+ | |||
+ | |||
+ | |||