TeXipedia

pagesel

Enables selective printing of document pages by filtering specific pages, ranges, or odd/even sequences during output.

Overview

Provides fine-grained control over which pages appear in the final output of a LaTeX document, making it invaluable for managing large documents or creating specialized versions.

  • Allows selection of individual pages by number
  • Supports continuous page ranges (e.g., pages 1-5)
  • Enables filtering for odd or even pages only
  • Particularly useful for printing drafts, creating excerpts, or producing specialized versions of documents
  • Commonly used in academic and professional contexts when working with lengthy manuscripts, textbooks, or documentation where selective output is needed

Getting Started

To use pagesel, include it in your document preamble with the desired page selection options:

\documentclass{article}
\usepackage[pages=3-5]{pagesel}  % Only output pages 3 through 5

Common options include:

\usepackage[pages=3,5,7-9]{pagesel}  % Select specific pages and ranges
\usepackage[even]{pagesel}           % Only output even pages
\usepackage[odd]{pagesel}            % Only output odd pages

Examples

Outputting only odd-numbered pages of a document.

\documentclass{article}
\usepackage[odd]{pagesel}
\begin{document}
\section{First Section}
This is page 1. This page will be included in the output.
\newpage

\section{Second Section}
This is page 2. This page will not be included in the output.
\newpage

\section{Third Section}
This is page 3. This page will be included in the output.
\newpage

\section{Fourth Section}
This is page 4. This page will not be included in the output.
\end{document}