SlideShare uma empresa Scribd logo
1 de 10
Sample PDF Document

      Robert Maron
   Grzegorz Grudzi´ ski
                  n

    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 LTEX and pdfLTEX capabilities . . . . . . .
       A            A                               .   .   .   .   .   .   .   .   .   .   .   .   7
      1.3.1 Overview . . . . . . . . . . . . . .    .   .   .   .   .   .   .   .   .   .   .   .   7
      1.3.2 LTEX . . . . . . . . . . . . . . . .
              A                                     .   .   .   .   .   .   .   .   .   .   .   .   7
      1.3.3 pdfLTEX . . . . . . . . . . . . . .
                 A                                  .   .   .   .   .   .   .   .   .   .   .   .   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 LTEXsearch path — if you know how to do this);
                          A


   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. LTEX AND PDFLTEX CAPABILITIES
     A           A                                                           7

1.3    A           A
       LTEX and pdfLTEX capabilities
1.3.1 Overview
First you edit your source .tex file. In LTEX you compile it using the latex
                                        A

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.

      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

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. LTEX AND PDFLTEX CAPABILITIES
     A           A                                                9

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
10               CHAPTER 1. TEMPLATE

     – large
     –   Large
     –   LARGE
     – huge
     – Huge

Mais conteúdo relacionado

Último

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
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
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
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
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 

Último (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
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
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
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
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Hyperlink

  • 1. Sample PDF Document Robert Maron Grzegorz Grudzi´ ski n 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 LTEX and pdfLTEX capabilities . . . . . . . A A . . . . . . . . . . . . 7 1.3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3.2 LTEX . . . . . . . . . . . . . . . . A . . . . . . . . . . . . 7 1.3.3 pdfLTEX . . . . . . . . . . . . . . A . . . . . . . . . . . . 7 1.3.4 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3
  • 4. 4 CONTENTS
  • 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 LTEXsearch path — if you know how to do this); A 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. LTEX AND PDFLTEX CAPABILITIES A A 7 1.3 A A LTEX and pdfLTEX capabilities 1.3.1 Overview First you edit your source .tex file. In LTEX you compile it using the latex A 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. 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. 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. LTEX AND PDFLTEX CAPABILITIES A A 9 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
  • 10. 10 CHAPTER 1. TEMPLATE – large – Large – LARGE – huge – Huge