cc510 - latex 1 lecturer - 김한규 (hangyu kim) [email protected] 1cc510 – 2011
TRANSCRIPT
![Page 2: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/2.jpg)
Document
• 문서는 의사소통을 위해 고안된 정보를 물리적으로 묶어 놓은 것을 말한다 .
- Wikipedia
CC510 – 2011 2
![Page 3: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/3.jpg)
How to make a document?
• Past– Write with a pen– Letterpress printing
• Present (Digital era)– Document markup language– WYSIWYG
• Future – Brain scanning?
CC510 – 2011 3
![Page 4: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/4.jpg)
(Document) markup language
• a set of codes that give instructions regarding the structure of a text or how it is to be displayed. - Wikipedia
CC510 – 2011 4
HTML document Displayed HTML document
![Page 5: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/5.jpg)
WYSIWYG
• What You See Is What You Get• A system in which content displayed
during editing appears very similar to the final output – Wikipedia
CC510 – 2011 5
Displayed document
![Page 6: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/6.jpg)
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
6CC510 – 2011
![Page 7: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/7.jpg)
LaTeXMain goals
• allow to produce high-quality books using a reasonable amount of effort - Wikipedia
– the separation of layout from content
CC510 – 2011 7
![Page 8: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/8.jpg)
The separation of layout from content
CC510 – 2011 8
…<book>
<title>The Lord of the Rings</title>
<author>J.R.R. Tolkien</author></book>…
stylesheet 1
stylesheet 2
content.xml
Layout1.xsl Layout2.xsl
Book : The Lord of the Rings
Author : J.R.R Tolkien“The Lord of the Rings” by J.R.R Tolkien
![Page 9: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/9.jpg)
The LaTeX production chain
CC510 – 2011 9
Source : http://www.tug.org.in/tutorial/chap01-scr.pdf
DeVice Independent
Portable Document Format
![Page 10: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/10.jpg)
Installation guide for Windows
• Install Ghostscript 9.01 and GSview 4.9
• Install MiKTeX
• Additional programs– LaTeX IDE
• TeXnicCenter, WinEdt, WinShell, ...
– PDF viewer• Adobe PDF reader, Foxit Reader, ...
CC510 – 2011 10
![Page 11: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/11.jpg)
Using a LaTeX editor
CC510 – 2011 11
PDF fileExample LaTeX document
compile
You will learn what you need to enter
![Page 12: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/12.jpg)
A minimal LaTeX input
CC510 – 2011 12
![Page 13: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/13.jpg)
Document Classes
• 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
CC510 – 2011 13
• 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
\documentclass[options]{class}Document Classes Document Classes Options
![Page 14: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/14.jpg)
Document Classes - Examples
CC510 – 2011 14
\documentclass[twocolumn]{article}
\documentclass{article}
\documentclass{book}\documentclass[landscape]{slides}
![Page 15: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/15.jpg)
Packages
• 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}
CC510 – 2011 15
\usepackage[options]{package}
![Page 16: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/16.jpg)
Page 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.
CC510 – 2011 16
\pagestyle{style}
\thispagestyle{style}
![Page 17: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/17.jpg)
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 – 2011 17
![Page 18: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/18.jpg)
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 – 2011 18
# $ % ^ & _ { } ~
![Page 19: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/19.jpg)
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 – 2011 19
![Page 20: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/20.jpg)
Comments (2/2)
• For longer comments you could use the comment environment provided by the verbatim package.
CC510 – 2011 20
![Page 21: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/21.jpg)
Typesetting Text (1/2)
• Produce real world material.• Sentence• Paragraph• Section, Chapter, Subsection
CC510 – 2011 21
\section{…}\subsection{…}\subsubsection{…}\paragraph{…}\subparagraph{…}
![Page 22: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/22.jpg)
Typesetting Text (2/2)
CC510 – 2011 22
![Page 23: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/23.jpg)
Paragraph
CC510 – 2011 23
Not paragraph break
Paragraph break
![Page 24: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/24.jpg)
Font
CC510 – 2011 24
![Page 25: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/25.jpg)
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 – 2011 25
![Page 26: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/26.jpg)
Special Characters (1/2)
• Quotation marks
• Dashes and Hyphens
CC510 – 2011 26
![Page 27: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/27.jpg)
Special Characters (2/2)
• Tilde
• Degree symbol
• Ellipsis
CC510 – 2011 27
![Page 28: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/28.jpg)
Title, author
• Define title, author, and date
CC510 – 2011 28
![Page 29: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/29.jpg)
Cross Reference
• References to figures, tables, special segments
CC510 – 2011 29
![Page 30: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/30.jpg)
Footnote
CC510 – 2011 30
![Page 31: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/31.jpg)
Emphasized Word
• Underline a text• Italic font
CC510 – 2011 31
![Page 32: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/32.jpg)
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 – 2011 32
![Page 33: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/33.jpg)
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 – 2011 33
![Page 34: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/34.jpg)
Programs to install• Ghostscript(ver 9.01)
– An interpreter for the PostScript language and for PDF
• GSView(ver 4.9)– DVI viewer
• MiKTex(ver 2.9)– A typesetting system for the Windows operating system
• TexNicCenter– A LaTeX editor
• Adobe PDF reader– PDF viewer
CC510 – 2011 34
![Page 35: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/35.jpg)
Ghostscript• http://pages.cs.wisc.edu/~ghost/doc/
GPL/index.htm
CC510 – 2011 35
![Page 36: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/36.jpg)
Ghostscript
CC510 – 2011 36
![Page 37: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/37.jpg)
GSview
• http://pages.cs.wisc.edu/~ghost/gsview/
CC510 – 2011 37
![Page 38: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/38.jpg)
GSview
CC510 – 2011 38
![Page 40: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/40.jpg)
MiKTeX
CC510 – 2011 40
![Page 41: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/41.jpg)
MiKTeX
CC510 – 2011 41
![Page 42: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/42.jpg)
MiKTeX
CC510 – 2011 42
![Page 43: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/43.jpg)
MiKTeX
CC510 – 2011 43
![Page 44: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/44.jpg)
MiKTeX
CC510 – 2011 44
![Page 45: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/45.jpg)
MiKTeX
CC510 – 2011 45
![Page 46: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/46.jpg)
TeXnicCenter
CC510 – 2011 46
![Page 47: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/47.jpg)
TeXnicCenter
CC510 – 2011 47
![Page 48: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/48.jpg)
Configure TeXnicCenter
CC510 – 2011 48
![Page 49: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/49.jpg)
Configure TeXnicCenter
CC510 – 2011 49
“C:\Program Files\MiKTeX 2.9\miktex\bin\x64” for 64bit OS
![Page 50: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/50.jpg)
Configure TeXnicCenter
CC510 – 2011 50
![Page 51: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/51.jpg)
Make a document using TeXnicCenter
CC510 – 2011 51
![Page 52: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/52.jpg)
Lab #3
•Install programs•Make a document– Title : CC510 - LaTeX – Name : your name– Email : your email
CC510 – 2011 52
![Page 53: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/53.jpg)
References
• Wikipedia
• “The Not So Short Introduction to LaTeX2ε” by Tobias Oetiker“142 분 동안 익히는 LaTeX2ε”
• http://www.latex-project.org/
• 한글 TeX 사용자그룹– http://www.ktug.or.kr
CC510 – 2011 53
![Page 54: CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649ea85503460f94bab779/html5/thumbnails/54.jpg)
Next Lecture
• List, Table, Figure• Typesetting mathematical formulae• Useful functionality– Bibliography– How to generate EPS file– Complex Table with multi-row or multi-
column
CC510 – 2011 54