Notas de Aula - MAC 211 - Laboratório de Programação
Aula 24 - 19/6/2001
Mais Conceitos Básicos de LaTeX
- O melhor lugar para achar todos os pacotes e utilitários referentes ao
LaTeX é o sítio do Comprehensive TeX Archive Network que é http://www.ctan.org.
- Vamos continuar a aprender através
de exemplos que estão nesse diretório. Através destes
exemplos aprendemos hoje os seguintes comandos:
- comentários: %
- \bibliographystyle{}, \cite{},\bibliography{}
- export TEXINPUTS=.:~/lib/tex//::
- export BIBINPUTS=.:~/lib/bib//
- \input{}
- \begin{abstract}, \end{abstract}
- \begin{tabular}{|c|l|}, \end{tabular}, \hline, & \\
- \multicolumn{ncol}{|c|}{text},\multirow{nrow}{width}{text}
- \begin{table}, \end{table}
- \tableofcontents
- \listoffigures, \listoftables
- \index{},\makeindex, makeindex
- \section*{}, \subsection*{}, \subsubsection*{}
- \setlength{\textheight}{},\setlength{\textwidth}{}
- \addtolength{\topmargin}{},\addtolength{\oddsidemargin}{}
- \newpage
- \newcommand{}{}
- Símbolos Matemáticos
- $ ---- $, \[ ---- \]
- \alpha, \beta, \gamma, \delta
- \neq, \pm (+-), \times, \div, \otimes, \leq, \geq
- \subset, \supset, \subseteq, \in
- \leftarrow, \Leftarrow, \leftrightarrow, \Leftrightarrow
- \exists, \forall, \infty, \aleph
- A_b, A^b
- \sum, \int, \sqrt[]{}, \frac{}{}
Existem muitos tutoriais de LaTeX na teia. Para localizá-los, use o google.
Bibliotecas Estáticas versus Bibliotecas Dinâmicas
- Para criar uma biblioteca estática:
- gcc -static X.c Y.c -o minhaBiblioteca.o
- ar rcs libminhaBilioteca.a minhaBiblioteca.o
(r = adicionar novo
.o, c = criar arquivo, s = grava índice de arquivos .o no arquivo.)
- Para criar uma biblioteca dinâmica:
- gcc -fPIC -shared X.c Y.c Z.o -o libminhaBibliotecaDin.so
- ld -shared A.o B.o C.o -o liboutraBiblioteca.so
- LD_LIBRARY_PATH
- -Lsearchdir
- -Rfilename
- ld -o meuPrograma principal.o -lminhaBibliotecaDin -loutraBilioteca
- ldd