Directory macros/latex/contrib/stocksize
stocksize
This package provides a flexible and easy interface to change the paper (stock) dimensions in LaTeX documents. Multiple user defined stock sizes are allowed in the same document, and stock sizes can be nested (in a LIFO order).
About
- Package: stocksize — A flexible and easy interface to paper (stock) dimensions.
- Copyright: 2024 © João M. Lourenço <joao.lourenco@fct.unl.pt>
- CTAN: https://ctan.org/pkg/stocksize
- Repository: https://github.com/joaomlourenco/stocksize
- License: The LaTeX Project Public License 1.3c
Introduction
The package geometry is excellent for customising the page layout. However, changing the page size in the middle of the document only changes the typing area and does not affect the real paper (stock) size. This package circumvents this situation by resizing the paper (stock) size to the given size.
User Interface
Loading the Package
Simply load the package with (with no options):
\usepackage{stocksize}
Starting a new Page With a Different Page/Stock Size
To start a new page with a different page/stock size use the verb!newstocksize! and verb!restorestocksize! commands.
\newstocksize{options} — This command starts a new stock (and paper) size. The `options` may include: `keepmargins` — The current (left, right, top, and bottom) margins will be prreseved in the new page layout; `other_options` — The `other_options` are passed straight to the \newgeometry command form the`geometry` package. \restorestocksize — This command ends the current stock size and restores the previous one (in a LIFO fashion).
Nesting Different Page/Stock Sizes
Multiple paper/stock sizes can be nested. With each \restorestocksize
command, the previous size is resumed.
This page has the default size (e.g., a4paper). \newstocksize{layoutsize={15cm,10cm},margin=1.5cm} This page size is 15cm wide x 10cm high, with margins of 1.5cm. \newstocksize{layoutsize={20cm,20cm},margin=4.0cm} This page size is 20cm wide x 20cm high, with margins of 4.0cm. \restorestocksize Resuming the page size is 15cm wide x 10cm high, with margins of 1.5cm. \restorestocksize Resuming the default paper size and margins (e.g., a4paper)!
Download the contents of this package in one zip archive (109.7k).
stocksize – A flexible and easy interface to paper (stock) dimensions
The package geometry is excellent for customizing the page layout. However, using the \newgeometry command to change the page size in the middle of the document only affects the typing area and does not affect the real paper (stock) size. This package circumvents this situation by resizing the paper (stock) size to the new page layout.
Package | stocksize |
Support | https://github.com/joaomlourenco/stocksize/discussions |
Bug tracker | https://github.com/joaomlourenco/stocksize/issues |
Repository | https://github.com/joaomlourenco/stocksize |
Version | 1.0.3 2024-11-23 |
Licenses | The LaTeX Project Public License 1.3c |
Copyright | 2024 João Lourenço |
Maintainer | João M. Lourenço |
Contained in | TeX Live as stocksize MiKTeX as stocksize |
Topics | Geometry |