Latex
Upcoming SlideShare
Loading in...5
×
 

Latex

on

  • 523 views

 

Statistics

Views

Total Views
523
Views on SlideShare
523
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Latex Latex Presentation Transcript

  • Introduction to LaTeXLaTeX is a document markup language and document preparationsystem for the TEX typesetting program. Within the typesetting system,its name is styled as LaTeX. LaTeX refers only to the language inwhich documents are written, not to the editor used to write thosedocuments. In order to create a document in LaTeX, a .tex file must becreated using some form of text editor.
  • How To Install LaTeXType the following command to install LaTeX: $ sudo apt-get install texlive-full
  • Certificate Creation Using LaTeXRequirements: Install LaTeX using command: sudo apt-get install texlive-full Need datatool.sty file or install this package for importing csv file. Need data.csv file which contain information retrieved from database . Here is the example of csv database file Name,Dep,photo Rajdeep,Information Technology,img/index1.jpeg Mandeep,Information Technology,img/index1.jpeg In the above, img is the folder which contain photos of people
  • LaTeX Input File StructureThe first command in any LaTeX file normally determines the global processing format for the entire document.documentclass[options]{class}The possible values of class are: article,book, report or letter.The options available allow various modifications to be made to the formatting, like selecting font size — 10pt, 11pt, 12pt, specifying paper size — letterpaper, legalpaper,executivepaper, page formats — onecolumn, twocolumn etc.The following command starts the document:begin{document}Now you enter the text mixed with some useful LaTeX commands. At the end of document add the following commandend{document}
  • PreamblePreamble is the portion between documentclass and begin{document}. This can contain package loading command like usepackage{ packagename }. Any number of usepackage command can be issued or alternatively you can give the packagenames as a comma separated list in a single usepackage command.A typical preamble of a LaTeX document will look like:documentclass[a4paper,11pt]{article} //classusepackage{setspace} //for spacing between linesusepackage{graphicx} //for including imagesusepackage{color} // for including colorsbegin{document}
  • Adding Imageincludegraphics[options]{filename}Following are the options available in includegraphics command:width - The width of the graphics (in any of the accepted TEX units).height -The height of the graphics (in any of the accepted TEX units).totalheight -The totalheight of the graphics (in any of the accepted TEX units).scale -Scale factor for the graphic. Specifying scale=2 makes the graphic twice as large as its natural size.For e.g--includegraphics[width=.92linewidth]{logo.png}
  • Retrieve Data From CSV FileThe following package is required to include database file as .csvusepackage{datatool}data.csv includes information from databaseDTLloaddb{name}{data.csv}Variables are used to fetch the data from csv fileDTLforeach{name}{name=Name, dep=Dep, photo=photo}Here we called the variablesThis is to certify that{large{name}}
  • Compilation of LaTeX Input FileThe following command will produce certificate.pdf which have multiple certificates.$pdflatex certificate1.texIf you want to convert pdf to jpg images, Here is the method:1. First install imagemagic tool using command: sudo apt-get install imagemagick2. Create the folder named jpg3. Run the following command to convert pdf file to jpg images:$convert -density 300 certificate1.pdf jpg/certificates.jpg
  • Thank You