Technische Physica workshop 2016 WeCie Altijd up altijd geil Typesetting with A workshop on the academic norm Wouter Hordijk MSc physics student whordijkstudenttudelftnl Contents Introduction to LaTeX ID: 602541
Download Presentation The PPT/PDF document "Vereniging voor" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Vereniging voor
Technische Physica
workshop 2016Slide2
WeCie
Altijd up,
altijd geilTypesetting with
A workshop on the academic norm
Wouter Hordijk | MSc physics student
w.hordijk@student.tudelft.nlSlide3
Contents
Introduction to LaTeX
What is it?Why use it?
Usage of LaTeX
Obtaining LaTeX
Code structure
Example code
Practical assignmentSlide4
What is
... and why would you want to use it?
LaTeX looks good to people who don't know what it is, and it looks impressive to people who do know what it is.
-- Isaac Newton --Slide5
Document markup language
Strong parallels with the principles of HTML and CSS
Actively being developed since 1978Widely used in academics, especially in sciences
Steep learning curve
A language rather than a programSlide6
What you see is what you get
Markup
code
controls the output
LaTeX is not a word processorSlide7
Professional looking document
Excellent handling of maths
Uniformity in styleFocus on content
Scalable
Portable
Free*
Exceptional layout
Where there's a will...
Why use LaTeX?
* Free ≠ easy to pirate: we actually mean legally free of charge hereSlide8
Images provided by Eyolf Østrem and Dario Taraborelli
Example: ligaturesSlide9
Example: mathematicsSlide10
Example: advanced mathematicsSlide11
Example: inline mathematicsSlide12
Overview and structure for large documents
titlepage.tex
chapter1.tex
chapter2.tex
chapter3.tex
chapter4.tex
references.bib
thesis.tex
thesis.pdf
\input
Scalable and portableSlide13
How to get
... and how to use itSlide14
Installation on MS Windows
LaTeX distribution (includes compilers, converters and packages)
http://miktex.org/LaTeX editor (example)
http://www.texstudio.org/
Obtaining LaTeXSlide15
Working with LaTeXSlide16
Preamble
Choosing a document class
Defining the general markupDefining language
Packages for fancy stuff
2. Content
Chapter / section structure
3. BibTeX
References
Code structure of a LaTeX documentSlide17
PreambleSlide18
Choosing a document class defining the general markup style
Packages for fancy stuff
Example for an A4 sized report:
\documentclass
[a4paper]{report}
\usepackage
{amsmath,graphicx}
\usepackage
[dutch]{b
abel}
\begin
{document}
PreambleSlide19Slide20
ContentSlide21
\chapter
{
Chapter
}
...
\section
{
Section
}
...
\subsection
{
Subsection
}
...
\section
{
Another section
}
...
\subsection
{
Subsection
}
...
ContentSlide22
Command
Level
Comment
\part
{
part
}
-1
Not in letters
\chapter
{
chapter
}
0
Only books and reports
\section
{
section
}
1
Not in letters
\subsection
{
subsection
}
2
Not in letters
\subsubsection
{
subsubsection
}
3
Not in letters
\paragraph
{
paragraph
}
4
Not in letters
\subparagraph
{
subparagraph
}
5
Not in letters
Available structure typesSlide23
BibliographySlide24
References go in a separate .bib file, indicated with
@ signs:
@article
{
Doe1932
,
author
= {John Doe},
title = {Title of the Article},
year
= {1932},
journal
= {Nature},
volume
= {14},
number
= {3},
pages
= {342--351}
}
References and citingSlide25
Use internet shortcuts to get the BibTeX format.
References and citingSlide26
Numbering is taken care of automagically
Only cited references will appear in the bibliography
Handles are used to cite sources in the content itself:
... as proven by Author
\cite
{
label
}.
References and citingSlide27
EnvironmentsSlide28
> Mathematics and images are put in their respective environments
General environment:
\begin
[options]
{
environment
}
content
\label
{
env:handle}
\end
{
environment
}
Environments for specific typesettingSlide29
Isolated mathematics:
Inline environment delimited by
$ signs:
... so
$
\lambda
_1
=
\sqrt{
\frac{5}{2}}$
...
then it is found that:
\begin
{
equation
}
\hat
{H}
\ket
{
\psi
}
=
E
\ket
{
\psi
}
\end
{
equation
}
Mathematics environmentsSlide30
The code used to typeset mathematics is (partially) included on the handout
Typesetting matrices requires a matrix environment to be put inside a mathematics environment:
\begin
{
equation
}
A =
\begin
{
pmatrix
}
a & b
\\
c & d
\end
{
pmatrix
}
\end
{
equation
}
Environments within environmentsSlide31
Environment for tables:
\begin
{
table
}
\caption
{Awesome table}
\label
{tab:awesome_table}
\begin
{center
}
\begin
{
tabular
}{c|cc}
1 & 2 & 3 \\
\hline
a & b & c
\end
{
tabular
}
\end
{
center
}
\end
{
table
}
Non-mathematics environmentsSlide32
Environment for images:
\begin
{
figure
}
\begin
{
center}
\includegraphics[width=
\textwidth]{1.png}
\end
{
center
}
\caption
{Awesome image}
\label
{
fig:awesome_image
}
\end
{
figure
}
Non-mathematics environmentsSlide33
Practical assignment
learning by doingSlide34
Ask someone who knows:
Your neighbour
GoogleWikibooks
Stack Exchange
The
WeCie
!
In doubt?
WeCie
Altijd up,
altijd geilSlide35
Goal: typeset the provided document
Get started:
Download this presentation athttp://
ecie.vvtp.tudelft.nl/pslatex/
Install MikTeX and TeXstudio
Download the assignment
Extract the zip file to a new folder
Open
assignment.tex in TeXstudio
Follow the instructions
Good luck and have fun
Assignment: learning by doing