Download - Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

Transcript
Page 1: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Wutao Joint with Abtin

Vancouver, Sept. 15, 2010

Page 2: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 3: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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 ”

Page 4: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 5: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 6: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 7: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

How LaTeX Works• LaTeX source editor + LaTeX

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

Page 8: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

Popular LaTeX IDE for Windows

• 1. MiKTeX + WinEdithtt // 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

Page 9: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao
Page 10: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao
Page 11: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao
Page 12: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 13: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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……

Page 14: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 15: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

• Input dept ID and passwordInput dept. ID and password

• Use LaTeX at home

Page 16: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 17: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

Print Page• Print topics here

Page 18: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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}

Page 19: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 20: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 21: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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 )

Page 22: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

online small tools

Page 23: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 24: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

Mainstream Softwares• Jabref (free Linux/Windows Java

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

Page 25: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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 qr/equationeditor.php)

Page 26: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

An Example by Aurora and Mathtype2 ( ) ( ) ( )

2( )r U r E r

mrψ ψ ψ=− ∇ +

Page 27: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 28: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

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

Page 29: Latex Tutorial Part II - University of British Columbiagsa.sites.olt.ubc.ca/files/2014/05/Latex_intro_part2.pdfLatex Tutorial Part II----- Software and typesetting tips for Latex Wutao

Print Page• Print topics here