CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/stocksize

README.md

stocksize

This package provides a flexible and easy interface to change the paper (stock) dimensions in documents. Multiple user defined stock sizes are allowed in the same document, and stock sizes can be nested (in a LIFO order).

About

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 (110.0k).

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.

Packagestocksize
Supporthttps://github.com/joaomlourenco/stocksize/discussions
Bug trackerhttps://github.com/joaomlourenco/stocksize/issues
Repositoryhttps://github.com/joaomlourenco/stocksize
Version1.0.2 2024-11-13
LicensesThe Project Public License 1.3c
Copyright2024 João Lourenço
MaintainerJoão M. Lourenço
Contained inTeX Live as stocksize
TopicsGeometry
...
Guest Book Sitemap Contact Contact Author