Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Intro to LaTex
The idea of creating documents with LaTex
Offline and Online editors interface
Document classes
Title/author/abstract
Section/subsection
Lists
Mathematical expression
Tables
Figures
Labelling and Coloring
References
Use Conferences and Journal templates
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
What is LaTex editor?
A LaTeX editor is an open-source tool that allows for formatting complex content with applied command tags.
In academia, LaTeX editors may be more widely known, as they can be used for completing journals, papers,
and large documents containing subscript, superscript, and foreign language characters.
Packages of commands are available within academic or technical specialties so common commands to a
profession or field are readily accessed during document preparation. In professional fields such as science
and engineering, LaTeX generally is considered a stable tool for updating technical content.
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Correct pronounciation
 Lay-tek
 Lah-tek
× Lay-teks
× Lah-teks
Donald Knuth created "Tex" ("TEX"), the three letters actually being uppercase letters for Greek
word τεχνική. This Greek "tex" is the root of English words like "technical" and "technique". Later,
Leslie Lamportbuilt "Latex" on top of Tex, prepending the "La" presumably to reflect his name.
Τεχνική pronouns as technikí̱
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Major Differences between MS Word and LaTex
Ms Word LaTex
• Word becomes slow when handling either very large
texts or texts with large graphics.
• LaTeX is faster because you write down only the
contents and software wastes no time thinking about
layout.
• Word type setting quality is ok for most purposes but
its far from professional.
• Provides you with professional layout out of the box. If
you want to get into the nitty-gritty, you can adapt the
default to your own taste but the standard is already
very high without any customisations.
• Here the main shortcoming is that Word does not
include a citation utility. You will need to use additional
software to fill the gap.
• is open source many generations of scientists have
written the extensions they needed. You will be able to
find all commonly and most rarely used features.
References are handled by BibTeX .
• MS Word developers make almost no effort to facilitate
exchange with foreign programmes. You may not
experience that, because Word is so widespread. But
even between flavours of Word there are compatibility
problems, e.g. WinWord vs. MacWord or latest version
to older version.
• This is not the case with LaTeX. The main output format
is PDF, which is the same over all OSs. LaTeX editors
exist for all types of systems and are highly compatible.
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
LaTex is not WYSIWYG while MS Word is WYSIWYG
WYSIWYG “What you see is What you get”
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
You can focus on content instead of typesetting and layout (references, citations, figures,
equation/figure numbering, formatting is all handled by LATEX)
You can generate professional quality typeset documents.
Math is formatted as well as the best typesetting system.
It runs on all operating systems (Linux/Unix, Mac, and Windows)
It is free
In brief words
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Offline LaTex Editors
TeXworks Tex TeXstudio TeXmaker
Online LaTex Editors
ShareLaTeX Overleaf
https://beebom.com/best-latex-editors/
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
TeX distributions for offline editors
The set of programs that make possible to compile TEX and LATEX documents is called a
TEX typesetting or a TEX distribution. There are many TEX distributions available for
different operating systems:
•MiKTeX for Windows
•TeX Live for Linux and other UNIX-like systems
•MacTeX redistribution of TeX Live for macOS
•teTeX for Linux and other UNIX-like systems; it is no longer actively maintained now
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
No need to think about a LaTeX editor or any packages on your computer. All work is done online. Great for
LaTeX newbies.
No worries about whether you are working on the latest version of the file, you always are, because all work
is done on the ShareLaTeX servers. Great for collaborations across timezones.
If you need to talk while you’re working on your manuscript, the chat option works too!
Online over Offline
When you’re done, or need to send a version of the manuscript to someone else, it’s easy to download the
entire project (including bib files and figures) to your computer or just the PDF, which is usually enough.
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Input output
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Content
Preamble
Output file
Run *.tex file
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Run *.tex file
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Document classes in LaTex
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
https://texblog.org/2013/02/13/latex-documentclass-options-illustrated/
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Title of Document
Date can use date
Run to appear
Author
name
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Document Sections
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Lists
• List are basic elements in a document, when used correctly they keep concepts organized and
structured. This article explains how to create and modify numbered and unnumbered lists in LATEX.
• amssymb environment (package) is the default LATEX method to typeset lists
• Unordered lists itemize
• Ordered lists enumerate
• Nested lists
Types of Lists
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Mathematical Expressions
usepackage{amsmath}
1. $E=m$
2. (sqrt{x^2+1})
Display mode
1. [ E=M]
2. $$ E=M$$
3. begin{equation}
E=m
end{equation}
4. begin{displaymath}
sqrt{x^2+1}
end{displaymath}
5. begin{math}
sqrt{x^2+1}
end{math}
Inline
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
LaTex Symbols
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Matrices Environment
amsmath environment is the default LATEX method to typeset matrices
Matrices
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
curly brackets
square brackets bmatrix [
double pipes
pipes
Bmatrix {
Vmatrix ||
vmatrix |
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Tables
tabular environment is the default LATEX method to create tables
Col Numbers and positions
Table position
flushleft or flushright
New line
cell1 cell2 cell3
cell4 cell5 cell6
cell7 cell8 cell9
output
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Figures
graphicx environment is the default LATEX method to include images and figures
graphicspath{ {./images/} }
includegraphics[width=3cm, height=4cm, angle=45, scale=0.5]{lion-logo}
command options Image name
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Labelling
Using the command to label (section, equation, table, figure and equation ) so can use it to
refer the object inside the text
label{marker}
To refer the object in text, use the command
ref{tab:d1} for tables
ref{sec:s1} for sections
ref{fig:F1} for figures
eqref{q1} for equations
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
usepackage{xcolor}
And the command is
color{red}
Coloring
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
References
Two methods to insert references
1. Embedded system
Reference section in article
Reference item
User defined variable to use in
reference citation inside the
text body using cite command
ex. the Donald Knuth's website cite{knuthwebsite}.
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
bibliographystyle{plain}
bibliography{sample}
2. Bibliography management with Bibtex
sample.bib
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Using LaTex Journal Templates
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
http://www.guide2research.com/journals/computer-vision
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
17/03/2021 Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
Useful Links
Symbols
Write Equations, Other, More
Create Tables online
Other Useful LaTex Code
Generate Bibtex
Search Bibtex
Video tutorials on LaTex
Dr Ashwan A. Abdulmunem
Ashwan.a@uokerbala.edu.iq
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021
Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq
17/03/2021

LaTex workshop

  • 1.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 2.
    Intro to LaTex Theidea of creating documents with LaTex Offline and Online editors interface Document classes Title/author/abstract Section/subsection Lists Mathematical expression Tables Figures Labelling and Coloring References Use Conferences and Journal templates Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 3.
    What is LaTexeditor? A LaTeX editor is an open-source tool that allows for formatting complex content with applied command tags. In academia, LaTeX editors may be more widely known, as they can be used for completing journals, papers, and large documents containing subscript, superscript, and foreign language characters. Packages of commands are available within academic or technical specialties so common commands to a profession or field are readily accessed during document preparation. In professional fields such as science and engineering, LaTeX generally is considered a stable tool for updating technical content. Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 4.
    Correct pronounciation  Lay-tek Lah-tek × Lay-teks × Lah-teks Donald Knuth created "Tex" ("TEX"), the three letters actually being uppercase letters for Greek word τεχνική. This Greek "tex" is the root of English words like "technical" and "technique". Later, Leslie Lamportbuilt "Latex" on top of Tex, prepending the "La" presumably to reflect his name. Τεχνική pronouns as technikí̱ Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 5.
    Major Differences betweenMS Word and LaTex Ms Word LaTex • Word becomes slow when handling either very large texts or texts with large graphics. • LaTeX is faster because you write down only the contents and software wastes no time thinking about layout. • Word type setting quality is ok for most purposes but its far from professional. • Provides you with professional layout out of the box. If you want to get into the nitty-gritty, you can adapt the default to your own taste but the standard is already very high without any customisations. • Here the main shortcoming is that Word does not include a citation utility. You will need to use additional software to fill the gap. • is open source many generations of scientists have written the extensions they needed. You will be able to find all commonly and most rarely used features. References are handled by BibTeX . • MS Word developers make almost no effort to facilitate exchange with foreign programmes. You may not experience that, because Word is so widespread. But even between flavours of Word there are compatibility problems, e.g. WinWord vs. MacWord or latest version to older version. • This is not the case with LaTeX. The main output format is PDF, which is the same over all OSs. LaTeX editors exist for all types of systems and are highly compatible. Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 6.
    LaTex is notWYSIWYG while MS Word is WYSIWYG WYSIWYG “What you see is What you get” Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 7.
    You can focuson content instead of typesetting and layout (references, citations, figures, equation/figure numbering, formatting is all handled by LATEX) You can generate professional quality typeset documents. Math is formatted as well as the best typesetting system. It runs on all operating systems (Linux/Unix, Mac, and Windows) It is free In brief words Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 8.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 9.
    Offline LaTex Editors TeXworksTex TeXstudio TeXmaker Online LaTex Editors ShareLaTeX Overleaf https://beebom.com/best-latex-editors/ Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 10.
    TeX distributions foroffline editors The set of programs that make possible to compile TEX and LATEX documents is called a TEX typesetting or a TEX distribution. There are many TEX distributions available for different operating systems: •MiKTeX for Windows •TeX Live for Linux and other UNIX-like systems •MacTeX redistribution of TeX Live for macOS •teTeX for Linux and other UNIX-like systems; it is no longer actively maintained now Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 11.
    No need tothink about a LaTeX editor or any packages on your computer. All work is done online. Great for LaTeX newbies. No worries about whether you are working on the latest version of the file, you always are, because all work is done on the ShareLaTeX servers. Great for collaborations across timezones. If you need to talk while you’re working on your manuscript, the chat option works too! Online over Offline When you’re done, or need to send a version of the manuscript to someone else, it’s easy to download the entire project (including bib files and figures) to your computer or just the PDF, which is usually enough. Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 12.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 13.
    Input output Dr AshwanA. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 14.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 15.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 16.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 17.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 18.
    Content Preamble Output file Run *.texfile Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 19.
    Run *.tex file DrAshwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 20.
    Document classes inLaTex Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 21.
  • 22.
    Title of Document Datecan use date Run to appear Author name Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 23.
    Document Sections Dr AshwanA. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 24.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 25.
    Lists • List arebasic elements in a document, when used correctly they keep concepts organized and structured. This article explains how to create and modify numbered and unnumbered lists in LATEX. • amssymb environment (package) is the default LATEX method to typeset lists • Unordered lists itemize • Ordered lists enumerate • Nested lists Types of Lists Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 26.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 27.
    Mathematical Expressions usepackage{amsmath} 1. $E=m$ 2.(sqrt{x^2+1}) Display mode 1. [ E=M] 2. $$ E=M$$ 3. begin{equation} E=m end{equation} 4. begin{displaymath} sqrt{x^2+1} end{displaymath} 5. begin{math} sqrt{x^2+1} end{math} Inline Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 28.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 29.
    LaTex Symbols Dr AshwanA. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 30.
    Matrices Environment amsmath environmentis the default LATEX method to typeset matrices Matrices Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 31.
    curly brackets square bracketsbmatrix [ double pipes pipes Bmatrix { Vmatrix || vmatrix | Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 32.
    Tables tabular environment isthe default LATEX method to create tables Col Numbers and positions Table position flushleft or flushright New line cell1 cell2 cell3 cell4 cell5 cell6 cell7 cell8 cell9 output Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 33.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 34.
    Figures graphicx environment isthe default LATEX method to include images and figures graphicspath{ {./images/} } includegraphics[width=3cm, height=4cm, angle=45, scale=0.5]{lion-logo} command options Image name Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 35.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 36.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 37.
    Labelling Using the commandto label (section, equation, table, figure and equation ) so can use it to refer the object inside the text label{marker} To refer the object in text, use the command ref{tab:d1} for tables ref{sec:s1} for sections ref{fig:F1} for figures eqref{q1} for equations Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 38.
    usepackage{xcolor} And the commandis color{red} Coloring Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 39.
    References Two methods toinsert references 1. Embedded system Reference section in article Reference item User defined variable to use in reference citation inside the text body using cite command ex. the Donald Knuth's website cite{knuthwebsite}. Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 40.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 41.
    bibliographystyle{plain} bibliography{sample} 2. Bibliography managementwith Bibtex sample.bib Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 42.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 43.
    Using LaTex JournalTemplates Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 44.
    http://www.guide2research.com/journals/computer-vision Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 45.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 46.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 47.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 48.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 49.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 50.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 51.
    17/03/2021 Dr AshwanA. Abdulmunem - ashwan.a@uokerbala.edu.iq Useful Links Symbols Write Equations, Other, More Create Tables online Other Useful LaTex Code Generate Bibtex Search Bibtex Video tutorials on LaTex
  • 52.
    Dr Ashwan A.Abdulmunem Ashwan.a@uokerbala.edu.iq Dr Ashwan A. Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021
  • 53.
    Dr Ashwan A.Abdulmunem - ashwan.a@uokerbala.edu.iq 17/03/2021