About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account

Sample PDF Document

You can download the source code for a PDF document here. You can either download the files individually:

  • pdfdoc.tex
  • pdfdoc.sty
  • pdfdoc.bib
  • docinfo.png
  • docinfo.eps
  • Makefile
  • or you can download all files in a tar gzip file: pdfdoc.tar.gz

    Notes

    This document is designed to create either an A4 document intended for printing or a 6inx4in document intended for on-line viewing. A boolean variable, online, was defined to determine which version to produce, and to save editing the file each time a different version is required, a file called switch.tex is read in, if it exists. The Makefile contains the line:

    echo "\onlinetrue" > switch.tex
    

    when the 6inx4in version is being created, and the line:

    echo "\onlinefalse" > switch.tex
    

    when the A4 version is being created. So, to create the 6inx4in version, all that is needed is to do:

    make pdfdoc-screen.pdf
    

    and to create the A4 version, all that is needed is to do:

    make pdfdoc-a4.pdf
    

    This sample document is an old version of the document Creating a PDF Document using PDFLaTeX. The most recent version is rather more complicated, as I wanted it to work under both PDFLaTeX and LaTeX2HTML.

    © 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

    Terms of Use Privacy Policy Cookies Site Map FAQs