Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LaTeX Cookbook

You're reading from   LaTeX Cookbook Over 90 hands-on recipes for quickly preparing LaTeX documents to solve various challenging tasks

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher Packt
ISBN-13 9781784395148
Length 378 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Stefan Kottwitz Stefan Kottwitz
Author Profile Icon Stefan Kottwitz
Stefan Kottwitz
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. The Variety of Document Types 2. Tuning the Text FREE CHAPTER 3. Adjusting Fonts 4. Working with Images 5. Beautiful Designs 6. Designing Tables 7. Contents, Indexes, and Bibliographies 8. Getting the Most out of the PDF 9. Creating Graphics 10. Advanced Mathematics 11. Science and Technology 12. Getting Support on the Internet Index

Removing white margins


To reuse the PDF output of your LaTeX document in another document, in an e-book, or on a website, it's usually a good idea to remove the margins, or at least to make them smaller.

Getting ready

For this recipe, you need to have the following things installed:

  • The PostScript interpreter software—Ghostscript

  • The programming language—Perl

  • The pdfcrop script

Fortunately, TeX Live installs internal versions of Ghostscript and Perl by default, and offers the pdfcrop script as a package; so, TeX Live users are lucky. If you don't use TeX Live, you may need to install the software. You can find more information at http://www.ghostscript.com, http://www.perl.org and http://ctan.org/pkg/pdfcrop.

How to do it...

The procedure is pretty easy, given that Command Prompt won't be an obstacle for you. We use LaTeX, so this won't be a challenge. Follow these steps for removing the white margins:

  1. Open Command Prompt.

    • On Linux or Unix, open a shell

    • On Ubuntu, Linux, and Mac OS X, the shell...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image