Agenda Introduction Installation Document Structure

Slides:



Advertisements
Similar presentations
Lecture 8 Introduction to Latex. Introduction TeX is essentially a Markup Language (like HTML, XML and RTF) TeX written by Donald Knuth in 70´s –A revolution.
Advertisements

COE201 – Computer Proficiency Mr. Hamze Msheik
Introduction to LaTeX CPS470 Software Engineering Fall 1998.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Word 2003 Lab 3 Creating Reports and Tables.
LaTeX 2e Basics CSE470 Fall 2000 Software Engineering B.J. Czerny Updated by J. Brown, A. Subramanian.
LaTeX 2e Basics CSE470 Spring 2000 Software Engineering B.J. Czerny Updated by Prasad.
School of Aeronautics and Astronautics Introduction to by Arun K. Subramaniyan
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
Lecture 3 LaTeX and LyX. LaTeX TeX Computer program by Donald Knuth for typesetting text and formulas (1977) LaTeX Predefined professional layout You.
For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA A Very Short Introduction to LaTeX.
Adopted from: PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
LaTeX tutorial Syed Shazli. Most of the material taken from Monash University Online material available from Googling…
Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy.
Introduction to LaTeX PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
Introduction to… About Tex & LaTeX What is TeX? What is LaTeX? Advantages - Disadvantages.
Introduction to Latex A very quick look at typesetting documents Andrei Gurtov (based on Troy D. Milner and Simon Cuce slides)
Introduction to Unix – CS 21 Lecture 16. Lecture Overview LaTeX History Running and creating LaTeX documents Documents and Articles Tables Lists Fonts.
Introduction to LaTeX Thomas Gorry. What is Latex?  A typesetting system used to produce professional looking documents.  Particularly good at handling.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
LaTeX Tutorial Fiona Shearer May 11th, 2004 Disclaimer added
LATEXLATEX IPA – batch. LATEXLATEX  A document preparation system - pronounced as lay-tek  It is a markup and programming language created by.
LaTeX A Short Intro to Marco D. Santambrogio Politecnico di Milano Sala DEIB 2 Sept 2015 Ver. 2/9/15.
CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) 1CC510 – 2011.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
June LaTeX " A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. " Alphanumeric.
1 LaTeX For Dummies Mulugeta Gebregziabher Division of Biostatistics and Epidemiology MUSC April 4, 2011.
Creating documents 09/18/13 Introduction to Latex.
Copyright 2006 South-Western/Thomson Learning Chapter 12 Tables.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
Sukree Sinthupinyo Department of Computer Engineering Chulalongkorn University 13 June 2008.
SIGNewGrad: Intro to LaTeX
LATEX B. R. Chandavarkar, Wireless Information Networking Group (WiNG), CSE Dept., NITK, Surathkal.
1 Lesson 13 Organizing and Enhancing Worksheets Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
C151 Multiuser Operating Systems Introduction to LaTeX.
CSE470 Software Engineering Fall Tools - Overview LaTeX – Tool to create documents RCS – Revision Control System, to maintain multiple versions.
Lecture 3- Microsoft Word COE 201- Computer Proficiency.
Information SKL for Graduate Students Instructors: Sina Mater 3 December 2010.
Introduction to Technology. Parts of MSWord Screen Title Bar Quick Access Toolbar Button Ribbon Status Bar (views and zoom)
R 賴威昇 Introduction 2. Why using LaTeX ? 3. LaTeX usage: ◦ Backbone ◦ Equation ◦ Figure ◦ Table ◦ BibTex 4. Compile 5. Conclusion.
SPRING, 2010 Types of Formatting and Copy vs. Move.
Sébastien Le Roux. not What I am not going to talk about The explanations are in my HowTo ! Check my web IPCMS Basic tutorial to programming.
Vereniging voor Technische Physica workshop 2016.
MS WORD INFORMATION TECHNOLOGY MANAGEMENT SERVICE Training & Research Division.
Department of Mathematics, Jazan University, Jazan.
DAY 25: WORD CHAPTER Rohit March 28,
LaTex -Computer scientist named Donald Knuth developed the program called Tex, in 1978.(mainly focused on formulae) -Later a mathematician and computer.
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
LATEX By GerardoVela 3/27/2015.
Lecture 1 Introduction to Latex
THESIS & DISSERTATION FORMATTING
Sébastien Le Roux.
Vereniging voor Technische Physica workshop 2016.
By Rajyalakshmi Divi IIT Bombay
Introduction to LaTeX David and Lucas CS 173 Fall 2009
LaTeX Tutorial.
Introduction to LaTeX By Dan Burke.
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
Unit 2: Text Formatting.
Benchmark Series Microsoft Word 2016 Level 2
Basic usage and packages of TEX
A Very Short Introduction to LaTeX
Outline Basic English Information Inquiry Reading Technical Materials
A high quality document preparation system
Making Math Look Pretty – or How to Use LaTeX
The LaTeX Tutorial.
LaTeX Documents Document Body Preamble 8/3/2019 ARENA Tutorial - LaTeX
The LaTeX Tutorial.
Welcome To Microsoft Word 2016
Presentation transcript:

Agenda Introduction Installation Document Structure Mathematical Typesetting Handling Images Tables Bibilography Sample documents

Introduction Tex – Type setting program - Donald Knuth LaTeX – Variant of Tex – focuses on document structure - Leslie Lamport Highly portable LaTeX is free software under the terms of the LaTeX Project Public License (LPPL). A plain text file or can work with an IDE

Installation Distributions and Editors Distributions - To name some TeX Live , teTeX , fpTeX, ,MiKTeX, proTeXt, MacTeX, gwTeX, OzTeX, migaTeX, PasTeX… TeX Live (http://tug.org/texlive)- The better maintained TeX distribution MiKTeX (http://miktex.org) - A TeX distribution for Windows – easy of installation

Installation Editors - To name some TeXmaker, TeXstudio, TeXnicCenter, TeXworks,  ShareLaTeX … TeXnicCenter (www.texniccenter.org) – Feature rich environment for windows and smaller in size TeXstudio – (www.texstudio.org) -

C:\Users\ad\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64 Next all optional

Special Characters characters with special meaning $ & % # _ { } ~ ^ \ $ & % # _ { } ~ ^ \ can be used in the documents by adding a prefix backslash (escape character): \$ \& \% \# \_ \{ \} The other symbols can be printed with special commands in mathematical formulae.

Document Structure LATEX Commands - case sensitive \command[optional parameter]{parameter} Eg \documentclass[12pt, letterpaper]{article} \begin{document} Comments % - for line of comment Or \begin{comment} statements \end{comment}

Document Structure Sample document – \documentclass[12pt]{article} % this is the first sample text document \title{WSN in IoT - An Example} \author{Andhe Dharani, ManjuPrasad} \date{8th feb 2015} %end of preamble \begin{document} \maketitle \end{document}

Document Structure Sample document – \documentclass[12 pt] {article} \title{WSN in IoT - An Example} \author{Andhe Dharani \\ Department of MCA \\ RVCE \\ andhedharani@rvce.edu.in \and Manju Prasad B \\ Department of CSE \\ {GSSSIETW} \\ {manjuprasad32@gsss.edu.in}} \month \year \begin{document} \maketitle …. \end{document}

Document Class Defines the type of document article IEEEtran Report - For longer reports containing several chapters, small books, thesis, … book slides letter beamer

Document Class Document Class Options Size of main font in doc - 10pt, 11pt, 12pt – default is 10pt Paper size - a4paper, letterpaper, a5paper, b5paper, executivepaper, and legalpaper New page for title or not - titlepage, notitlepage Typeset the doc - twocolumn Output generation - twoside, oneside Layout of document - landscape draft

Basic formatting: abstract, paragraphs and newlines Most papers have abstract – LaTeX has predefined command… \documentclass{article}  \begin{document}  \begin{abstract} Your abstract goes here... ... \end{abstract} \end{document} Default, - "Abstract" as a title for your abstract To change it into anything else, e.g. "Executive Summary“ – \renewcommand{\abstractname}{Executive Summary}

Basic formatting: abstract, paragraphs and newlines When LaTeX is processing input text - Paragraph mode Math mode A paragraph is ended by one or more completely blank lines \indent:  Indent this paragraph \noindent:  Do not indent this paragraph \parskip:  Space added before paragraphs \marginal notes:  Putting remarks in the margin LaTeX usually does the line and page breaking- manually can use some commands like – \\ \newline \linebreak \nolinebreak

Font sizes Font sizes are identified by special names To apply different font sizes, commands \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge The commands change the size within a given scope - examples - {\Large some words} {\Large\tableofcontents}

Font Styles style Command medium \textmd{text} bold \textbf{ } \bf{ } Most common styles - Bold, italic and underline style Command medium \textmd{text} bold \textbf{ } \bf{ } upright \textup{ } italic \textit{ } \emph{ } slanted \textsl{ } small caps \textsc{ }

LaTeX - Units and Lengths Abbreviation Definition pt A point, is the default length unit. About 0.3515mm mm a millimetre cm a centimetre in an inch ex the height of an x in the current font em the width of an m in the current font \columnsep distance between columns \columnwidth width of the column \linewidth width of the line in the current environment \paperwidth width of the page \paperheight height of the page \textwidth width of the text \textheight height of the text \unitleght units of length in the picture environment

\setlength{\textwidth}{15cm}

Sections Book has chapters, Article does not - sections \section{Section Title} \subsection{Title} \subsubsection{Title} LaTeX provides 7 levels of depth for defining sections

chapters and sections in a Book/Report - Example \documentclass{report} \begin{document} \tableofcontents{} \chapter{Introduction} \section{Wireless Sensor Networks} \subsection{Deployment and Characteristics} ….. \chapter{Literature Survey} \section{Performance} ……... \end{document}

Table of contents - auto generated add the command \tableofcontents - where it needs to be printed The default ToC will list headings of level 3 and above – to change add command \setcounter{tocdepth}{number} in the preamble The commands \listoffigures and \listoftables work in exactly the same way as \tableofcontents to automatically list all the tables and figures

Mathematical Typesetting There are three environments that put LaTeX in math mode: math - For formulas that appear right in the text. displaymath - For formulas that appear on their own line. equation - The same as the displaymath environment except that it adds an equation number in the right margin

Mathematical Typesetting 1) \(...\) or \begin{math}...\end{math} or $ … $ 2) \[...\] or \begin{displaymath}...\end{displaymath} 3) \begin{equation} \lable{key} …. \end{equation} - lable is optional

Mathematical Typesetting Sample code - \begin{equation} \label{eq:solve} x^2 - 5 x + 6 = 0 \end{equation} \[ x_1 = \frac{5 + \sqrt{25 - 4 \times 6}}{2} = 3 \] $ a=b+c\div{d-c} $ \begin{equation} x_2 = \frac{5 - \sqrt{25 - 4 \times 6}}{2} = 2 \end{equation} and so we have solved equation~\ref{eq:solve}

Mathematical Typesetting

Inserting Images Latex can not manage images by itself, so we need to use the graphicx package. include the following line in the preamble: \usepackage{graphicx} The command \graphicspath{ }} – path of the images folder %Path in Windows format: \graphicspath{ {c:/user/images/} }  %Path in Unix-like (Linux, OsX) format \graphicspath{ {/home/user/images/} } The \includegraphics{image} command is the one that actually included the image in the document.

Inserting Images Sample code \documentclass{article} \usepackage{graphicx} \graphicspath{ {images/} }  \begin{document} The universe is immense and it seems to be homogeneous, in a large scale, everywhere we look at.  \includegraphics{universe} There's a picture of a galaxy above \end{document}

Inserting Images Changing the image size \includegraphics[scale=1.5]{image} Positioning \begin{figure}[h] \includegraphics[width=8cm]{Plot} \end{figure} h – Place the float here, i.e., approximately at the same point it occurs in the source text

Inserting Images Parameters for positioning h - places the float “here” t - position at top of the page b -position at bottom of the page p - puts a special page for floats only ! - Override internal parameters LaTeX uses for determining "good" float positions H - Places the float at precisely the location in the LaTeX code, equivalent to h

Inserting Image Wrap text around an image \begin{wrapfigure}{r}{0.25\textwidth} %this figure will be at the right \centering \includegraphics[width=0.25\textwidth]{mesh} \end{wrapfigure}

Inserting Image Captioning images \begin{figure}[h] \caption{Example of a WSN network)} \centering \includegraphics[width=0.5\textwidth]{WSN}\end{figure}

Inserting Images Labels and cross-references \begin{figure}[h] \centering \includegraphics[width=0.25\textwidth]{mesh} \caption{a nice plot} \label{fig:mesh1} \end{figure}  As you can see in the figure \ref{fig:mesh1}, the function grows near 0. Also, in the page \pageref{fig:mesh1} is the same example.

Inserting Images There are three commands that generate cross-references in this example. \label{fig:mesh1} This will set a label for this figure. Since labels can be used in several types of elements within the document, it's a good practice to use a prefix, such as fig: in the example. \ref{fig:mesh1} This command will insert the number assigned to the figure. It's automatically generated and will be updated if insert some other figure before the referenced one. \pageref{fig:mesh1} This prints out the page number where the referenced image appears. \listoffigures - to automatically generate a list of figures.

Inserting Tables Tables can be created using tabular environment. \begin{tabular}[pos]{cols} table content \end{tabular} pos : Vertical position. It can assume the following values: t - the line at the top is aligned with the text baseline b - the line at the bottom is aligned with the text baseline c or none - the table is centered to the text baseline

Inserting Tables cols : Defines the alignment and the borders of each column l - left-justified column c - centred column r - right-justified column p{'width'} - text vertically aligned at the top m{'width'} - text vertically aligned in the middle (requires array package) b{'width'} - text vertically aligned at the bottom (requires array package) | - vertical line || - double vertical line

Inserting Tables To separate between cells and introducing new lines use the following commands: & - column separator \\ -start new row (additional space may be specified after \\ using square brackets, such as \\[6pt]) \hline - horizontal line between rows \newline - start a new line within a cell (in a paragraph column) \cline{i-j} - partial horizontal line beginning in column i and ending in column j

Inserting Tables Example 1 \begin{center} \begin{tabular}{ c c c } cell1 & cell2 & cell3 \\ cell4 & cell5 & cell6 \\ cell7 & cell8 & cell9 \end{tabular} \end{center}

Inserting Tables Example 2 \begin{center} \begin{tabular}{ |c|c|c| } \hline cell1 & cell2 & cell3 \\ cell4 & cell5 & cell6 \\ cell7 & cell8 & cell9 \\ \end{tabular} \end{center} { |c|c|c| }

Referencing Referencing Style: ieeetr, unsrt, plain, acm, abbrv, apa, alpha Usage: \cite{bdvs07} – bdvs07: Article details in Bib file (sample.bib) \bibliographystyle{ieeetr}- ieeetr referencing style \bibliography{sample}- sample.bib file which contains articles details

Sample

BIB File(sample.bib)

Generating BIB File

Google Scholar Or Any Citation Data Base With Text to BiB online Generating BIB File Google Scholar Or Any Citation Data Base With Text to BiB online

andhedharani@rvce.edu.in & manjuprasad32@gsss.edu.in Thank you andhedharani@rvce.edu.in & manjuprasad32@gsss.edu.in