3 [[http://www.latex-project.org/|LaTeX]]: [[wp>LaTeX|LaTeX]]
5 ===== How use BibTeX with LaTeX =====
7 See [[:tools:make]]. See [[http://www.kfunigraz.ac.at/~binder/texhelp/bibtx-7.html|Help on BibTeX Entry types]].
9 ===== How to put utf8 characters on listings environment in LaTeX =====
12 \lstset{extendedchars=true,
14 basicstyle=\small\color{blue},
15 keywordstyle=\color{red}\bfseries,
16 keywordstyle= [2]\color{magenta}\bfseries,
17 identifierstyle=\color{blue},
18 commentstyle=\color{gray}\textit,
19 stringstyle=\color{darkGreen},
20 showstringspaces=false,
25 numbers=left, % Números na margem da esquerda
26 numberstyle=\tiny\color{darkGreen}, % Números pequenos
27 stepnumber=1, % De 1 em 1
28 numbersep=5pt % Separados por 5pt
31 \begin{lstlisting}[language=Shell, texcl=true, numbers=none, escapechar={\%}]
34 \lstinputlisting[firstline=11, lastline=17, language=Go, texcl=true, numbers=none, escapechar={\$}]{../pc_channel.go}
35 \lstinputlisting[firstline=18, lastline=22, language=Go, texcl=true, numbers=none, escapechar={\#}]{../pc_channel.go}
37 \begin{lstlisting}[language=Shell, texcl=true, numbers=none, breaklines, escapechar={\%}]
40 \lstinline[language=Go]|chan T|
44 ===== How to make a multicolumn / multirow tabular cell in LaTeX =====
48 \begin{tabular}{|c|c|}
50 \multicolumn{2}{|c|}{Two Column} \\
52 \multirow{2}{*}{Two Row} & one \\
64 ===== How to fix "LaTeX Error: Too many unprocessed floats." =====
72 ===== How to use AbnTeX in LaTeX =====
76 \documentclass[a4paper,10pt]{abnt} %
77 \usepackage[utf8x]{inputenc}
78 \usepackage[brazil]{babel}
81 \usepackage[usenames,dvipsnames]{color}
82 \usepackage{verbatim, amssymb, latexsym, amsmath, mathrsfs}
84 \usepackage{subfigure}
89 \usepackage[section] {placeins}
90 \usepackage[table]{xcolor}
94 %\author{Kauê Silveira \\171671 \and Silveira Kauê \\ 671171}
96 \autor{Bruno Coswig Fiss \\ Felipe Augusto Chies \\ Kauê Soares da Silveira \\ Marcos Vinicius Cavinato} %\and
97 \instituicao{Universidade Federal do Rio Grande do Sul}
98 \orientador[Professor:]{Sérgio Felipe Zirbes}
99 \titulo{Especificação de um Sistema de Integração On-line Empresa / Representações para Pilaplast Ind. e Com. de Plásticos Ltda.}
100 \comentario{Disciplina INF01127 – Engenharia de Software N}
101 \data{1 de julho de 2010}
121 ===== How to define a macro (a command) in LaTeX =====
124 \newcommand{\bll}{\begin{lstlisting}}
125 \newcommand{\bx}[1]{\begin{#1}}
126 \newcommand{\bfr}{\begin{frame}}
127 \newcommand{\fr}[2]{\begin{frame}{#1}#2\end{frame}}
128 \newcommand{\bl}[2]{\begin{block}{#1}#2\end{block}}
129 \newcommand{\bb}[1]{\begin{block}{#1}}
130 \newcommand{\eb}{\end{block}}
131 \newcommand{\bi}{\begin{itemize}}
132 \newcommand{\ei}{\end{itemize}}
133 \newcommand{\ii}{\item}
134 \newcommand{\bc}{\begin{comment}}
135 \newcommand{\ec}{\end{comment}}
138 ===== How to make a table of figures in LaTeX =====
142 \begin{minipage}[b]{0.5\linewidth}
144 \includegraphics[width=50mm]{gui0.png}
149 \begin{minipage}[b]{0.5\linewidth}
151 \includegraphics[width=50mm]{gui1.png}
158 ===== How to make appendix in LaTeX =====
160 <file latex main.tex>
161 \documentclass[a4paper,10pt]{report}
162 \usepackage{amssymb} %for math symbols in appendix.tex
167 %\addcontentsline{toc}{chapter}{Appendix}
168 \addtocontents{toc}{\protect\contentsline{chapter}{Appendix:}{}}
169 \chapter{Questionnaire Requirement}
170 \chapter{Questionnaire Testing}
175 <file latex appendix.tex>
176 \section{Math font styles} % file "appendix.tex"
178 Several extra font styles are available in math mode,
179 since there are so many typographical conventions
180 in various branches of mathematics.\footnote{By the way,
181 this is an appendix!}
183 In set theory (among other fields) one often uses
184 \emph{calligraphic} letters, e.g.,
185 \verb9$\mathcal{A}$9; \\
186 $$ \mathcal{A} ~ \mathcal{B} ~ \mathcal{C} ~ \mathcal{D} ~
187 \mathcal{E} ~ \mathcal{F} ~ \mathcal{G} ~ \mathcal{R} ~
188 \mathcal{S} ~ \mathcal{T} ~ \mathcal{Z} $$
190 In number theory, various number sets are often
192 \emph{blackboard capital} letters, e.g.,
193 \verb9$\mathbb{R}$9; \\
194 $$ \mathbb{N} ~ \mathbb{Z} ~ \mathbb{Z}_{17} ~
195 ~ \mathbb{R} ~ \mathbb{C} $$
197 Another style used now and then is
198 \emph{Fraktur} font letters, e.g.,
199 \verb9$\mathfrak{F}$9; \\
200 $$ \mathfrak{A} ~ \mathfrak{B} ~ \mathfrak{C} ~ \mathfrak{D} ~
201 \mathfrak{E} ~ \mathfrak{F} ~ \mathfrak{G} ~ \mathfrak{R} ~
202 \mathfrak{S} ~ \mathfrak{T} ~ \mathfrak{Z} $$
204 In vector algebra it is common to use \emph{boldface} letters
205 to indicate nonscalar values (vectors and matrices), e.g.,
206 \verb9$\mathbf{A}$9; \\
207 $$ \mathbf{A} ~ \mathbf{B} ~ \mathbf{C} ~ \mathbf{M} ~
208 \mathbf{v} ~ \mathbf{x} ~ \mathbf{y} ~ \mathbf{z} $$
210 One can get \emph{bold italic} letters for vector variables
212 \verb9$\textbf{\em x}$9; \\
213 $$ \textbf{\em A B C D E F G s t u v w x y z} $$