SlideShare una empresa de Scribd logo
1 de 10
Descargar para leer sin conexión
Sample PDF Document
Robert Maron
Grzegorz Grudzi´ ski
n
February 20, 1999
2
Contents
1

Template
1.1 How to compile a .tex file to a .pdf file .
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 file to a .pdf file

1.1.1 Tools
To process the files 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 files 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 file 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=file.ps file.pdf”
to produce a PostScript file;
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 files 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 file. You can
choose any name for the file, but we suggest adding a suffix to the name of the
main file. For our example we use the file 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 file. In LTEX you compile it using the latex
command to a .dvi file (which stands for device-independent). The .dvi file
can be converted to any device-dependent format you like using an appropriate
driver, for example dvips.
When producing .pdf files you should use pdflatex, which produces directly .pdf files out of .tex sources. Note that in the .tex file you may need
to use some PDF specific packages.
For viewing .tex files use your favourite text editor, for viewing .dvi files
under X Window System use xdvi command, .ps files can be viewed with gv
(or ghostview) and .pdf files 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 2–22”)
• — (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 2−3

...

• α, β, γ, Ω, . . .
• →, ⇒, ≥, =, ∈, , . . .
√
• 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
–

Más contenido relacionado

Más de kshraddha9 (20)

upload1
upload1upload1
upload1
 
12p
12p12p
12p
 
11p2
11p211p2
11p2
 
popopo
popopopopopo
popopo
 
test
testtest
test
 
abc12
abc12abc12
abc12
 
abc
abcabc
abc
 
31122013
3112201331122013
31122013
 
12315
1231512315
12315
 
fds123
fds123fds123
fds123
 
Kshraddha9 testdoc
Kshraddha9 testdocKshraddha9 testdoc
Kshraddha9 testdoc
 
test
testtest
test
 
Kshraddha9 testdoc
Kshraddha9 testdocKshraddha9 testdoc
Kshraddha9 testdoc
 
20_mins
20_mins20_mins
20_mins
 
20_mins
20_mins20_mins
20_mins
 
Testppt
TestpptTestppt
Testppt
 
server error1
server error1server error1
server error1
 
Word Doc Page 1
Word Doc Page 1Word Doc Page 1
Word Doc Page 1
 
Testppt
TestpptTestppt
Testppt
 
Word Doc Page 1
Word Doc Page 1Word Doc Page 1
Word Doc Page 1
 

Último

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 

Último (20)

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 

sample123

  • 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 file to a .pdf file . 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 file to a .pdf file 1.1.1 Tools To process the files 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 files 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 file 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=file.ps file.pdf” to produce a PostScript file; 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 files 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 file. You can choose any name for the file, but we suggest adding a suffix to the name of the main file. For our example we use the file 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 file. In LTEX you compile it using the latex command to a .dvi file (which stands for device-independent). The .dvi file can be converted to any device-dependent format you like using an appropriate driver, for example dvips. When producing .pdf files you should use pdflatex, which produces directly .pdf files out of .tex sources. Note that in the .tex file you may need to use some PDF specific packages. For viewing .tex files use your favourite text editor, for viewing .dvi files under X Window System use xdvi command, .ps files can be viewed with gv (or ghostview) and .pdf files 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 2–22”) • — (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 2−3 ... • α, β, γ, Ω, . . . • →, ⇒, ≥, =, ∈, , . . . √ • 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 –