latex tutorial part ii - university of british...
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/1.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/2.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/3.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/4.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/5.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/6.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/7.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/8.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/9.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/10.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/11.jpg)
![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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/12.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/13.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/14.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/15.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/16.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/17.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/18.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/19.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/20.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/21.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/22.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/23.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/24.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/25.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/26.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/27.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/28.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022040603/5e9feb121423520c077af2e3/html5/thumbnails/29.jpg)
Print Page• Print topics here