Download presentation
Presentation is loading. Please wait.
Published byAdrian Cain Modified over 9 years ago
1
CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) hgkim@bulsai.kaist.ac.kr 1CC510 – 2011
2
Document 문서는 의사소통을 위해 고안된 정보를 물 리적으로 묶어 놓은 것을 말한다. - Wikipedia CC510 – 20112
3
How to make a document? Past –Write with a pen –Letterpress printing Present (Digital era) –Document markup language –WYSIWYG Future –Brain scanning? CC510 – 20113
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 CC510 – 20114 HTML documentDisplayed HTML document
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 CC510 – 20115 Displayed document
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 6CC510 – 2011
7
LaTeX Main goals allow to produce high-quality books using a reasonable amount of effort - Wikipedia –the separation of layout from content CC510 – 20117
8
The separation of layout from content CC510 – 20118 … The Lord of the Rings J.R.R. Tolkien … stylesheet 1 stylesheet 2 content.xml Layout1.xslLayout2.xsl Book : The Lord of the Rings Author : J.R.R Tolkien “The Lord of the Rings” by J.R.R Tolkien
9
The LaTeX production chain CC510 – 20119 Source : http://www.tug.org.in/tutorial/chap01-scr.pdf DeVice Independent Portable Document Format
10
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 – 201110
11
Using a LaTeX editor CC510 – 201111 PDF fileExample LaTeX document compile You will learn what you need to enter
12
A minimal LaTeX input CC510 – 201112
13
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 – 201113 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 ClassesDocument Classes Options
14
Document Classes - Examples CC510 – 201114 \documentclass[twocolumn]{article}\documentclass{article} \documentclass{book} \documentclass[landscape]{slides}
15
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 – 201115 \usepackage[options]{package}
16
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 – 201116 \pagestyle{style} \thispagestyle{style}
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 – 201117
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 – 201118 # $ % ^ & _ { } ~
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 – 201119
20
Comments (2/2) For longer comments you could use the comment environment provided by the verbatim package. CC510 – 201120
21
Typesetting Text (1/2) Produce real world material. Sentence Paragraph Section, Chapter, Subsection CC510 – 201121 \section{…} \subsection{…} \subsubsection{…} \paragraph{…} \subparagraph{…}
22
Typesetting Text (2/2) CC510 – 201122
23
Paragraph CC510 – 201123 Not paragraph break Paragraph break
24
Font CC510 – 201124
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 – 201125
26
Special Characters (1/2) Quotation marks Dashes and Hyphens CC510 – 201126
27
Special Characters (2/2) Tilde Degree symbol Ellipsis CC510 – 201127
28
Title, author Define title, author, and date CC510 – 201128
29
Cross Reference References to figures, tables, special segments CC510 – 201129
30
Footnote CC510 – 201130
31
Emphasized Word Underline a text Italic font CC510 – 201131
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 – 201132
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 – 201133
34
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 – 201134
35
Ghostscript http://pages.cs.wisc.edu/~ghost/doc/GPL/i ndex.htm http://pages.cs.wisc.edu/~ghost/doc/GPL/i ndex.htm CC510 – 201135
36
Ghostscript CC510 – 201136
37
GSview http://pages.cs.wisc.edu/~ghost/gsview/ CC510 – 201137
38
GSview CC510 – 201138
39
MiKTeX http://www.miktex.org CC510 – 201139
40
MiKTeX CC510 – 201140
41
MiKTeX CC510 – 201141
42
MiKTeX CC510 – 201142
43
MiKTeX CC510 – 201143
44
MiKTeX CC510 – 201144
45
MiKTeX CC510 – 201145
46
TeXnicCenter CC510 – 201146
47
TeXnicCenter CC510 – 201147
48
Configure TeXnicCenter CC510 – 201148
49
Configure TeXnicCenter CC510 – 201149 “C:\Program Files\MiKTeX 2.9\miktex\bin\x64” for 64bit OS
50
Configure TeXnicCenter CC510 – 201150
51
Make a document using TeXnicCenter CC510 – 201151
52
Lab #3 Install programs Make a document –Title : CC510 - LaTeX –Name : your name –Email : your email CC510 – 201152
53
References Wikipedia “The Not So Short Introduction to LaTeX2ε” by Tobias Oetiker “142 분 동안 익히는 LaTeX2ε” http://www.latex-project.org/ 한글 TeX 사용자그룹 –http://www.ktug.or.krhttp://www.ktug.or.kr CC510 – 201153
54
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 – 201154
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.