際際滷

際際滷Share a Scribd company logo
Sample PDF Document
Robert Maron
Grzegorz Grudzi卒 ski
n
February 20, 1999
2
Contents
1

Template
1.1 How to compile a .tex 鍖le to a .pdf 鍖le .
1.1.1 Tools . . . . . . . . . . . . . . . .
1.1.2 How to use the tools . . . . . . . .
1.2 How to write a document . . . . . . . . . .
1.2.1 The main document . . . . . . . . .
1.2.2 Chapters . . . . . . . . . . . . . .
1.2.3 Spell-checking . . . . . . . . . . .
A
A
1.3 LTEX and pdfLTEX capabilities . . . . . . .
1.3.1 Overview . . . . . . . . . . . . . .
A
1.3.2 LTEX . . . . . . . . . . . . . . . .
A
1.3.3 pdfLTEX . . . . . . . . . . . . . .
1.3.4 Examples . . . . . . . . . . . . . .

3

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

5
5
5
5
6
6
6
6
7
7
7
7
7
4

CONTENTS
Chapter 1
Template
1.1

How to compile a .tex 鍖le to a .pdf 鍖le

1.1.1 Tools
To process the 鍖les you (may) need:
 pdflatex (for example from tetex package  0.9-6, which you can
get from Red Hat 5.2);
 acroread (a PDF viewer, available from http://www.adobe.com/);
 ghostscript  5.10 (for example from Red Hat Contrib) and ghostview
or gv (from RedHat Linux);
 efax package could be useful, if you plan to fax documents.

1.1.2 How to use the tools
Follow these steps:
1. put all source .tex 鍖les in one directory, then chdir to the directory (or put
A
some of them in the LTEXsearch path  if you know how to do this);
2. run pdflatex file.tex on the main 鍖le of the document three times
(three  to prepare valid table of contents);
3. to see or print the result use acroread (unfortunately some versions of
acroread may produce PostScript which is too complex), or
5
CHAPTER 1. TEMPLATE

6

4. run ghostscript: gv file.pdf to display or:
gs -dNOPAUSE -sDEVICE=pswrite -q -dBATCH -sOutputFile=鍖le.ps 鍖le.pdf
to produce a PostScript 鍖le;
5. run fax send phone-number file.ps as root to send a fax, or  if you
know how to do this  modify the fax script to be able to fax .pdf 鍖les directly
(you have to insert |%PDF* somewhere. . . ).

1.2 How to write a document
1.2.1 The main document
Choose the name of the document, say document. Copy template.tex to
document.tex, then edit it, change the title, the authors and set proper include(s) for all the chapters.

1.2.2 Chapters
Each chapter should be included in the main document as a separate 鍖le. You can
choose any name for the 鍖le, but we suggest adding a suf鍖x to the name of the
main 鍖le. For our example we use the 鍖le name document_chapter1.tex.
First, copy template_chapter.tex to document_chapter1.tex
and add the line
include{document_chapter1}
in the document.tex, then edit document_chapter1.tex, change the
chapter title and edit the body of the chapter appropriately.

1.2.3 Spell-checking
Do use a spell-checker, please!
You may also want to check grammar, style and so on. Actually you should
do it (if you have enough spare time). But you must check spelling!
You can use the ispell package for this, from within emacs, or from the
command line:
ispell -t document_chapter1.tex
A
A
1.3. LTEX AND PDFLTEX CAPABILITIES

1.3

7

A
A
LTEX and pdfLTEX capabilities

1.3.1 Overview
A
First you edit your source .tex 鍖le. In LTEX you compile it using the latex
command to a .dvi 鍖le (which stands for device-independent). The .dvi 鍖le
can be converted to any device-dependent format you like using an appropriate
driver, for example dvips.
When producing .pdf 鍖les you should use pdflatex, which produces directly .pdf 鍖les out of .tex sources. Note that in the .tex 鍖le you may need
to use some PDF speci鍖c packages.
For viewing .tex 鍖les use your favourite text editor, for viewing .dvi 鍖les
under X Window System use xdvi command, .ps 鍖les can be viewed with gv
(or ghostview) and .pdf 鍖les with acroread, gv or xpdf.

A
1.3.2 LTEX

A lot of examples can be found in this document.
You should also print
 doc/latex/general/latex2e.dvi and
 doc/latex/general/lshort2e.dvi
from your tetex distribution (usually in
 /usr/share/texmf or
 /usr/lib/texmf/texmf).
A
1.3.3 pdfLTEX

Consult doc/pdftex/manual.pdf from your tetex distribution for more
details. Very useful informations can be found in the hyperref and graphics
package manuals:
 doc/latex/hyperref/manual.pdf and
 doc/latex/graphics/grfguide.dvi.

1.3.4 Examples
References
MIMUW
CHAPTER 1. TEMPLATE

8
Hyperlinks
This is a target.
And this is a link.
Dashes, etc.
There are three kinds of horizontal dash:

 - (use inside words; for example home-page, X-rated)
  (use this one between numbers; for example pages 222)
  (use this one as a sentence separator  like here)
National characters
 坦, 辿, 鱈, . . .
 竪, , 狸, . . .
 担, 棚, . . .
 探, 単, . . .
 旦, 谷, . . .
 z

 a, e
 
 , 淡, 
There are other ways to do this, see the documentation for inputenc package.
Reserved characters
Some characters have some special meaning, thus cannot be entered in the usual
way.
 $&%#_{}
A
A
1.3. LTEX AND PDFLTEX CAPABILITIES

Math
 12 , 12n , . . .
 i1 , i2n , . . .


1 2n
,
,
2 23

...

 留, 硫, 粒, , . . .
 , , , =, , , . . .

 2, . . .
 2 + 2, . . .
For more examples and symbols see chapter 3 of lshort2e.dvi.
Fonts
 Roman
 Emphasis
 Medium weight  the default
 Boldface
 Upright
 Slanted
 Sans serif
 S MALL CAPS
 Typewriter
 and sizes:


tiny



scriptsize

 footnotesize
 small
 normalsize

9
CHAPTER 1. TEMPLATE

10
 large


Large



LARGE

huge
 Huge

More Related Content

What's hot (17)

File Management
File ManagementFile Management
File Management
Ravinder Kamboj
Managing files chapter 7
Managing files chapter 7 Managing files chapter 7
Managing files chapter 7
shinigami-99
101 4.6 create and change hard and symbolic links
101 4.6 create and change hard and symbolic links101 4.6 create and change hard and symbolic links
101 4.6 create and change hard and symbolic links
Ac叩cio Oliveira
File Management
File ManagementFile Management
File Management
Diane Coyle
File in C Programming
File in C ProgrammingFile in C Programming
File in C Programming
Sonya Akter Rupa
File Management
File ManagementFile Management
File Management
jani parth
File operations in c
File operations in cFile operations in c
File operations in c
baabtra.com - No. 1 supplier of quality freshers
Text mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformaticsText mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformatics
BITS
Linux course fhs file hierarchy standard
Linux   course   fhs file hierarchy standardLinux   course   fhs file hierarchy standard
Linux course fhs file hierarchy standard
Khawar Nehal khawar.nehal@atrc.net.pk
Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File Management
Damian T. Gordon
File Handling in C
File Handling in C File Handling in C
File Handling in C
Subhanshu Maurya
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformatics
BITS
File handling in C
File handling in CFile handling in C
File handling in C
Kamal Acharya
File handling in c
File handling in cFile handling in c
File handling in c
baabtra.com - No. 1 supplier of quality freshers
Concept of file handling in c
Concept of file handling in cConcept of file handling in c
Concept of file handling in c
MugdhaSharma11
intro unix/linux 11
intro unix/linux 11intro unix/linux 11
intro unix/linux 11
duquoi
Lec 49 - stream-files
Lec 49 - stream-filesLec 49 - stream-files
Lec 49 - stream-files
Princess Sam
Managing files chapter 7
Managing files chapter 7 Managing files chapter 7
Managing files chapter 7
shinigami-99
101 4.6 create and change hard and symbolic links
101 4.6 create and change hard and symbolic links101 4.6 create and change hard and symbolic links
101 4.6 create and change hard and symbolic links
Ac叩cio Oliveira
File Management
File ManagementFile Management
File Management
Diane Coyle
File Management
File ManagementFile Management
File Management
jani parth
Text mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformaticsText mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformatics
BITS
Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File Management
Damian T. Gordon
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformatics
BITS
File handling in C
File handling in CFile handling in C
File handling in C
Kamal Acharya
Concept of file handling in c
Concept of file handling in cConcept of file handling in c
Concept of file handling in c
MugdhaSharma11
intro unix/linux 11
intro unix/linux 11intro unix/linux 11
intro unix/linux 11
duquoi
Lec 49 - stream-files
Lec 49 - stream-filesLec 49 - stream-files
Lec 49 - stream-files
Princess Sam

Similar to popopo (20)

sample.pdf
sample.pdfsample.pdf
sample.pdf
cloud oct18
sample.pdf
sample.pdfsample.pdf
sample.pdf
shreyas_test_1234
sample.pdf
sample.pdfsample.pdf
sample.pdf
plutoone TestTwo
SAMPDF 1
SAMPDF 1SAMPDF 1
SAMPDF 1
Bhavani Testone
new.pdf
new.pdfnew.pdf
new.pdf
Bhavani Testone
sample.pdf
sample.pdfsample.pdf
sample.pdf
cloud oct18
pdf
pdfpdf
pdf
Deepa Bman
Sample pdf
Sample pdfSample pdf
Sample pdf
Chris
sample.pdf
sample.pdfsample.pdf
sample.pdf
tanuwedsmanu
12p
12p12p
12p
kshraddha9
Sample pdf
Sample pdfSample pdf
Sample pdf
Chris
13p
13p13p
13p
kshraddha9
sample.pdf
sample.pdfsample.pdf
sample.pdf
Bhavani Testone
sample.pdf
sample.pdfsample.pdf
sample.pdf
Bhavani Testone
11p2
11p211p2
11p2
kshraddha9
123
123123
123
plutoone TestTwo
sample test file to download scribd file
sample test file to download scribd filesample test file to download scribd file
sample test file to download scribd file
Dhwanee Desai
C- language Lecture 8
C- language Lecture 8C- language Lecture 8
C- language Lecture 8
Hatem Abd El-Salam
Latex workshop: Essentials and Practices
Latex workshop: Essentials and PracticesLatex workshop: Essentials and Practices
Latex workshop: Essentials and Practices
Mohamed Alrshah
Importanat
ImportanatImportanat
Importanat
Muluken Temesgen

More from kshraddha9 (20)

This is for RTF testing purpose
This is for RTF testing purposeThis is for RTF testing purpose
This is for RTF testing purpose
kshraddha9
This is sample document
This is sample documentThis is sample document
This is sample document
kshraddha9
upload1
upload1upload1
upload1
kshraddha9
abc12
abc12abc12
abc12
kshraddha9
abc
abcabc
abc
kshraddha9
Kshraddha9 testdoc
Kshraddha9 testdocKshraddha9 testdoc
Kshraddha9 testdoc
kshraddha9
kshraddha9_testdoc
kshraddha9_testdockshraddha9_testdoc
kshraddha9_testdoc
kshraddha9
Kshraddha9 testdoc
Kshraddha9 testdocKshraddha9 testdoc
Kshraddha9 testdoc
kshraddha9
server error1
server error1server error1
server error1
kshraddha9
Word Doc Page 1
Word Doc Page 1Word Doc Page 1
Word Doc Page 1
kshraddha9
This is Page 1
This is Page 1This is Page 1
This is Page 1
kshraddha9
This is for RTF testing purpose
This is for RTF testing purposeThis is for RTF testing purpose
This is for RTF testing purpose
kshraddha9
This is sample document
This is sample documentThis is sample document
This is sample document
kshraddha9
Kshraddha9 testdoc
Kshraddha9 testdocKshraddha9 testdoc
Kshraddha9 testdoc
kshraddha9
kshraddha9_testdoc
kshraddha9_testdockshraddha9_testdoc
kshraddha9_testdoc
kshraddha9
Kshraddha9 testdoc
Kshraddha9 testdocKshraddha9 testdoc
Kshraddha9 testdoc
kshraddha9
server error1
server error1server error1
server error1
kshraddha9
Word Doc Page 1
Word Doc Page 1Word Doc Page 1
Word Doc Page 1
kshraddha9
This is Page 1
This is Page 1This is Page 1
This is Page 1
kshraddha9

popopo

  • 1. Sample PDF Document Robert Maron Grzegorz Grudzi卒 ski n February 20, 1999
  • 2. 2
  • 3. Contents 1 Template 1.1 How to compile a .tex 鍖le to a .pdf 鍖le . 1.1.1 Tools . . . . . . . . . . . . . . . . 1.1.2 How to use the tools . . . . . . . . 1.2 How to write a document . . . . . . . . . . 1.2.1 The main document . . . . . . . . . 1.2.2 Chapters . . . . . . . . . . . . . . 1.2.3 Spell-checking . . . . . . . . . . . A A 1.3 LTEX and pdfLTEX capabilities . . . . . . . 1.3.1 Overview . . . . . . . . . . . . . . A 1.3.2 LTEX . . . . . . . . . . . . . . . . A 1.3.3 pdfLTEX . . . . . . . . . . . . . . 1.3.4 Examples . . . . . . . . . . . . . . 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5 5 5 6 6 6 6 7 7 7 7 7
  • 5. Chapter 1 Template 1.1 How to compile a .tex 鍖le to a .pdf 鍖le 1.1.1 Tools To process the 鍖les you (may) need: pdflatex (for example from tetex package 0.9-6, which you can get from Red Hat 5.2); acroread (a PDF viewer, available from http://www.adobe.com/); ghostscript 5.10 (for example from Red Hat Contrib) and ghostview or gv (from RedHat Linux); efax package could be useful, if you plan to fax documents. 1.1.2 How to use the tools Follow these steps: 1. put all source .tex 鍖les in one directory, then chdir to the directory (or put A some of them in the LTEXsearch path if you know how to do this); 2. run pdflatex file.tex on the main 鍖le of the document three times (three to prepare valid table of contents); 3. to see or print the result use acroread (unfortunately some versions of acroread may produce PostScript which is too complex), or 5
  • 6. CHAPTER 1. TEMPLATE 6 4. run ghostscript: gv file.pdf to display or: gs -dNOPAUSE -sDEVICE=pswrite -q -dBATCH -sOutputFile=鍖le.ps 鍖le.pdf to produce a PostScript 鍖le; 5. run fax send phone-number file.ps as root to send a fax, or if you know how to do this modify the fax script to be able to fax .pdf 鍖les directly (you have to insert |%PDF* somewhere. . . ). 1.2 How to write a document 1.2.1 The main document Choose the name of the document, say document. Copy template.tex to document.tex, then edit it, change the title, the authors and set proper include(s) for all the chapters. 1.2.2 Chapters Each chapter should be included in the main document as a separate 鍖le. You can choose any name for the 鍖le, but we suggest adding a suf鍖x to the name of the main 鍖le. For our example we use the 鍖le name document_chapter1.tex. First, copy template_chapter.tex to document_chapter1.tex and add the line include{document_chapter1} in the document.tex, then edit document_chapter1.tex, change the chapter title and edit the body of the chapter appropriately. 1.2.3 Spell-checking Do use a spell-checker, please! You may also want to check grammar, style and so on. Actually you should do it (if you have enough spare time). But you must check spelling! You can use the ispell package for this, from within emacs, or from the command line: ispell -t document_chapter1.tex
  • 7. A A 1.3. LTEX AND PDFLTEX CAPABILITIES 1.3 7 A A LTEX and pdfLTEX capabilities 1.3.1 Overview A First you edit your source .tex 鍖le. In LTEX you compile it using the latex command to a .dvi 鍖le (which stands for device-independent). The .dvi 鍖le can be converted to any device-dependent format you like using an appropriate driver, for example dvips. When producing .pdf 鍖les you should use pdflatex, which produces directly .pdf 鍖les out of .tex sources. Note that in the .tex 鍖le you may need to use some PDF speci鍖c packages. For viewing .tex 鍖les use your favourite text editor, for viewing .dvi 鍖les under X Window System use xdvi command, .ps 鍖les can be viewed with gv (or ghostview) and .pdf 鍖les with acroread, gv or xpdf. A 1.3.2 LTEX A lot of examples can be found in this document. You should also print doc/latex/general/latex2e.dvi and doc/latex/general/lshort2e.dvi from your tetex distribution (usually in /usr/share/texmf or /usr/lib/texmf/texmf). A 1.3.3 pdfLTEX Consult doc/pdftex/manual.pdf from your tetex distribution for more details. Very useful informations can be found in the hyperref and graphics package manuals: doc/latex/hyperref/manual.pdf and doc/latex/graphics/grfguide.dvi. 1.3.4 Examples References MIMUW
  • 8. CHAPTER 1. TEMPLATE 8 Hyperlinks This is a target. And this is a link. Dashes, etc. There are three kinds of horizontal dash: - (use inside words; for example home-page, X-rated) (use this one between numbers; for example pages 222) (use this one as a sentence separator like here) National characters 坦, 辿, 鱈, . . . 竪, , 狸, . . . 担, 棚, . . . 探, 単, . . . 旦, 谷, . . . z a, e , 淡, There are other ways to do this, see the documentation for inputenc package. Reserved characters Some characters have some special meaning, thus cannot be entered in the usual way. $&%#_{}
  • 9. A A 1.3. LTEX AND PDFLTEX CAPABILITIES Math 12 , 12n , . . . i1 , i2n , . . . 1 2n , , 2 23 ... 留, 硫, 粒, , . . . , , , =, , , . . . 2, . . . 2 + 2, . . . For more examples and symbols see chapter 3 of lshort2e.dvi. Fonts Roman Emphasis Medium weight the default Boldface Upright Slanted Sans serif S MALL CAPS Typewriter and sizes: tiny scriptsize footnotesize small normalsize 9
  • 10. CHAPTER 1. TEMPLATE 10 large Large LARGE huge Huge