Document Classespage size

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
avrakas
Posts: 2
Joined: Mon May 18, 2009 3:56 pm

page size

Post by avrakas »

Hello,

I have the following LaTeX code:


\documentclass{article}
\usepackage{vaucanson-g}
\begin{document}
\input{diagrams/automaton}
\end{document}

I want to create a PDF which has the size of the diagram in the file diagrams/automaton.tex, so that no empty space exists between the diagram and the page borders. The problem is that when I compile this code, the paper generated is A4 and thus I get a lot of empty space around my diagram.

Thank you in advance,
A.V

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

page size

Post by Stefan Kottwitz »

Hi Avrakas,

welcome to the board!
You could use pdfcrop to remove the white space around the diagram.

Or use geometry to specify the paper size and textpos to position the diagram at the paper corner.

Stefan
LaTeX.org admin
Post Reply