Latex Tutorial Part II - University of British Latex Tutorial Part II----- Software and typesetting...

Click here to load reader

  • date post

    20-Apr-2020
  • Category

    Documents

  • view

    2
  • download

    0

Embed Size (px)

Transcript of Latex Tutorial Part II - University of British Latex Tutorial Part II----- Software and typesetting...

  • Latex Tutorial Part II --------- Software and typesetting tips for Latex

    Wutao Joint with Abtin

    Vancouver, Sept. 15, 2010

  • Outline • 1. Introduction

    2 L T X Edit d C il• 2. LaTeX Editor and Compiler • 3. Drawing Tools • 4. Reference Management • 5 LaTeX Presentation Prepare5. LaTeX Presentation Prepare • 6. Case Study: IEEETran.cls

    7 C l i• 7. Conclusion

  • Introduction • Donald Knuth --------- TeX • Leslie . B. Lamport --- LaTeX /leitek/ • Current popular version LaTeX2eCurrent popular version LaTeX2e • “intended for the creation of

    beautiful books - and especially for books that contain a lot of mathematics ”

  • Introduction • Latex ------- universal typesetting tools for

    academic research community Mathacademic research community. Math, Physics, Engineering, Finance …..

    • Supported by nearly all the publishingSupported by nearly all the publishing corporations.

    • IEEE ACM Elsevier SpringerIEEE, ACM, Elsevier, Springer, Wiley, ……… etc

    • Almost all the IEEE Journals areAlmost all the IEEE Journals are published as a classic Latex Style

  • Advantages of Latex • cross OS platform • Windows Linux Mac• Windows, Linux, Mac • pdf, ps, dvi output

    di l d i i d d t• display device independent • Portable output • fancy equations • powerful reference management g • layman ===== professional

  • Disadvantages of Latex • Maybe hard to use at the beginning • Don’t support WYSIWYG (except

    lyx or next version Tex)y ) • Somehow low efficiency to prepare

    a presentationa presentation

  • How LaTeX Works • LaTeX source editor + LaTeX

    il (* t )compiler (*.tex) • Like C + Borland C compilerp • Many LaTeX compilers

  • Popular LaTeX IDE for Windows

    • 1. MiKTeX + WinEdit htt // ikt /• http://www.miktex.org/ + http://www.winedt.com/

    • 2. MiKTeX + TeXnicCenter http://www.texniccenter.org/

    • 3. TexLive2010 (also in mac, linux) • http://tug org/http://tug.org/ • TeXMaker, xeTeX + MiKTex etc

  • I f f iImportant features of using professional editorsprofessional editors • 1. Highlight keywords

    2 t ti k d l d• 2. automatic packages download • 3. Auto completion • 4. Keywords reminders • 5 One Key functions5. One Key functions • 6. Free of memorizing many symbols,

    keywords environment nameskeywords, environment names

  • common commands • latex sample.tex ( smaple.dvi) • dvipdf sample.dvi ( sample.pdf) • dvips sample dvi ( sample ps)dvips sample.dvi ( sample.ps) • pdflatex sample.tex ( sample.pdf) • pspdf,dvips • bibtex• bibtex……

  • Popular LaTeX IDE for Linux • 1. Kile + eTeX or encTeX or MiKTeX

    KDE b d ili t• KDE based compiling system (department computer) htt //kil f t/http://kile.sourceforge.net/

    • 2.TexMaker + eTeX .... etc • http://www.xm1math.net/texmaker/ • 3 TexLive20103. TexLive2010 • http://www.tug.org

  • Remote Connection to Dept. • ssh –X ssh.ece.ubc.ca

    • Input dept ID and passwordInput dept. ID and password

    • Use LaTeX at home

  • LyX WYSIWYG LaTeX • http://www.lyx.org/ • Like M$ Word type systems

  • Print Page • Print topics here

  • Example: A Minimum Setup • \documentclass[letter,10pt]{article} • \title{\LaTeX Tutorial}{ } • \author{Wutao Yin} • \begin{document} • \maketitle • \begin{abstract} • bla bla bla• bla bla bla • \end{abstract} • \section{Introduction}{ } • \end{document}

  • Some exmaples • 1. Equations Demo2.tex • 2. Figures Demo3.texg • 3. Tables. Demo4.tex • 4. References Demo5.tex • 5. Some advanced equations typesetting • Demo6.tex • 6 Aurora’s cheating sheet• 6. Aurora s cheating sheet

  • Drawing Tools • EPS format figures vector figures • Other types figures to EPS format • JPG BMP etcJPG, BMP, etc

  • EPS format figures • Matlab output

    Vi 2000 d ld• Viso 2000 and older • SmartDraw output • Acrobat Pro • Virtual Printer OutputVirtual Printer Output • Open Office joint with virtual printer

    )• Metapost ( http://tug.org/metapost.html )

  • Other types to EPS • Virtual printer • Acrobat Pro • Some small free software andSome small free software and

    online small tools

  • Why use such reference tools? • Visualize you bibtex items • Easy to maintain • Somehow automatically downloadSomehow automatically download

    bib items for you • Keep it neat in a standard format

  • Mainstream Softwares • Jabref (free Linux/Windows Java

    b d)based) • root> java –jar Jabref2.xxx.jarj j j • Zotero (firefox addons) • RefWorks, OneNote (commercial)

  • LaTeX Presentation Prep. • beamer.cls (classic one) • M$ PPT joint with Mathtype• M$ PPT joint with Mathtype • M$ PPT joint with Tex4ppt (bekerly, from for M$

    PPT 2003 and before)PPT 2003 and before) • M$ PPT joint with Aurora • M$ PPT join with some online latex compilers• M$ PPT join with some online latex compilers

    (e.g, http://www.numberempire.com/texequationeditop p q r/equationeditor.php)

  • An Example by Aurora and Mathtype 2 ( ) ( ) ( )

    2 ( )r U r E r

    m rψ ψ ψ=− ∇ +

  • Case study: IEEETran.cls • Go over it……..

  • Tutorials and Useful Links • http://tug.org.in/tutorials.html • http://www.latex-project.org/ • http://miktex org/http://miktex.org/ • http://elevatorlady.ca/doc/index.html

    (Aurora) • http://www.ctan.org/ (packages)http://www.ctan.org/ (packages) • A not so short tutorial for latex

  • Print Page • Print topics here