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

UNIVERSITY OF TRENTO

LATEX
FROM ZERO TO HERO

DR. LUCA GEMMA


We will see

Course LaTeX introduction


Templates and libraries
Overview Basic elements
Basic elements II
Tuning Techniques
noitcudortnI A bried overview

Different distributions for different uses.


Local and online resources. Official documentation.
XeTaL
But what is LaTeX?
CREATE AN ELEGANT THESIS
Get the right emphasis for each section and follow
the correct layout

CREATE A PAPER With LaTeX


Import the template of your conference or journal
and display all your revolutionary results. you can
CREATE SLIDES
Master formulas and plots in a solid appearance

AND MORE

Even write your own book!


TeX Live - local
One of the best. Mantained by volunteers and available for all OSs.
Link -> http://tug.org/texlive/

MiKTeX - local
A TeX distriution for the Windows OS. Easy to install.
Link -> https://miktex.org/

MacTeX - local
DISTRIBUT A TeX distribution fot the Mac OS X. Similar to TeX Live.
Link -> http://tug.org/mactex/

IONS
Overleaf - online
An online LaTeX editor. User-friendly, light and shareable.
Link -> https://www.overleaf.com/
What is Overleaf

Introduction to Overleaf. Project creation and how to


efficiently share it with your collaborators and your
faelrevO

professors.
yhW
CREATE A TEX PROJECT
Containing all the .tex and other files used to
generate your document.

IMPORT AN EXISTING TEMPLATE


You do not have to start from scratch, grab a cool
template and adopt it. With
Overleaf
USE EXTERNAL LIBRARIES
Whatever your needs are, there is a library in LaTeX you can
that satisfies them. And you can use it in Overleaf too.

SHARE WITH YOUR


COLLABORATORS
You can share your project with your professor, so
he/she can review it instantly and with no pain.
CREATING A PROJECT
DISTRIBUT
IONS
Let us start

Land to
https://www.overleaf.com/
Register with the mail account of your choice and log in,
or you can log in with your UniTn account
First access

Click and hit "Example project". Then name it


and select "Create"

From second access on


Click on Menu to access..well the Menu
Here you can download both the souce files (.tex,
.bib, images and so on) as well as the generated PDF

You can change the compiler (the default one is


good though)

Finally, you can set additional parameters such as


what file is the main document and the language of
the grammar checker
Now let us create a new folder by clicking on the
folder icon and naming it. Then drag the
universe.jpg image in it.

If you recompile it, it will raise an error and not display


the image
That happens because you change the location of
the file without letting Overleaf know the
change.
So, let us update the path of the image

If you recompile it now, the image will be displayed


You can view a file just by clicking on it.
Plus, if you click on the down-pointing arrow, you can
either rename it or delete it
Click on Share to share with your collaborator.
Just type the mails of your collaborators and hit Share
Click on History to see in details all the changed done
recently to the project
dna setalpmeT
External resources

Where to find perfect templates for thesis, paper and


slides. How to import them in Overleaf and how to use
seirarbil

external packages.
IMPORTING A TEMPLATE
FROM OVERLEAF
DISTRIBUT
IONS
First access

Click and from the "Templates" select " Thesis"

From second access on


Let us choose this as a Template. Click on it
Here you can see the template. To use it in
Overleaf click here
The editor automatically imports all the
necessary files.

Click here to share the entire project with your


collaborator(s)
IMPORTING A TEMPLATE
FROM
LATEXTEMPLATES.COM
DISTRIBUT
IONS
Land on www.latextemplates.com
Scroll down and click on "Theses"
Let us take this template. Click here to see it.
You can download a preview PDF of the template.
When you are done, click here to import it in Overleaf.
The editor automatically imports all the
necessary files.

Click here to share the entire project with your


collaborator(s)
USE EXTERNAL PACKAGES
DISTRIBUT
IONS
Land on https://en.wikibooks.org/wiki/LaTeX
for a comprehensive guide
Scroll down and hit Package Reference in the
Appendix (section 11)
Check the info on the packages you are looking
for, e.g. amsmath and amssymb
Use the command \usepackage{ } in the preamble,
i.e. between \documentclass
and \begin{document}

Recompile it a couple of times to see if it is all good

You might also like