From Newsgroup: comp.text.tex
Jo|uo M. Louren|oo submitted an update to the
stocksize
package.
Version: 2.0.1 2026-01-01
License: lppl1.3c
Summary description: A flexible and easy interface to paper (stock) dimensions
Announcement text: ----------------------------------------------------------------------
Version 2.0.1 fixes the date and version number in the documentation.
Version 2.0.0 introduces a major rewrite of the `stocksize` package.
The update fundamentally changes the implementation to provide a more
robust and reliable mechanism for managing nested page size changes.
The key changes are:
- Stack-Aware Geometry: Instead of a custom implementation, the
package now patches `geometry`rCOs internal `\newgeometry` and
`\restoregeometry` commands, making them operate as a true
LIFO stack. This ensures that nested layout changes can be
reliably restored in the correct order.
- Automatic Physical Size Sync: The physical PDF page dimensions
(e.g., `\pdfpagewidth`) are now automatically synchronized with
the logical layout (`\paperwidth`) whenever the geometry is
altered with the `\newstocksize{}` command.
- New `patch-geometry` Option: A package option `[patch-geometry]`
has been added to automatically synchronize the physical PDF page
dimensions (e.g., `\pdfpagewidth`) and logical layout (`\paperwidth`)
whenever the geometry is altered with the `\newgeometry{}` command.
----------------------------------------------------------------------
The packagerCOs Catalogue entry can be viewed at
https://ctan.org/pkg/stocksize
The packagerCOs files themselves can be inspected at
https://mirrors.ctan.org/macros/latex/contrib/stocksize/
------------------------------------------------------------------------
Thanks for the upload.
For the CTAN Team
Petra R|+be-Pugliese
------------------------------------------------------------------------
CTAN is run entirely by volunteers and supported by TeX user groups.
Please join a user group or donate to one, see
https://ctan.org/lugs
--- Synchronet 3.21a-Linux NewsLink 1.2