the latex workshop: beginning to type documents in latex
DESCRIPTION
These are some of the first slides from a series of talks delivered by me for teaching LaTeX to faculty and researchers.TRANSCRIPT
![Page 1: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/1.jpg)
Motivation Installation Typeset Compile
Document design in LATEXThe motivation
Suddhasheel Ghosh
1Department of Civil EngineeringMGM’s Jawaharlal Nehru Engineering College,
Aurangabad, MH
2MGM - Institute of Biosciences and TechnologyAurangabad, MH
The LaTeX workshop
shudh Starter
![Page 2: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/2.jpg)
Motivation Installation Typeset Compile
Outline
1 Motivation
2 Getting ready with our machineryInstalling it on WindowsInstalling it on Linux
3 Fundas of document typesettingThe preambleThe bodyTypesetting mathematicsTables
4 Compiling a LaTeX file
shudh Starter
![Page 3: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/3.jpg)
Motivation Installation Typeset Compile
Outline
1 Motivation
2 Getting ready with our machineryInstalling it on WindowsInstalling it on Linux
3 Fundas of document typesettingThe preambleThe bodyTypesetting mathematicsTables
4 Compiling a LaTeX file
shudh Starter
![Page 4: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/4.jpg)
Motivation Installation Typeset Compile
Oh Wonder!
This presentation has beendesigned on LATEX !
shudh Starter
![Page 5: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/5.jpg)
Motivation Installation Typeset Compile
Some history... and details
Initially started with the TEXprogram for typesettingmathematical and scientific documentsLATEX is a set of macros and definitions built over theTEXpackageThe LATEX project is hosted athttp://www.latex-project.org/
This package is FREE and provided under the LPPL (LATEXProject Public License)Latest version is LATEX2ε
shudh Starter
![Page 6: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/6.jpg)
Motivation Installation Typeset Compile
How do I say LATEX
The origin of the word TEX is the Greek τεχνηmeaning“skill, art, technique” and is pronounced “tech” as in theword “technician”LATEX is pronounced as LAY-tek or LAH-tek.Donald E. Knuth encourages pronunciation as LAY-tek.Leslie Lamport says any pronunciation can be used.Modern trends suggest pronunciation as LAY-tekh.
shudh Starter
![Page 7: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/7.jpg)
Motivation Installation Typeset Compile
Excuses for using LaTeX
I do not wish to use “commercial” softwareI am not happy with the mathematical rendering of the“Commercial software”Too much mathematical content in my documents and Iam tired of the click-find-click-type-repeatMath makes my documents look badly formattedI like typing more than clickingI would like to explore
shudh Starter
![Page 8: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/8.jpg)
Motivation Installation Typeset Compile Windows Linux
Outline
1 Motivation
2 Getting ready with our machineryInstalling it on WindowsInstalling it on Linux
3 Fundas of document typesettingThe preambleThe bodyTypesetting mathematicsTables
4 Compiling a LaTeX file
shudh Starter
![Page 9: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/9.jpg)
Motivation Installation Typeset Compile Windows Linux
Our requirements
The basic toolsA LaTeX distributionA LaTeX document editor: preferably one which can editLaTeX documents and compile them too.A document visualizer: preferably a PDF viewer
The advanced toolsA bibliography management softwareA WYSIWYG editorA GUI environment for drawing plots / graphs of functionsImage editing software
In this session, we present the basic tools for design.
shudh Starter
![Page 10: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/10.jpg)
Motivation Installation Typeset Compile Windows Linux
Our requirements
The basic toolsA LaTeX distributionA LaTeX document editor: preferably one which can editLaTeX documents and compile them too.A document visualizer: preferably a PDF viewer
The advanced toolsA bibliography management softwareA WYSIWYG editorA GUI environment for drawing plots / graphs of functionsImage editing software
In this session, we present the basic tools for design.
shudh Starter
![Page 11: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/11.jpg)
Motivation Installation Typeset Compile Windows Linux
Our requirements
The basic toolsA LaTeX distributionA LaTeX document editor: preferably one which can editLaTeX documents and compile them too.A document visualizer: preferably a PDF viewer
The advanced toolsA bibliography management softwareA WYSIWYG editorA GUI environment for drawing plots / graphs of functionsImage editing software
In this session, we present the basic tools for design.
shudh Starter
![Page 12: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/12.jpg)
Motivation Installation Typeset Compile Windows Linux
Our requirements
The basic toolsA LaTeX distributionA LaTeX document editor: preferably one which can editLaTeX documents and compile them too.A document visualizer: preferably a PDF viewer
The advanced toolsA bibliography management softwareA WYSIWYG editorA GUI environment for drawing plots / graphs of functionsImage editing software
In this session, we present the basic tools for design.
shudh Starter
![Page 13: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/13.jpg)
Motivation Installation Typeset Compile Windows Linux
Getting our machinery readyOn Microsoft Windows
LaTeX distribution:MikTeX (www.miktex.org).Download the basic installer. Installs required packages‘on-the-fly’.
LaTeX Editor:Open Source: TeXnicCenter (www.texniccenter.org)Commercial: WinEdtWith the distribution: TeXWorks recommended
PDF Viewer: Adobe Acrobat Reader (freely downloadable)
shudh Starter
![Page 14: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/14.jpg)
Motivation Installation Typeset Compile Windows Linux
Getting our machinery readyOn Linux
LaTeX distribution: TexLiveDebian based: sudo apt-get install texliveRed Hat based: sudo yum install texlive
LaTeX Editor:TeXworksTeXStudioGEdit with the LaTeX plugins
PDF Viewer: Evince, Okular
Linux Systems
Debian based: Debian, Ubuntu, Mint, Pinguy, ...Red Hat based: RHEL, Febora, Suse, ...
shudh Starter
![Page 15: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/15.jpg)
Motivation Installation Typeset Compile Preamble The body Math Tables
Outline
1 Motivation
2 Getting ready with our machineryInstalling it on WindowsInstalling it on Linux
3 Fundas of document typesettingThe preambleThe bodyTypesetting mathematicsTables
4 Compiling a LaTeX file
shudh Starter
![Page 16: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/16.jpg)
Motivation Installation Typeset Compile Preamble The body Math Tables
Dissecting a LaTeX fileProperties
File extension: .texFile parts
The preambleThe body
shudh Starter
![Page 17: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/17.jpg)
Motivation Installation Typeset Compile Preamble The body Math Tables
The preambleContents
Announcement of the class template: Typically\documentclass[a4paper,10pt]{article}
Optional: List of packages to be used. Looks like\usepackage{...}
Optional: Font face specificationsOptional: Definitions and other macros
shudh Starter
![Page 18: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/18.jpg)
Motivation Installation Typeset Compile Preamble The body Math Tables
The bodyContents
Sections, subsections and subsubsectionsMath: Inline, Display and equationsFiguresTables
Typical body layout
\begin{document}\section{My first section}\subsection{My sub section}\subsubsection{More details}\subsection{Another sub section}\subsubsection{Some more details}. . .\end{document}
shudh Starter
![Page 19: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/19.jpg)
Motivation Installation Typeset Compile Preamble The body Math Tables
Typesetting mathematicsInline, display and equations
All inline math have to be surrounded by $, display math by $$, andequations by \begin{equation} . . . \end{equation}
SourceThe second order algebraicpolynomial is given by $x^2+ x + 1$. This can bewritten in the displaymode as$$ x^2 + x + 1. $$The equation of thecircle with radius $a$is given as\begin{equation}x^2 + y^2 = a^2\end{equation}
Output
The second order algebraicpolynomial is given by x2 + x + 1.This can be written in the displaymode as
x2 + x + 1
The equation of the circle with radiusa is given as:
x2 + y2 = a2 (1)
More details on mathematical typesetting are in my presentation:Typesetting Mathematics in LaTeX: Getting your hands dirty
shudh Starter
![Page 20: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/20.jpg)
Motivation Installation Typeset Compile Preamble The body Math Tables
Setting up tables
\begin{table}\centering\begin{tabular}{|l|c|r|c|}\hlineClothing & Quantity & Rate & Place \\ \hlinePaithani & 1 & 1135.00 & Marathwada \\ \hlineBaluchari &2 &1345.00 &Orissa \\ \hlineBanarasi & 5 & 923.00 &Uttar Pradesh \\ \hline\end{tabular}\end{table}
Clothing Quantity Rate PlacePaithani 1 1135.00 MarathwadaBaluchari 2 1345.00 OrissaBanarasi 5 923.00 Uttar Pradesh
l - indicates left justified column, r - indicates right justifiedcolumn and c - indicates center justified column. More detailsare covered in Writing Journal papers in LaTeX: A complete
tour
shudh Starter
![Page 21: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/21.jpg)
Motivation Installation Typeset Compile Preamble The body Math Tables
Setting up images
This requires\usepackage{graphicx}in the preamble
\begin{figure}\centering\includegraphics[width=0.8\textwidth]{dumbledore.jpg}\caption{Dumbledore passes away}\end{figure}
Figure : Dumbledore passes away
This image has been taken fromhttp://harrypotter.wikia.com.
shudh Starter
![Page 22: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/22.jpg)
Motivation Installation Typeset Compile
Outline
1 Motivation
2 Getting ready with our machineryInstalling it on WindowsInstalling it on Linux
3 Fundas of document typesettingThe preambleThe bodyTypesetting mathematicsTables
4 Compiling a LaTeX file
shudh Starter
![Page 23: The LaTeX Workshop: Beginning to type documents in LaTeX](https://reader034.vdocuments.net/reader034/viewer/2022050802/55cf9ab7550346d033a3099f/html5/thumbnails/23.jpg)
Motivation Installation Typeset Compile
Compiling the LaTeX code
The compilation can be done withlatex - produces DVI filespslatex - produces PS filespdflatex - produces PDF files
If the name of the file is mypaper.tex the command lines are:latex mypaper.tex
pslatex mypaper.tex
pdflatex mypaper.tex
LaTeX editors like TeXnicCenter, WinEdt, TeXworks, Kile,TeXStudio automatically run these commands based on the
preferences set.
shudh Starter