1 / 55

CC510 - LaTeX 1

CC510 - LaTeX 1. Lecturer - 안진현 (Jinhyun Ahn) jhahn@world.kaist.ac.kr. Document. A bounded physical representation of body of information designed with the capacity to communicate - Wikipedia. How to make a document?. Past Write with a pen Letterpress printing Present (Digital era)

Download Presentation

CC510 - LaTeX 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CC510 - LaTeX 1 Lecturer - 안진현 (Jinhyun Ahn) jhahn@world.kaist.ac.kr CC510 – 2009

  2. Document • A bounded physical representation of body of information designed with the capacity to communicate - Wikipedia CC510 - 2009

  3. How to make a document? • Past • Write with a pen • Letterpress printing • Present (Digital era) • Document markup language • WYSIWYG • Future • Brain scanning? CC510 - 2009

  4. (Document) markup language • a set of codes that give instructions regarding the structure of a text or how it is to be displayed. - Wikipedia HTML document Displayed HTML document CC510 - 2009

  5. WYSIWYG • What You See Is What You Get • A system in which content displayed during editing appears very similar to the final output – Wikipedia Displayed document CC510 - 2009

  6. What is LaTeX? • A document markup language • e.g. XML, HTML • TeX • a typesetting system designed and mostly written by Donald Knuth - Wikipedia • LaTeX • developed in 1985 by Leslie Lamport - Wikipedia • adds a set of functions that makes the TeX language more friendlier - Wikipedia CC510 – 2009 Spring

  7. LaTeXMain goals • allow to produce high-quality books using a reasonable amount of effort - Wikipedia • the separation of layout from content • provide a system that would give the exact same results on all computer - Wikipedia CC510 - 2009

  8. The separation of layout from content … <book> <title>The Lord of the Rings</title> <author>J.R.R. Tolkien</author> </book> … content.xml Layout1.xsl Layout2.xsl stylesheet 1 stylesheet 2 Book : The Lord of the Rings “The Lord of the Rings” by J.R.R Tolkien Author : J.R.R Tolkien CC510 - 2009

  9. The LaTeX production chain DeVice Independent Portable Document Format Source : http://www.tug.org.in/tutorial/chap01-scr.pdf CC510 - 2009

  10. Installation guide for Windows • Install Ghostscript 8.63 and GSview 4.9 • Install MiKTeX • Additional programs • LaTeX IDE • TeXnicCenter, WinEdt, WinShell, ... • PDF viewer • Adobe PDF reader, Foxit Reader, ... CC510 - 2009

  11. Using a LaTeX editor Example LaTeX document PDF file compile You will learn what you need to enter CC510 - 2009

  12. A minimal LaTeX input CC510 - 2009

  13. Document Classes \documentclass[options]{class} • article: scientific journals, presentations, short reports, program documentation, invitation, and so on. • proc: a class for proceeding based on the article class • report: longer reports containing several chapters, small books, Ph.D(MS) thesis. • book: real books • slides: for slides Document Classes Document Classes Options • 10pt, 11pt: the size of font. • a4paper, letterpaper • leqno: numbering of formulae on the left hand side instead of the right • fleqn: display formulae left-aligned instead of centered • onecolumn, twocolumn • oneside, twoside: specifies whether double or single sided output should be generated. • landscape CC510 - 2009

  14. Document Classes - Examples \documentclass{article} \documentclass[twocolumn]{article} \documentclass[landscape]{slides} \documentclass{book} CC510 - 2009

  15. Packages \usepackage[options]{package} • Basic LaTeX cannot solve a complex problem • Package helps to include figures, colored text, source code. • Examples • Figure : \usepakage{graphicx} • Math : \usepackage{amamath} • Colored text : \usepackage{color} • Source code : \usepackage{verbtim} CC510 - 2009

  16. Page Style \pagestyle{style} • LaTeX supports three pre-defined header/footer • plain: prints the page numbers on the bottom of the page, in the middle of the footer. • headings: prints the current chapter heading and the page number in the header on each page. • empty: sets both the header and the footer to be empty. \thispagestyle{style} CC510 - 2009

  17. Spaces • Whitespace characters(=blank, tab) • Several consecutive whitespace characters are treated as one space. • An empty line between two lines of text defines the end of a paragraph. (\\) CC510 - 2009

  18. Special Characters • Special characters • The following symbols are reserved characters. • If you enter them directly in your text, they will normally not print. • To print them, a prefix backslash\have to be added. # $ % ^ & _ { } ~ CC510 - 2009

  19. Comments (1/2) • %character ignores the rest of the present line, the line break, and all whitespace at the beginning of the next line. CC510 - 2009

  20. Comments (2/2) • For longer comments you could use the comment environment provided by the verbatim package. CC510 - 2009

  21. Typesetting Text (1/2) • Produce real world material. • Sentence • Paragraph • Section, Chapter, Subsection \section{…} \subsection{…} \subsubsection{…} \paragraph{…} \subparagraph{…} CC510 - 2009

  22. Typesetting Text (2/2) CC510 - 2009

  23. Paragraph Not paragraph break Paragraph break CC510 - 2009

  24. Font CC510 - 2009

  25. Line and Page break • Line break without starting a new paragraph • Line break without a page break • New page • Horizontal space and Vertical space CC510 - 2009

  26. Special Characters (1/2) • Quotation marks • Dashes and Hyphens CC510 - 2009

  27. Special Characters (2/2) • Tilde • Degree symbol • Ellipsis CC510 - 2009

  28. Title, author • Define title, author, and date CC510 - 2009

  29. Cross Reference • References to figures, tables, special segments CC510 - 2009

  30. Footnote CC510 - 2009

  31. Emphasized Word • Underline a text • Italic font CC510 - 2009

  32. To write a paper • Visit the journal/conference’s web site • Navigate to the author guide-line page • Download LaTeX templates • Make a paper by editing the templates • Example • IEEE transaction on knowledge and data engineering • IEEEtran.cls • IEEEtran_HOWTO.pdf • README • Appendix F.pdf • bare_jrnl_compsoc.tex (edit this file) CC510 - 2009

  33. Keep it in your head • Before writing your own manuscript • Read carefully “Instruction for Authors” • Download .cls or .sty provided by Journal or Conf. • Open an example .tex file to proceed your work. • During writing • Replace the example with your words and sentences. • Use an appropriate instruction while inserting Equations, Figures, Tables, Theorems, and so on. • After writing • Check a wrong word, a wrong grammar, etc. CC510 - 2009

  34. Programs to install • Ghostscript • An interpreter for the PostScript language and for PDF • GSView • DVI viewer • MiKTex • A typesetting system for the Windows operating system • TexNicCenter • A LaTeX editor • Adobe PDF reader • PDF viewer CC510 – 2009 Spring

  35. Google it! CC510 – 2009 Spring

  36. Ghostscript CC510 – 2009 Spring

  37. Ghostscript CC510 – 2009 Spring

  38. GSview CC510 – 2009 Spring

  39. GSview CC510 – 2009 Spring

  40. MiKTeX CC510 – 2009 Spring

  41. MiKTeX CC510 – 2009 Spring

  42. MiKTeX CC510 – 2009 Spring

  43. MiKTeX CC510 – 2009 Spring

  44. MiKTeX CC510 – 2009 Spring

  45. MiKTeX CC510 – 2009 Spring

  46. MiKTeX CC510 – 2009 Spring

  47. TeXnicCenter CC510 – 2009 Spring

  48. TeXnicCenter CC510 – 2009 Spring

  49. Configure TeXnicCenter CC510 – 2009 Spring

  50. Configure TeXnicCenter CC510 – 2009 Spring

More Related