Introduction to Latex CE Dep, IAUSDJ.ac.ir (14 Dec, 2016)

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

LaTeX tutorial Eileen Kraemer CSCI 6950 September 30 th, 2011.
LaTeX How to setup and write a lab in LaTeX. What is it and how is it different? Latex is a scripting language used for writing documents. It differs.
Introduction to LaTeX CPS470 Software Engineering Fall 1998.
LaTeX 2e Basics CSE470 Fall 2000 Software Engineering B.J. Czerny Updated by J. Brown, A. Subramanian.
Applications of Tex for papers and your thesis Lecture by Natascha Niermann,in context of the phd progamm FB Physik, Surface Physics Universität Osnabrück,
LaTeX 2e Basics CSE470 Spring 2000 Software Engineering B.J. Czerny Updated by Prasad.
CS 173 Fall Introduction to LaTeX David and Lucas CS 173 Fall 2009 Written with significant references to Oetiker et al. “The Not So Short Introduction.
Chapter 12: Network Programming Desktop Publishing Translator models Latex Documentation Preparation Postscript programming language WYSIWIG Editors.
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.
1 LaTeX Introduction Wenguang Wang Department of Computer Science University of Saskatchewan February 28, 2000.
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.
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.
Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Word 2007 Chapter 4: Share, Compare and Document Robert Grauer, Keith.
CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) 1CC510 – 2011.
Intro to LaTeX WING meeting 12 Jan What’s LaTeX? >An alternative to using MS Word for writing reports and papers >Our target today: HYP Thesis.
CMSC 601 LaTeX Spring 2011 Tim Finin
1 Lecture 4 A Brief Introduction to LaTeX Introduction to Information Technology Dr. Ken Tsang 曾镜涛
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.
Academic Writing Using LaTeX
Creating documents 09/18/13 Introduction to Latex.
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
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.
Chapter 5 More About LaTex. Packages A package, which takes the form of a file with a sty extension, can be used to alter formatting parameters, create.
Information SKL for Graduate Students Instructors: Sina Mater 3 December 2010.
R 賴威昇 Introduction 2. Why using LaTeX ? 3. LaTeX usage: ◦ Backbone ◦ Equation ◦ Figure ◦ Table ◦ BibTex 4. Compile 5. Conclusion.
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.
Department of Mathematics, Jazan University, Jazan.
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
Microsoft Word Objectives: Word processing using Microsoft Word
Sébastien Le Roux.
Lesson 16 Enhancing Documents
Vereniging voor Technische Physica workshop 2016.
Agenda Introduction Installation Document Structure
Computer Fundamentals
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
Benchmark Series Microsoft Word 2016 Level 2
A Very Short Introduction to LaTeX
Outline Basic English Information Inquiry Reading Technical Materials
Text processing Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section 12.1.
A high quality document preparation system
Making Math Look Pretty – or How to Use LaTeX
LaTeX A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. Alphanumeric source files are.
The LaTeX Tutorial.
The LaTeX Tutorial.
Welcome To Microsoft Word 2016
Presentation transcript:

Introduction to Latex CE Dep, IAUSDJ.ac.ir (14 Dec, 2016)

 high typographical quality of the documents  LaTex is de facto standard and is installed at many universities  Can be run on most operating systems  Equations, citations, figures, tables, etc., can be labeled so that cross referencing is automated  LaTex is free!  LaTex is not WYSIWYG (What You See Is What You Get)

 First consider what type of paper you are writing so that you know whose packages to install.  Physics uses The Physical Review Packages  Math uses The AMS packages, which is also useful for writing just a general document or a Logic report.  Chemistry even uses some specialized packages, but much of its writing can be achieved through AMS. If you are interested in exploring chemistry packages further follow the link to get started. Click Here.Click Here.  Most can just be searched on Google, or found using the MikTex package manager.

 Keep all of the associated files in a single directory.  Latex was probably originally made for linux, so it is a little picky about path names.  Path names should have not special symbols or spaces. In fact the folder that you place the files in should be kept in the root directory on a windows machine.  Also if you use any specialized style files they should also be kept with the projects files. These are.sty files.

 Download and run the Basic MiKTeX installer from  IEEE Manuscript Templates for Conference Proceedings  blishing/templates.html blishing/templates.html  IEEE Article Templates and Instructions  blishing/templates.html blishing/templates.html

 TeX is essentially a Markup Language (like HTML, XML and RTF)  LaTex is an extension of TeX  Macro packages to make TeX easier to use Presentaion is based on Troy D. Milner and Simon Cuce slides

History Late 1970s -> 1989: TeX by Don Knuth  Decent typesetting by the authors!  Same output now as in the future  Low level, but powerful  Frozen development Starting early 1980s: LaTeX by Leslie Lamport  High level language (macros, really) for TeX  Easy to use!  Current version is Latex2e

LaTeX as in “latex” or…? Some say LAY-teck Some say LAH-teck Some say LAY-tech (as in “Bach”) Some say LAY-tex … According to Wikipedia: Knuth says /tex/ (as in Bach) Lamport says “whatever…”

 High typeset quality  Easy to include math formulas  Source file format is not bounded to a particular OS or platform  Latex implementations exists for all platforms (DOS, Windows, Unices,..)

 De facto standard for scientific publishing  Very few bugs  Good for large documents  Can run even on 386 PC  Not very easy to learn!

 \documentclass{article}  \title{Simple Example}  \author{Rouhollah Nabati}  \date{December 2016}  \begin{document}  \maketitle  Hello world, Salam!  \end{document}

Your Latex FileYour Bibtex File Latex compile x3 Bibtex compile x2 Latex compile x3 Your Postscript File dvips compile x1 Device independent output.dvi (a text file)

 Document Class ▪ There are 4 main predefined classes: article, letter, report, book, and slides.  Packages used ▪ Added Functionality (graphics, reference style,...).  Main Body ▪ Text and Bibliography References.

 Document Class ▪ \documentclass[options]{class} ▪ options = a4paper, 11pt, 12pt, 10pt, twocolumn, landscape,... ▪ class = article, report, book,...  Packages ▪ \usepackage{package name} ▪ epsfig = insert PS pictures into the document ▪ fancyhdr = easy definition of footer and header

 Start with \begin{document}  End with \end{document}  Typesetting Text  \\ or \newline and \newpage  % comments  Bold \textbf{……………} or \bf  Italics \emph{…………} or \textit{………} or \it  Underline \underline{…………} or \ul

 Including Multiple Files  \input{filename.tex}

 The Physical Review package ads something new to the title. It ads the Abstract section.  \begin{abstract} Abstract text  \end{abstract}  After this section you can put the make title command.

 Sections  \section{…} = 1. Latex is Great  \subsection{…} = 1.1 Why Latex is Great  \subsubsection{…} = Reason One  \appendix - changes numbering scheme  \chapter{…} - To be used with book and report document classes  Titles, Authors and others  \title{…} \author{…}  \footnote{…}

 \maketitle - Display Title and Author  \tableofcontents - generates TOC  \listoftables - generates LOT  \listoffigures - generates LOF  Labels  \label{marker} - Marker in document.  \pageref{marker} - Displays page no. of marker.  \ref{marker} - Displays section location of marker.  Itemize  Use either enumerate, itemize or description.  see handout for example.

 Source  \begin{itemize}  \item Apple  \item Orange  \end{itemize}  Result  Apple  Orange

 Enumerate instead of itemize gives a numbered list  Lists can be recursive

 Something between  \begin{name}  \end{name}  Many command, for example \bf affect the text until the end of environment  Environments can be recursive  Examples:  itemize, center, abstract

 Group is some text between { and }  Many commands work until the end of the group  Code  put {one word \bf in bold} here  Result  put one word in bold here

 Environments center, flushleft, flushright  Example  \begin{flushright}  Right aligned  \end{flushright}  Result  Right aligned

 \tiny \scriptsize \footnotesize  \small \normalsize  \large \Large \LARGE  \huge \Huge

 \documentclass{article}  \title{Simple Example}  \author{Rouhollah Nabati}  \date{December 2016}  \begin{document}  \maketitle  Hello world!  \end{document}

 Columns  \begin{tabular}{|…|…|}  \end{tabular}  Rows  & - Split text into columns  \\ - End a row  \hline - Draw line under row  e.g & 34.00\\ \hline Two Columns l = automatically adjust size, left justify r = automatically adjust size, right justify p = set size e.g p{4.7cm} c = centre text

 \begin{tabular}{|l|r|c|} \hline  Date & Price & Size \\ \hline  Yesterday & 5 & big \\ \hline  Today & 3 & small \\ \hline  \end{tabular}

 Floating objects can stop splitting of tables and images over pages.  \begin{figure}[options]  \end{figure}  \begin{table}[options]  \end{table}  They will now appear in the  List of Figures (LOF) and  List of Tables (LOT). Options (recommendations) h = place table here t = place at top of page b = place at bottom of page

 \begin{figure}[ht]  \centering\epsfig{file=uni.ps, width=5cm}  \caption{Azad University of Sanandaj}  \label{uni}  \end{figure} Figure~\ref{uni} shows...

 Use epsfig package  \usepackage{epsfig}  Including images in main body  \epsfig{file=filename.eps, width=10cm, height=9cm, angle=90}  Creating EPS - Use xv and/or xfig.  MS Power Point, save as GIF and convert to EPS.

 \usepackage{graphicx}  \begin{figure}[h]  \centering  \captionsetup{justification=centering}  \includegraphics[width=85mm]{img-1}  \caption{Illustration of the iteration process of building a full tree. The firts 5 iteration of DURT.}  \label{fig-DURT}  \end{figure}

 Put simple equation between two $  $t=0$  $E=mc^2$  $n^{n-1}$

 You need an equation by itself. That is also numbered. You do this with  \begin{equation} \frac{1}{N} \sum_{i=1}^{n} \frac{2N_i}{k_i*(k_i-1)}  \end{equation}  If you wish to leave it unnumbered simply put an asterisk at the end of the word equation. \begin{equation*} equation \end{equation}

 \usepackage{algorithm}  \begin{algorithm}  \caption{EDSS Algorithm}  \begin{algorithmic}[1]  \Procedure{EDSS}{$T$}\Comment{$T$ is the number of iterations}  \While{$t\not=T$}  \State $t\gets T$  \State\textbf{Step 0:} Node "0" generated.  \EndWhile\label{euclidendwhile}  \EndProcedure  \end{algorithmic}  \end{algorithm}

 \usepackage{algorithm}  \begin{algorithm}  \caption{EDSS Algorithm}  \begin{algorithmic}[1]  \Procedure{EDSS}{$T$}\Comment{$T$ is the number of iterations}  \While{$t\not=T$}  \State $t\gets T$  \State\textbf{Step 0:} Node "0" generated.  \EndWhile\label{euclidendwhile}  \EndProcedure  \end{algorithmic}  \end{algorithm}

 \begin{figure}[h]  \begin{tikzpicture}  \begin{axis}[  %title={Clustering coefficient distribution in proposed model for N=15 and T=4},  xlabel={Clustering coefficient},  ylabel={Count},  xmin=0, xmax=1.2,  ytick={1,2,3,4,5},  ….  ]  \addplot[  \label{plot:CC-distribution}  \end{figure}

 \Ref {Label} -> Reference to Figure, Section, Equation and etc.  \Ref{sec:introduction}  \Cite{Label} -> Cite an article listed in Bibliographgy  \cite{newman-2000}

 \begin{thebibliography}{}  \bibitem[Come95]{Come95} Comer,  D. E., {\it Internetworking with TCP/IP:  Principles, Protocols and Architecture},  volume 1, 3rd edition. Prentice-Hall,   \end{thebibliography}

 Bibliography information is stored in a *.bib file, in Bibtex format.  Include chicago package  \usepackage{chicago}  Set referencing style  \bibliographystyle{chicago}  Create reference section by  \bibliography{bibfile with no extension}

 author=“D. E. Comer”,  title={Internetworking with TCP/IP: Principles, Protocols and Architecture},  publisher=“Prentice-Hall”,  year=1995,  volume=1,  edition=“Third”}

 Citing references in text  \cite{cuc98} = (Cuce 1998)  \citeN{cru98} = Crud (1998)  \shortcite{tom98} = (Tom, et. al. 1998)  Creating Bibtex Files  Use Emacs with extensions.  or copy Bibtex entries from bibliography database.

 \begin{center}  {\large  $$ y=\frac{a^3+2c_{x}}{1+\sqrt{b_ {x}}} $$ \\  \vspace{0.2in}  $$ Q=\sum_{i=1}^{j}\int_{\mu}^{\i nfty}f(x_{j})dx $$ \\  \vspace{0.2in}  $$ \Psi = \oint_{- \infty}^{\infty}f_{xy}({\frac{\par tial  Qx}{\partial Qy}})^{\Im_{\pi}^ \prime} $$ \\ }

 UNIX based systems  xdvi, ghostview, fixps, emacs with latex/bibtex support.  Windows 98/NT  Ghostview, Acrobat Distiller, Acrobat Reader, Scientific Workplace (not the best), the Bibtex viewer is good. Paint Shop Pro, Latex and Emacs

 Download XeTeX from   Or farsixetex

 Beamer  Beamer is a LaTeX document class for creating slides for presentations.  Beamer provides the ability to make "handouts“  Powerdot  Powerdot is a LaTeX class for making professional-looking presentation slides.

 Latex is optimal for master and phd thesis?  Mathematical formulae are easy.  Use bibtex search engines  Consider converting Postscript files to PDF (more widespread in Windows world) and to conserve space.

     Latex math symbols  /symALL.html /symALL.html LaTex project page   Google is your friend…

     Latex math symbols  /symALL.html /symALL.html LaTex project page   Google is your friend… amsmath It contains the advanced math extensions for LaTeX. The complete documentation should be in your LaTeX distribution; the file is called amsdoc, and can be dvi or pdf. For more information, see the chapter about Mathetics.Mathetics amssymbIt adds new symbols in to be used in math mode. amsthm It introduces the proof environment and the \theoremstyle command. For more information see the Theoremssection.Theorems array It extends the possibility of LaTeX to handle tables, fixing some bugs and adding new features. Using it, you can create very complicated and customized tables. For more information, see the Tables section.Tables babel It provides the internationalization of LaTeX. It has to be loaded in any document, and you have to give as an option the main language you are going to use in the document. For more information see the Internationalization section.Internationalization biblatexAdvanced bibliography handling. It is the package to use for writing a thesis. bm Allows use of bold greek letters in math mode using the \bm{...} command. This supersedes the amsbsy package. booktabs provides ex­tra com­mands as well as be­hind-the-scenes op­ti­mi­sa­tion for producing tables. Guide­lines are given as to what con­sti­tutes a good ta­ble in the package documentation. captionAllows customization of appearance and placement of captions for figures, tables, etc. cancel Provides commands for striking out mathematical expressions. The syntax is \cancel{x} or \cancelto{0}{x} chemmacrosPart of a bundle to typeset chemistry easily and consistent. changepageTo easily change the margins of pages. The syntax is enumitemAdds support for arbitrarily-deep nested lists (useful for outlines). See List Structures.List Structures esintAdds additional integral symbols, for integrals over squares, clockwise integrals over sets, etc. eucalOther mathematical symbols. fancyhdr To change header and footer of any page of the document. It is described in the Page Layout section.Page Layout

He who learns, teaches.

Thank you for your attention.