File: 5-3-2.ltx2

package info (click to toggle)
texlive-lang 2024.20250309-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,615,964 kB
  • sloc: xml: 69,499; perl: 62,533; python: 5,063; makefile: 4,836; sh: 4,456; ansic: 2,892; ruby: 1,031; lisp: 750; awk: 649; java: 159; sed: 142; csh: 25
file content (51 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%%
%% The LaTeX Companion, 3ed
%%
%% Example 5-3-2 on page I-387 in "chappg --- Page numbers by chapters".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exareport}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{102.60104pt}


  \setcounter{page}{1}

  \renewcommand\chapter[2]{#2\par} % drop * and title in book example

  %% drop one page in book (first)

  \pagestyle{origplain} %plain in this class
  \setlength\textheight{58pt}
  \addtolength\headsep{-12pt}  % shortened for the book
  \addtolength\footskip{-12pt} % shortened for the book

  \sloppy

  \typeout{***********************************^^J
    This example generates a warning, but it is bogus: the package
    doesn't realize that we are directly behind a \noexpand\chapter which
    issues a \noexpand\clearpage command.^^J%
    ***********************************^^J}

%StartShownPreambleCommands
\usepackage{lipsum,chappg}
% -- only pages 2-3 shown on the left --
%StopShownPreambleCommands

\begin{document}
\chapter*{Preface}
\pagenumbering[Preface]{bychapter}
\lipsum*[1][1-3] \ldots\ here we are in
the middle of the front matter where
chapters are usually unnumbered.
\end{document}