Making Slides

  • View
    6

  • Download
    0

Embed Size (px)

DESCRIPTION

Making Slides

Text of Making Slides

  • Preparing Slides UsingLaTeX, Pstricks, and Beamer

    Uday Khedker

    (www.cse.iitb.ac.in/ uday)

    Department of Computer Science and Engineering,

    Indian Institute of Technology, Bombay

    August 2010

  • Prabhat Workshop LaTeX: Outline 1/40

    Outline

    Using LaTeX for document preparation

    Using Pstricks for drawing pictures

    Using Beamer for making presentations

    Aug 2010 Uday Khedker, IIT Bombay

  • Part 2

    Using LaTeX for

    Document Preparation

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 2/40

    Document Preparation

    Typesetting = Text (To Be Typeset) + Typesetting Commands

    Document Structure : Position, size, shape of entities etc.

    I Visual Structure : Governed by visual aestheticsI Logical Structure : Governed by the meaning

    (List, Table, Chapter, Section, etc.)

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 3/40

    WYSIWYG Preparation

    What You See Is What You Get (E.g. MS Word.)

    Interactive : Interleaved typing and typesetting.

    I As you type the text, the resulting formatting is shown immediatelyand automatically.

    I Visual structure is more prominent.

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 4/40

    Non-WYSIWYG Preparation

    Execution of formatting commands separate from keying in the text.E.g. LATEX.

    Multi-step batch mode process

    I Type the textI Execute the formatting commandsI View the resulting document

    Visual structure de-emphasized :Cant see immediately and automatically.

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 5/40

    Document Preparation with LaTeX

    Text andformattingcommands

    LATEXDevice

    independentrepresentation

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 5/40

    Document Preparation with LaTeX

    Text andformattingcommands

    LATEXDevice

    independentrepresentation

    xdvi Screenrendering

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 5/40

    Document Preparation with LaTeX

    Text andformattingcommands

    LATEXDevice

    independentrepresentation

    xdvi Screenrendering

    dvips

    Postscriptrepresentation

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 5/40

    Document Preparation with LaTeX

    Text andformattingcommands

    LATEXDevice

    independentrepresentation

    xdvi Screenrendering

    dvips

    Postscriptrepresentation

    gv,evince

    screenrendering

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 5/40

    Document Preparation with LaTeX

    Text andformattingcommands

    LATEXDevice

    independentrepresentation

    xdvi Screenrendering

    dvips

    Postscriptrepresentation

    gv,evince

    screenrendering

    lpr printedcopy

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 5/40

    Document Preparation with LaTeX

    Text andformattingcommands

    LATEXDevice

    independentrepresentation

    xdvi Screenrendering

    dvips

    Postscriptrepresentation

    gv,evince

    screenrendering

    lpr printedcopy

    ps2pdf pdfdocument

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 6/40

    Using LaTeX

    Create file.tex

    latex file.tex produces file.dvi

    dvips -o file.ps file produces file.ps

    Can be viewed using gv file.ps

    Practical tips for Linux usersI Use of makefile, simultaneous editing and background viewing.I Almost interactive

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 7/40

    Types of Formatting Commands

    Environment : Contains text to be typeset with a specific logicalstructure.Figures, tables, lists, equations, etc.

    Command : Produces some text in a specific waySection headings, footnotes etc.

    Declaration : Customizes the formatting of the text in the scope

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 8/40

    Environments

    Environments explicate a logical structureFigures, tables, lists, equations, etc.

    I Names : document, itemize, tabular, table, figure, . . .I Scope : \begin{env } ... \end{env }

    Example \begin{document} ... \end{document}

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 9/40

    Commands

    Commands carry out a certain formatting(May have side effects)

    I \chapter{Introduction}Begins a new page.Changes the numbering of sections, figures, equations etc.

    I \foilhead{Commands}I \textbf{Text to be typeset in bold face}I \texttt{Text to be typeset in typewrite font}I \footnote{Text to be typeset as a footnote}

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 10/40

    Types of Formatting Commands

    DeclarationsI Customization of fonts, shape, thickness, numbering, etc.

    \tt indicates typewriter font\bf indicates boldface letter\em indicates emphasized letters

    I ScopeDelimited by { and }, \begin and \end pairs, or . . .

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 11/40

    LATEX: Basic Concepts

    Document Classes (article, report, book etc)

    Use of packages

    Fonts and Colors

    Sectioning: Chapters, sections, appendix etc

    Lists and enumerations

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 12/40

    LATEX: Basic Concepts

    Paragraphs

    Formatting of Math formulae

    Tables and Figures

    Page formatting

    Footnotes

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 13/40

    LATEX: Basic Concepts

    Multiple input files

    Defining new commands

    Importing files

    Citations and references

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using LaTeX for Document Preparation 14/40

    LATEX: Advanced Concepts

    Formatting programs/algorithms

    Bibtex

    Pictures

    Slides

    Aug 2010 Uday Khedker, IIT Bombay

  • Part 3

    Using Pstricks for Drawing

    Pictures

  • Prabhat Workshop LaTeX: Using Pstricks for Drawing Pictures 15/40

    Preparing Pictures using Pstricks

    Environment pspicture

    Line and curve drawings

    Frames, circles, ovals,

    Nodes and Node connectorsRelative to the placement of nodes

    Labeling node connectors

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using Pstricks for Drawing Pictures 16/40

    The Power of Pstricks

    Logical components of pictures and relationships between them. Easy refinements/updates/corrections

    I xfig does not recognise node-connectors. If you move a node, a node connector does not move with it.

    I dia recognises node-connectors but not the relationship betweennodes. A node connector moves with a node but positioning of two

    nodes remains independent.

    Very good quality of pictures.

    Free mixing of graphics and text

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using Pstricks for Drawing Pictures 17/40

    Adding to the Power of Pstricks

    A limitation of pstricksAbsolute coordinates have to be calculated by the user.

    Solution : package pst-rel-points available athttp://www.cse.iitb.ac.in/uday/latex.

    Defines command

    \putnode[l/r]{new}{old}{delta x}{delta y}{stuff}

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using Pstricks for Drawing Pictures 18/40

    Drawing Pictures Using Pstricks

    \usepackage{pstricks}

    \usepackage{pst-node}

    \usepackage{pst-text}

    \usepackage{etex}

    \usepackage{pst-rel-points}

    %%

    \psset{unit=1mm}

    \begin{pspicture}(0,0)(50,70)

    \psframe(0,0)(50,70)

    \end{pspicture}

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using Pstricks for Drawing Pictures 18/40

    Drawing Pictures Using Pstricks

    \usepackage{pstricks}

    \usepackage{pst-node}

    \usepackage{pst-text}

    \usepackage{etex}

    \usepackage{pst-rel-points}

    %%

    \psset{unit=1mm}

    \begin{pspicture}(0,0)(50,70)

    \psframe(0,0)(50,70)

    \putnode{n1}{origin}{25}{50}{%

    \pscirclebox{1}}

    \putnode{n2}{n1}{-10}{-10}{%

    \psframebox{2}}

    \ncline{->}{n1}{n2}

    \end{pspicture}

    1

    2

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Workshop LaTeX: Using Pstricks for Drawing Pictures 18/40

    Drawing Pictures Using Pstricks

    \usepackage{pstricks}

    \usepackage{pst-node}

    \usepackage{pst-text}

    \usepackage{etex}

    \usepackage{pst-rel-points}

    %%

    \psset{unit=1mm}

    \begin{pspicture}(0,0)(50,70)

    \psframe(0,0)(50,70)

    \putnode{n1}{origin}{25}{50}{%

    \pscirclebox{1}}

    \putnode{n2}{n1}{-10}{-10}{%

    \psframebox{2}}

    \ncline[nodesepA=-1]{->}{n1}{n2}

    \end{pspicture}

    1

    2

    Aug 2010 Uday Khedker, IIT Bombay

  • Prabhat Works