SlideShare a Scribd company logo
1 of 10
Sample PDF Document
Robert Maron
Grzegorz Grudzi´nski
February 20, 1999
2
Contents
1 Template 5
1.1 How to compile a .tex file to a .pdf file . . . . . . . . . . . . . 5
1.1.1 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1.2 How to use the tools . . . . . . . . . . . . . . . . . . . . 5
1.2 How to write a document . . . . . . . . . . . . . . . . . . . . . . 6
1.2.1 The main document . . . . . . . . . . . . . . . . . . . . . 6
1.2.2 Chapters . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2.3 Spell-checking . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 LATEX and pdfLATEX capabilities . . . . . . . . . . . . . . . . . . . 7
1.3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3.2 LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3.3 pdfLATEX . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3.4 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3
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
some of them in the LATEXsearch 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
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 in-
clude(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
1.3. LATEX AND PDFLATEX CAPABILITIES 7
1.3 LATEX and pdfLATEX capabilities
1.3.1 Overview
First you edit your source .tex file. In LATEX 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 di-
rectly .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.
1.3.2 LATEX
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).
1.3.3 pdfLATEX
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
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 pack-
age.
Reserved characters
Some characters have some special meaning, thus cannot be entered in the usual
way.
• $ & % # _ { }
• 
• ˜ ˆ
1.3. LATEX AND PDFLATEX CAPABILITIES 9
Math
• 12
, 12n
, ...
• i1, i2n, ...
• 1
2
, 2n
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
• SMALL CAPS
• Typewriter
• and sizes:
– tiny
– scriptsize
– footnotesize
– small
– normalsize
10 CHAPTER 1. TEMPLATE
– large
– Large
– LARGE
– huge
– Huge

More Related Content

Viewers also liked

Siltumapgādes sistēmas renovācija/rekonstrukcija daudzdzīvokļu mājā.
Siltumapgādes sistēmas renovācija/rekonstrukcija daudzdzīvokļu mājā.Siltumapgādes sistēmas renovācija/rekonstrukcija daudzdzīvokļu mājā.
Siltumapgādes sistēmas renovācija/rekonstrukcija daudzdzīvokļu mājā.Ekonomikas ministrija/ Dzīvo siltāk
 
Aktuālā situācija un pieredze ēku enerģētiskajā renovācijā (1)
Aktuālā situācija un pieredze ēku enerģētiskajā renovācijā (1) Aktuālā situācija un pieredze ēku enerģētiskajā renovācijā (1)
Aktuālā situācija un pieredze ēku enerģētiskajā renovācijā (1) Ekonomikas ministrija/ Dzīvo siltāk
 
Par konkursa "Energoefektīvākā ēka Latvijā 2013" iesniegtajiem projektiem
Par konkursa "Energoefektīvākā ēka Latvijā 2013" iesniegtajiem projektiemPar konkursa "Energoefektīvākā ēka Latvijā 2013" iesniegtajiem projektiem
Par konkursa "Energoefektīvākā ēka Latvijā 2013" iesniegtajiem projektiemEkonomikas ministrija/ Dzīvo siltāk
 
Winning a Community Benefit Agreement by Jennifer Epps-Addison, J.D.
Winning a Community Benefit Agreement by Jennifer Epps-Addison, J.D.Winning a Community Benefit Agreement by Jennifer Epps-Addison, J.D.
Winning a Community Benefit Agreement by Jennifer Epps-Addison, J.D.Jennifer Epps-Addison
 
Sbs v4-130305232717-phpapp01 (1)
Sbs v4-130305232717-phpapp01 (1)Sbs v4-130305232717-phpapp01 (1)
Sbs v4-130305232717-phpapp01 (1)plutoone TestTwo
 
MSDS for PEGylated control liposomes containing Maleimide lipid for conjugati...
MSDS for PEGylated control liposomes containing Maleimide lipid for conjugati...MSDS for PEGylated control liposomes containing Maleimide lipid for conjugati...
MSDS for PEGylated control liposomes containing Maleimide lipid for conjugati...Encapsula NanoSciences
 
Stencil how to instructions help beginners turn pro
Stencil how to instructions help beginners turn proStencil how to instructions help beginners turn pro
Stencil how to instructions help beginners turn proCutting Edge Stencils
 

Viewers also liked (20)

Siltumapgādes sistēmas renovācija/rekonstrukcija daudzdzīvokļu mājā.
Siltumapgādes sistēmas renovācija/rekonstrukcija daudzdzīvokļu mājā.Siltumapgādes sistēmas renovācija/rekonstrukcija daudzdzīvokļu mājā.
Siltumapgādes sistēmas renovācija/rekonstrukcija daudzdzīvokļu mājā.
 
Biežāk pieļautās kļūdas projektu īstenošanā
Biežāk pieļautās kļūdas projektu īstenošanāBiežāk pieļautās kļūdas projektu īstenošanā
Biežāk pieļautās kļūdas projektu īstenošanā
 
format.odp.odp
format.odp.odpformat.odp.odp
format.odp.odp
 
Diet Plan.pdf
Diet Plan.pdfDiet Plan.pdf
Diet Plan.pdf
 
Energoefektīva enerģijas izmantošana
Energoefektīva enerģijas izmantošana Energoefektīva enerģijas izmantošana
Energoefektīva enerģijas izmantošana
 
Lonely walls
Lonely wallsLonely walls
Lonely walls
 
ACU 2010 Conference
ACU 2010 Conference ACU 2010 Conference
ACU 2010 Conference
 
from channel
from channelfrom channel
from channel
 
Malvinas
MalvinasMalvinas
Malvinas
 
MSDS DermaMix-ACE
MSDS DermaMix-ACEMSDS DermaMix-ACE
MSDS DermaMix-ACE
 
Funkcionālās barjeras un to pielietošana
Funkcionālās barjeras un to pielietošanaFunkcionālās barjeras un to pielietošana
Funkcionālās barjeras un to pielietošana
 
INBOUND
INBOUND INBOUND
INBOUND
 
Aktuālā situācija un pieredze ēku enerģētiskajā renovācijā (1)
Aktuālā situācija un pieredze ēku enerģētiskajā renovācijā (1) Aktuālā situācija un pieredze ēku enerģētiskajā renovācijā (1)
Aktuālā situācija un pieredze ēku enerģētiskajā renovācijā (1)
 
Par konkursa "Energoefektīvākā ēka Latvijā 2013" iesniegtajiem projektiem
Par konkursa "Energoefektīvākā ēka Latvijā 2013" iesniegtajiem projektiemPar konkursa "Energoefektīvākā ēka Latvijā 2013" iesniegtajiem projektiem
Par konkursa "Energoefektīvākā ēka Latvijā 2013" iesniegtajiem projektiem
 
format.odp.odp
format.odp.odpformat.odp.odp
format.odp.odp
 
Last private
Last privateLast private
Last private
 
Winning a Community Benefit Agreement by Jennifer Epps-Addison, J.D.
Winning a Community Benefit Agreement by Jennifer Epps-Addison, J.D.Winning a Community Benefit Agreement by Jennifer Epps-Addison, J.D.
Winning a Community Benefit Agreement by Jennifer Epps-Addison, J.D.
 
Sbs v4-130305232717-phpapp01 (1)
Sbs v4-130305232717-phpapp01 (1)Sbs v4-130305232717-phpapp01 (1)
Sbs v4-130305232717-phpapp01 (1)
 
MSDS for PEGylated control liposomes containing Maleimide lipid for conjugati...
MSDS for PEGylated control liposomes containing Maleimide lipid for conjugati...MSDS for PEGylated control liposomes containing Maleimide lipid for conjugati...
MSDS for PEGylated control liposomes containing Maleimide lipid for conjugati...
 
Stencil how to instructions help beginners turn pro
Stencil how to instructions help beginners turn proStencil how to instructions help beginners turn pro
Stencil how to instructions help beginners turn pro
 

Similar to Guide to Creating PDF Documents with LaTeX

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 fileDhwanee Desai
 
Latex workshop: Essentials and Practices
Latex workshop: Essentials and PracticesLatex workshop: Essentials and Practices
Latex workshop: Essentials and PracticesMohamed Alrshah
 
documents writing with LATEX
documents writing with LATEXdocuments writing with LATEX
documents writing with LATEXAnusha Vajrapu
 
The Big Documentation Extravaganza
The Big Documentation ExtravaganzaThe Big Documentation Extravaganza
The Big Documentation ExtravaganzaStephan Schmidt
 
latex-workshop Dr: Mohamed A. Alrshah
latex-workshop Dr: Mohamed A. Alrshahlatex-workshop Dr: Mohamed A. Alrshah
latex-workshop Dr: Mohamed A. AlrshahAbdulazim N.Elaati
 
Pdfsam 1.1.0-tutorial
Pdfsam 1.1.0-tutorialPdfsam 1.1.0-tutorial
Pdfsam 1.1.0-tutorialSouad Faidi
 
Making%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20WindowsMaking%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20Windowstutorialsruby
 
Making%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20WindowsMaking%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20Windowstutorialsruby
 
sphinx demo
sphinx demosphinx demo
sphinx demoak013
 
[Mentor Graphics] A Perforce-based Automatic Document Generation System
[Mentor Graphics] A Perforce-based Automatic Document Generation System[Mentor Graphics] A Perforce-based Automatic Document Generation System
[Mentor Graphics] A Perforce-based Automatic Document Generation SystemPerforce
 
StdAfx.h for Novices
StdAfx.h for NovicesStdAfx.h for Novices
StdAfx.h for NovicesAndrey Karpov
 

Similar to Guide to Creating PDF Documents with LaTeX (19)

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
 
abc12
abc12abc12
abc12
 
popopo
popopopopopo
popopo
 
abc
abcabc
abc
 
Latex workshop: Essentials and Practices
Latex workshop: Essentials and PracticesLatex workshop: Essentials and Practices
Latex workshop: Essentials and Practices
 
documents writing with LATEX
documents writing with LATEXdocuments writing with LATEX
documents writing with LATEX
 
C- language Lecture 8
C- language Lecture 8C- language Lecture 8
C- language Lecture 8
 
The Big Documentation Extravaganza
The Big Documentation ExtravaganzaThe Big Documentation Extravaganza
The Big Documentation Extravaganza
 
Te xworks manual
Te xworks manualTe xworks manual
Te xworks manual
 
latex-workshop Dr: Mohamed A. Alrshah
latex-workshop Dr: Mohamed A. Alrshahlatex-workshop Dr: Mohamed A. Alrshah
latex-workshop Dr: Mohamed A. Alrshah
 
Pdfsam 1.1.0-tutorial
Pdfsam 1.1.0-tutorialPdfsam 1.1.0-tutorial
Pdfsam 1.1.0-tutorial
 
Making%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20WindowsMaking%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20Windows
 
Making%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20WindowsMaking%20R%20Packages%20Under%20Windows
Making%20R%20Packages%20Under%20Windows
 
Ltxprimer 1.0
Ltxprimer 1.0Ltxprimer 1.0
Ltxprimer 1.0
 
Importanat
ImportanatImportanat
Importanat
 
sphinx demo
sphinx demosphinx demo
sphinx demo
 
[Mentor Graphics] A Perforce-based Automatic Document Generation System
[Mentor Graphics] A Perforce-based Automatic Document Generation System[Mentor Graphics] A Perforce-based Automatic Document Generation System
[Mentor Graphics] A Perforce-based Automatic Document Generation System
 
StdAfx.h for Novices
StdAfx.h for NovicesStdAfx.h for Novices
StdAfx.h for Novices
 
Learn Latex
Learn LatexLearn Latex
Learn Latex
 

More from plutoone TestTwo (20)

Sam_V01.ppt
Sam_V01.pptSam_V01.ppt
Sam_V01.ppt
 
Scare at 13:59
Scare at 13:59Scare at 13:59
Scare at 13:59
 
Presentation1.PPTX
Presentation1.PPTXPresentation1.PPTX
Presentation1.PPTX
 
Presentation1.PPTX
Presentation1.PPTXPresentation1.PPTX
Presentation1.PPTX
 
Presentation1.PPTX
Presentation1.PPTXPresentation1.PPTX
Presentation1.PPTX
 
Effective_presentation.ppt
Effective_presentation.pptEffective_presentation.ppt
Effective_presentation.ppt
 
Effective_presentation.ppt
Effective_presentation.pptEffective_presentation.ppt
Effective_presentation.ppt
 
Effective_presentation.ppt
Effective_presentation.pptEffective_presentation.ppt
Effective_presentation.ppt
 
from app
from appfrom app
from app
 
example.pdf
example.pdfexample.pdf
example.pdf
 
7.2edited
7.2edited7.2edited
7.2edited
 
LAtest Doc
LAtest DocLAtest Doc
LAtest Doc
 
hello plutoone
hello plutoonehello plutoone
hello plutoone
 
plutoone channel
plutoone channelplutoone channel
plutoone channel
 
Document.docx.docx
Document.docx.docxDocument.docx.docx
Document.docx.docx
 
format.txt.txt
format.txt.txtformat.txt.txt
format.txt.txt
 
Presentation1.PPTX
Presentation1.PPTXPresentation1.PPTX
Presentation1.PPTX
 
Sample.ppt
Sample.pptSample.ppt
Sample.ppt
 
newdocument.txt
newdocument.txtnewdocument.txt
newdocument.txt
 
NetworkSecurity.ppt
NetworkSecurity.pptNetworkSecurity.ppt
NetworkSecurity.ppt
 

Recently uploaded

Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Guide to Creating PDF Documents with LaTeX

  • 1. Sample PDF Document Robert Maron Grzegorz Grudzi´nski February 20, 1999
  • 2. 2
  • 3. Contents 1 Template 5 1.1 How to compile a .tex file to a .pdf file . . . . . . . . . . . . . 5 1.1.1 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1.2 How to use the tools . . . . . . . . . . . . . . . . . . . . 5 1.2 How to write a document . . . . . . . . . . . . . . . . . . . . . . 6 1.2.1 The main document . . . . . . . . . . . . . . . . . . . . . 6 1.2.2 Chapters . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2.3 Spell-checking . . . . . . . . . . . . . . . . . . . . . . . 6 1.3 LATEX and pdfLATEX capabilities . . . . . . . . . . . . . . . . . . . 7 1.3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3.2 LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3.3 pdfLATEX . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3.4 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3
  • 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 some of them in the LATEXsearch 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. 6 CHAPTER 1. TEMPLATE 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 in- clude(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. 1.3. LATEX AND PDFLATEX CAPABILITIES 7 1.3 LATEX and pdfLATEX capabilities 1.3.1 Overview First you edit your source .tex file. In LATEX 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 di- rectly .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. 1.3.2 LATEX 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). 1.3.3 pdfLATEX 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. 8 CHAPTER 1. TEMPLATE 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 pack- age. Reserved characters Some characters have some special meaning, thus cannot be entered in the usual way. • $ & % # _ { } • • ˜ ˆ
  • 9. 1.3. LATEX AND PDFLATEX CAPABILITIES 9 Math • 12 , 12n , ... • i1, i2n, ... • 1 2 , 2n 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 • SMALL CAPS • Typewriter • and sizes: – tiny – scriptsize – footnotesize – small – normalsize
  • 10. 10 CHAPTER 1. TEMPLATE – large – Large – LARGE – huge – Huge