Download as pdf or txt
Download as pdf or txt
You are on page 1of 41

PGC001

Introduction to LaTeX
Prof. Dr. Henrique FERNANDES
What is LaTeX?
 LaTeX is pronounced “lay-tech” or “lah-
tech,” not “la-teks.”
 LaTeX is a document preparation system
for high-quality typesetting.
 LaTeX is most often used to produce
technical or scientific documents, but it
can be used for almost any form of
publishing.
Why Use LaTeX?
 Designed by academics and easily accommodates
academic use.
 Professionally crafted predefined layouts make a
document really look as if “printed.”
 Mathematical symbols and equations are easily
integrated.
 Even complex structures such as footnotes, references,
table of contents, and bibliographies can be generated
easily.
 Forces author to focus on logical instead of aesthetic
structure of a document.
 Creates more beautiful documents.
 Portable, compatible, flexible, versatile, and cheap (or
free)!
Installing LaTeX
 In Windows
 MiKTeX
◦ MiKTeX is a typesetting system for the Windows.
◦ Download from www.miktex.org for free
◦ It is generally recommended to install MiKTeX
first, then WinEdt.
 WinEdt
◦ WinEdt is a text editor.
◦ WinEdt creates the source file (.tex and others).
◦ Download from www.winedt.com for free for 30
days.
◦ WinEdt costs $30.
Installing LaTeX
 Other text editors
◦ There are other text editors.
◦ Winshell for free (http://www.winshell.de/)
◦ Scientific Workplace
 Combination of LaTeX and Mathematics program
 Does a good job of calculating and graphing, very user friendly,
but expensive

 In Mac
 TexShop
◦ Download for free
http://www.uoregon.edu/~koch/texshop/
◦ Includes everything!
Installing LaTeX
 There are a number of LaTeX distributions you can install on
Ubuntu. One such distribution is TeX Live.

1 - To install Tex Live LaTeX distribution on ubuntu use the


following command.

 sudo apt-get install texlive-full

2 - To edit LaTeX documents we need an editor. There are a


number of LaTeX editors you can find. I recommend Texmaker, a
cross-platform LaTeX editor. To install Texmaker on Ubuntu use
following command.

 sudo apt-get install texmaker


DIY
Basic Document Structure
 The format of a document is pretty simple.
◦ In the preamble
 Documentclass
 Packages
◦ In the front matter
 Title/author
◦ In the body
 Contents
◦ In the back matter
 bibliography
In the Preamble
 You specify your document class.
◦ Document classes: letter, article, report, book,
slides(beamer, prosper)
 \documentclass[12pt]{article}
 Backslash – at the beginning of text markup
command
◦ Packages: numerous packages are available
 \usepackage[margin=1in]{geometry}
 \usepackage{setspace}
 \usepackage{harvard}
In the Front Matter
 \begin{document}
 \title{}
 \author{}
 \maketitle
 \begin{abstract}
 \end{abstract}
 \pagebreak
In the Body
 To begin a new section
 \section{}
◦ Similarly, \subsection{}, \subsubsection{},
\subsubsubsection{}
◦ LaTeX does automatic numbering. If you don’t
like it, use section*{}
 \emph{}, \textbf{}
 \singlespacing, \doublespacing, \onehalfspacing
 \centering or \begin{centering} &
\end{centering}
Footnotes/Quotes/Equations
 \footnote{}
 \begin{quote} & \end{quote}
 ` ’, `` ’’ for quatations
 Mathematical Equations
◦ Math always in between $ & $
 Alternatively, \begin{equation} & \end{equation}
◦ $ 1+4=5 $
◦ \frac{}{}, \sqrt{}, \sum_{k=1}^{n}
◦ ^{}, _{}
◦ \greek letters (e.g. \alpha or \Alpha)
◦ WinEdt also provides click and type functions.
Citations
 \cite{bibtexkey}, citeyear{bibtexkey}
 It is more convenient to create a
bibliography file, called bibtex file(.bib) and
use it as needed.
 WinEdt is capable of creating a bib file,
but there are more convenient tools out
there.
 JabRef (http://jabref.sourceforge.net/)
Creating a Table
 Add numbered table
◦ \begin{table} \caption{}
 Creating a table
 Simple tables can be produced by
◦ \begin{tabular}[pos]{tablespec}
◦ Within the {tablespec} section, one details the number of columns, the
alignment, and the number of vertical lines of the table.
 {lrc}, {|l|r|c}
◦ Then type in from left to right, the values for each cell with & in
between.
◦ Put “\\” at the end of each row, then input another row of values if
needed.
◦ \hline
◦ For STATA users, after downloading the “outtex” package online, one
can simply type “outtex” after any estimation and STATA will spit out
LaTeX code for the results table presented.
Creating a 4*3 Table
 \begin{table}[h]
 \caption{Summary of Conclusions from Diagnostic Tests}
 \begin{tabular}{llll}
 \hline
 \hline
 & Macropartisanship & Consumer Sentiment & Presidential
Approval\\
 \hline
 Joint F test & $d=1$ & $d=1$ & $d=0$\\
 VR test & $0<d\leq1$ & $d=1$ & $0<d\leq1$ \\
 \hline
 \end{tabular}
 \end{table}
In the Back Matter
 Don’t forget bibliography{filename}
◦ Make sure that the bibtex file is saved in the
same location where the main tex file is
saved.
 Don’t forget end{document}
Seeing the Document

Press on the Press on the Press on the


smiling bear to PDF+happy bear PDF/LaTeX to
convert to .dvi to convert to convert to .pdf
.pdf and open it
Common Mistakes
 Often times, you make a mistake when
creating a document.You will notice the
log file reporting a problem.
 There are some common mistakes:
◦ “end” doesn’t follow “begin”
◦ $ doesn’t follow $
◦ Using commands from packages lot defined in
the preamble
◦ Don’t forget “\”s.
Other Resources
 Books
◦ Leslie Lampert. 1994. LaTeX: A Document
Preparation System.
◦ Helmut Kopta and Patrick W. Daly. 2004.Guide to
LaTex
◦ Frank Mittelbach et al. 2004. The LaTeX
Companion
 Online Guides
◦ http://en.wikibooks.org/wiki/LaTeX
◦ http://tobi.oetiker.ch/lshort/lshort.pdf
◦ CV and dissertation templates are available on
line
Other Resources
Modelos do PPGCO
 http://www.ppgco.facom.ufu.br/pt-
br/formularios-0
Dicas sobre citação
• Citação indireta onde o autor faz parte do texto
Jain and Dubes (1988), for example, defined the clustering
procedure as a data organization process which can disclose
intrinsic data structure, either as instance groups or a
hierarchy of groups

• Citação indireta onde o autor não faz parte do texto


The more similar two vectors are, the higher their similarity,
and the lower their distance will be (Jain & Dubes, 1988)
Dicas sobre citação
No pacote natbib
\citet{jon90} --> Jones et al. (1990)
\citep{jon90} --> (Jones et al., 1990)

you use \citet{} when the authors name(s)


are to be read as part of the text
you use \citep{} when the entire citation
is parenthetical
Dicas sobre citação
• No pacote abnTex

• \citeonline
• Mencionar explicitamente o autor da
referência na sentença
• “Fulano (1900)".

• \cite
• Usar toda citação entre parênteses
• (Fulano, 1900)
Abordagens para a Leitura de um
artigo científico
⚫ Existem três abordagens
⚫ Leitura diagonal

⚫ Leitura em profundidade

⚫ Reflexão
Abordagens para a Leitura de um
artigo científico
• Leitura diagonal
• Provê uma visão superficial do texto e
permite captar a ideia geral
• Esta etapa pode evitar perda de tempo (ex.:
pelo trabalho não ser de interesse)
• Método
• Comece pelo título e pelo resumo
• Navegue livremente pelo texto para
entender como o artigo está estruturado e
onde as principais informações podem ser
encontradas
Abordagens para a Leitura de um
artigo científico
• Leitura diagonal
• Método
• Finalmente, pule para a conclusão
Abordagens para a Leitura de um
artigo científico
• Leitura diagonal
• Ao término de uma leitura diagonal bem feita,
o leitor deve ser capaz de responder os cinco
C´s de Keshav (2007):
1. Categoria: Que tipo de pesquisa é esta ?
2. Contexto: O artigo está baseado em que
teorias?
3. Corretude: As conclusões parecem ser válidas?
4. Contribuição: Quais são as principais
conclusões e contribuições deste artigo?
5. Clareza: O artigo está bem escrito?
Abordagens para a Leitura de um
artigo científico
• Leitura em profundidade
• Permite adquirir um entendimento completo sobre
a validade das conclusões apresentadas no texto
• No final o leitor deve ser capaz de
(1)reconstruir a estrutura do artigo mentalmente
(2)distinguir o que o autor diz que mostra
(conclusões), do que ele realmente mostra
(evidências)
(3)e responder as seguintes perguntas sobre o
conteúdo daquele artigo:
Abordagens para a Leitura de um
artigo científico
• Leitura em profundidade
• No final o leitor deve ser capaz de
(3) e responder as seguintes perguntas sobre o conteúdo
daquele artigo:
• De que problema de pesquisa este artigo está tratando?
Esse problema realmente existe? É importante?
• O método utilizado foi adequado?
• A forma de medir as variáveis foi apropriada?
• Quais foram as descobertas específicas?
• Qual a validade/confiabilidade das evidências que foram
apresentadas?
• As descobertas estão bem fundamentadas pelas
evidências apresentadas?
• Se o estudo envolveu pessoas, a qual população estas
pessoas se referem? A amostra compreende um grupo
49
significativo/representativo?
Abordagens para a Leitura de um
artigo científico
• Reflexão
• Por que estas conclusões são importantes?
• Como esse trabalho se encaixa no contexto
do conhecimento nesta área: está tentando
validar uma nova técnica? Gerar uma
controvérsia? Abrir uma nova linha de
pesquisa?
• Você concorda com a linha de raciocínio do
autor?
• Você concorda com as conclusões, elaboradas
a partir das evidências?
Abordagens para a Leitura de um
artigo científico
• Reflexão
• Há alguma interpretação alternativa para os dados
que o autor não discutiu?
• Estas conclusões são excessivamente
generalizadas ou excessivamente simplificadas?
• Que fatores podem ter influenciado no
resultado desta pesquisa?
• Quais são as aplicações práticas das ideias
apresentadas no artigo? Ainda ficaram muitas
questões por responder?
• Como esses resultados / conclusões se relacionam
com o trabalho no qual eu estou interessado?
Dicas para fazer um Resumo
• Alguma informação de contexto/motivação
do trabalho
• A principal atividade do estudo (propósito) e
seu escopo
• Alguma informação sobre a metodologia
usada
• Os resultados mais importantes do
estudo
• Uma afirmação de conclusão ou
recomendação
Perguntas a serem respondidas no
Resumo
• Qual a área de trabalho?
• Qual foi o propósito do trabalho?
• Qual foi a metodologia utilizada durante
a pesquisa?
• Quais foram os resultados mais
importantes do estudo?
• Quais as conclusões?
Para próxima aula
 Escolher um artigo do estado da arte da sua
área;
 Ler e fazer o resumo do artigo escolhido;
 Criar um arquivo PDF com o resumo;
 Carregar o arquivo PDF na tarefa na da
nossa equipe no MS Teams até 08:49 do dia
20/04/2021.
 Na aula de 20/04/2021, um(a) discente será
escolhido para apresentar o resumo (uma
apresentação PowerPoint pode ser usado,
por exemplo).

You might also like