Basic Latex Typesetting - Session 1

  • View
    6.192

  • Download
    1

Embed Size (px)

DESCRIPTION

 

Text of Basic Latex Typesetting - Session 1

  • Introduction The TEX Document Structure General Formatting The Math Environment A Basic LTEX Typesetting A Hands-On Seminar for Math Training Elective Kiel F. Granada Philippine Science High School Main Campus Session 1 July 17, 2010 KFGranada A Basic L TEX Typesetting
  • Introduction A What is L TEX? The TEX Document Structure Software Requirements General Formatting TEXMAKER Basics The Math Environment A What is LTEX? A document markup language and a document preparation system for the TEX Typesetting Program. KFGranada A Basic L TEX Typesetting
  • Introduction A What is L TEX? The TEX Document Structure Software Requirements General Formatting TEXMAKER Basics The Math Environment A How LTEX Works pdflatex le.tex le.dvi le.ps le.pdf latex dvips ps2pdf source le outputs KFGranada A Basic L TEX Typesetting
  • Introduction A What is L TEX? The TEX Document Structure Software Requirements General Formatting TEXMAKER Basics The Math Environment A What do we need to create LTEX documents? A TEX distribution like TEX Live! A LTEX editor like TEXMAKER A KFGranada A Basic L TEX Typesetting
  • Introduction A What is L TEX? The TEX Document Structure Software Requirements General Formatting TEXMAKER Basics The Math Environment TEXMAKER Basics TEXMAKER is a free cross-platform LTEX editor. A TEXMAKER Command Shortcuts latex F2 View DVI F3 dvips F4 View PS F5 ps2pdf F8 View PDF F7 pdflatex F6 KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment The TEX File: Document Structure documentclass [ options ]{ a r t i c l e } preamble %comments b e g i n { document } body end { document } KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment General Syntax command format command [ o p t i o n s ] { a rgument } environment markers begin { environment } content end { e n v i r o n m e n t } Achtung! LTEX is case-sensitive. A KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment Exercise 1 Create your rst LTEX document. A 1. Launch TEXMAKER. 2. Create a new le. 3. Type the following basic structure: documentclass{ a r t i c l e } b e g i n { document} end { document} KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment Exercise 1 4. In the documents body, list the rst 10 prime numbers. 5. Save as Ex1.tex. 6. Compile to PDF by pressing F6 . 7. View PDF by pressing F7 . KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment Document Classes article for short papers report book letter slides beamer for slide presentations KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment Document Options documentclass[options]{article} Font Size 10pt, 11pt, 12pt Paper Size a4paper, letterpaper Orientation landscape Layout twocolumn Equation Display fleqn, leqno Example d o c u m e n t c l a s s [ 1 1 pt , twocolumn ] { a r t i c l e } KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment Preamble Contents Document Labels (title, subtitle, author, institute, date) Package Declarations Syntax: usepackage{package1, package2, } General Formatting and Declarations (page margins, line spacing, etc.) KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment Exercise 2 Create a titled LTEX document. A 1. Launch TEXMAKER and type the basic structure. 2. In the preamble, set your own document labels. Example: t i t l e { B a s i c LaTeX , T y p e s e t t i n g } a u t h o r { K i e l F . Granada } d a t e { J u l y 20 , 2010} KFGranada A Basic L TEX Typesetting
  • Introduction Document Classes The TEX Document Structure Options General Formatting Preamble Declarations The Math Environment

Recommended

View more >