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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964
|
%%
%% This is file `pageslts-example.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% pageslts.dtx (with options: `example')
%%
%% This is a generated file.
%%
%% Project: pageslts
%% Version: 2015/12/21 v1.2f
%%
%% Copyright (C) 2010 - 2015 by
%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
%% Portions of code copyrighted by other people as marked.
%%
%% IMPORTANT NOTICE:
%% On the first page backslash pagenumbering should be called
%% (with the appropriate argument out of e.g.
%% * roman - Lowercase Roman numerals: i, ii, iii, iv,...
%% * Roman - Uppercase Roman numerals: I, II, III, IV,...
%% * arabic - Arabic numerals: 1, 2, 3, 4,...
%% * alph - Lowercase letters: a, b, c, d,...
%% * Alph - Uppercase letters: A, B, C, D,...
%% * fnsymbol - Footnote symbols: *, ^^e2^^80^^a0 (ddagger), ^^e2^^80^^a1 (dddagger),
%% ^^c2^^a7 (mathsection),...
%% ). The command backslash pagenumbering is renewed, but no change
%% should be visible to the output text, because only labels are added.
%% backslash OrigPagenumbering can be used to get the original meaning
%% of backslash pagenumbering, but in that case this package does not
%% see the change in the page numbering scheme and will make mistakes.
%% The package takes options.
%%
%% The usual disclaimer applies:
%% If it doesn't work right that's your problem.
%% (Nevertheless, send an e-mail to the maintainer
%% when you find an error in this package.)
%%
%% This work 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. This version of this license is in
%% http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%%
%% The Current Maintainer of this work is H.-Martin Muench.
%%
%% This package first started as a revision of the lastpage
%% package of Jeffrey P. Goldberg (jeffrey+news at goldmark dot org),
%% but it became obvious that a replacement was needed.
%%
%% This work consists of the main source file pageslts.dtx,
%% the README, and the derived files
%% pageslts.sty, pageslts.pdf,
%% pageslts.ins, pageslts.drv,
%% pageslts-example.tex, pageslts-example.pdf.
%%
%% In memoriam
%% Claudia Simone Barth + 1996/01/30
%% Tommy Muench + 2014/01/02
%% Hans-Klaus Muench + 2014/08/24
%%
\documentclass[british]{article}[2014/09/29]% v1.4h
\usepackage{lipsum}[2014/07/27]% v1.3
\usepackage[draft]{showkeys}[2014/10/28]% v3.17
%% Use final instead of draft to hide the keys. %%
\usepackage{hyperref}[2012/11/06]% v6.83m
\hypersetup{%
extension=pdf,%
plainpages=false,%
pdfpagelabels=true,%
hyperindex=false,%
pdflang={en},%
pdftitle={pageslts package example},%
pdfauthor={Hans-Martin Muench},%
pdfsubject={Example for the pageslts package},%
pdfkeywords={LaTeX, pageslts, H.-Martin Muench},%
pdfview=Fit,%
pdfstartview=Fit,%
pdfpagelayout=SinglePage,%
bookmarksopen=true%
}
\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,fnsymbolmult=true,%
romanMult=true,RomanMulti=true]{pageslts}[2015/12/21]% v1.2f
%% These are the default options. %%
\makeatletter
\renewcommand{\@evenfoot}%
{Page \thepage\ (\theCurrentPage; local: \theCurrentPageLocal) of %
\lastpageref{pagesLTS.roman}(\lastpageref{pagesLTS.roman.local}) + %
\lastpageref{pagesLTS.Roman}(\lastpageref{pagesLTS.Roman.local}) + %
\lastpageref{pagesLTS.arabic}(\lastpageref{pagesLTS.arabic.local}) + %
\lastpageref{pagesLTS.fnsymbol}(\lastpageref{pagesLTS.fnsymbol.local}) + %
\lastpageref{pagesLTS.alph}(\lastpageref{pagesLTS.alph.local}) + %
\lastpageref{pagesLTS.Alph}(\lastpageref{pagesLTS.Alph.local}) = %
\lastpageref{LastPages} pages.%
}
\renewcommand{\@oddfoot}{\@evenfoot}
\def\pagesLTSexampleArabic{3}
\def\pagesLTSexamplealph{23}
\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}%
\makeatother
\listfiles
\begin{document}
\pagenumbering{roman}
%% Note the first \pagenumbering immediately behind \begin{document}! %%
%%\addtocounter{page}{-2} %%
\section*{Example for pageslts}
\addcontentsline{toc}{section}{Example for pageslts}
\markboth{Example for pageslts}{Example for pageslts}
This example demonstrates the most common uses of package\\
\textsf{pageslts}, v1.2f as of 2015/12/21 (HMM).\\
The used options were \texttt{pagecontinue=true},
\texttt{alphMult=ab}, \texttt{AlphMulti=AB}, \linebreak
\texttt{fnsymbolmult=true},
\texttt{romanMult=true}, and \texttt{RomanMulti=true}
(the default ones).\\
For more details please see the documentation!\\
\label{keys} To hide the \pageref{keys}{\qquad } use option
\texttt{final} instead of \texttt{draft} with the \textsf{showkeys}
package (or remove the package call from the preamble of
this document).\\
\textbf{Hyperlinks or not:} If the \textsf{hyperref} package is loaded,
the references are also hyperlinked:\\
\smallskip
Page \thepage\ (\theCurrentPage; local: \theCurrentPageLocal) of %
\lastpageref{pagesLTS.roman}(\lastpageref{pagesLTS.roman.local}) + %
\lastpageref{pagesLTS.Roman}(\lastpageref{pagesLTS.Roman.local}) + %
\lastpageref{pagesLTS.arabic}(\lastpageref{pagesLTS.arabic.local}) + %
\lastpageref{pagesLTS.fnsymbol}(\lastpageref{pagesLTS.fnsymbol.local}) + %
\lastpageref{pagesLTS.alph}(\lastpageref{pagesLTS.alph.local}) + %
\lastpageref{pagesLTS.Alph}(\lastpageref{pagesLTS.Alph.local}) = %
\lastpageref{LastPages} pages.\\
If the \textsf{hyperref} package is loaded, but the hyperlinks of the
references shall be suppressed, \verb|\pageref*{...}|
and \verb|\lastpageref*{...}| can be used:\\
Page \thepage\ (\theCurrentPage; local: \theCurrentPageLocal) of %
\lastpageref*{pagesLTS.roman}(\lastpageref*{pagesLTS.roman.local}) + %
\lastpageref*{pagesLTS.Roman}(\lastpageref*{pagesLTS.Roman.local}) + %
\lastpageref*{pagesLTS.arabic}(\lastpageref*{pagesLTS.arabic.local}) + %
\lastpageref*{pagesLTS.fnsymbol}(\lastpageref*{pagesLTS.fnsymbol.local}) + %
\lastpageref*{pagesLTS.alph}(\lastpageref*{pagesLTS.alph.local}) + %
\lastpageref*{pagesLTS.Alph}(\lastpageref*{pagesLTS.Alph.local}) = %
\lastpageref*{LastPages} pages.\\
\textbf{Trademarks} appear throughout this example without any
trademark symbol; they are the property of their respective
trademark owner. There is no intention of infringement; the
usage is to the benefit of the trademark owner.\\
\textbf{Tip}: Use \textit{logical page numbers}
for the display of the pdf (in Adobe Reader DC 2015.008.20082:
Edit $>$ Preferences $>$ Categories: Page Display $>$
Page Content and Information: Use logical page numbers)!\\
You want negative page numbers? Not only arabic, but even roman,
Roman, alph, Alph or fnsymbol ones? No problem, e.\,g. just give a\\
\verb|\addtocounter{page}{|-\textit{some number}\verb|}| in the
source code of this example file (or uncomment the prepared line)!
\bigskip
Save per page about $200\unit{ml}$ water, $2\unit{g}$ CO$_{2}$
and $2\unit{g}$ wood:\\
Therefore please print only if this is really necessary.
\pagebreak
\tableofcontents
\newpage
\pagenumbering{roman}
%% in case the page numbering is changed before,
%% otherwise pagesLTS.current.local.roman on this page
%% would be undefined
\section{roman}
\noindent (\texttt{roman} page numbering was started before,
because the page numbering scheme was needed to start at
the first page, of course.)\\
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
You can get this also in other formats:
\roman{CurrentPage}, \Roman{CurrentPage}, \arabic{CurrentPage},
\fnsymbol{CurrentPage}, \alph{CurrentPage}, \Alph{CurrentPage}.
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
You can get also this in other formats, too:
\roman{pagesLTS.current.local.roman}, \Roman{pagesLTS.current.local.roman},
\arabic{pagesLTS.current.local.roman}, \fnsymbol{pagesLTS.current.local.roman},
\alph{pagesLTS.current.local.roman}, \Alph{pagesLTS.current.local.roman},
but probably it only makes sense if page numbering scheme and format are
the same, e.\,g.\\
\verb|\Roman{pagesLTS.current.local.Roman}|\\
or \verb|\Alph{pagesLTS.current.local.Alph}|. \verb|\arabic{...}| could
make sense even if combined with another page numbering scheme.
And this is exactly what \verb|\theCurrentPageLocal| does:\\
\nolinebreak{\verb|\def\theCurrentPageLocal{\arabic{pagesLTS.current.local.\pagesLTS@pnc}}|.}\\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
When the option \texttt{pagecontinue=false} is used with the
\textsf{pageslts} package, the \verb|\lastpageref{pagesLTS.Roman}| will
point to the same page as before, but this will have a lower number.\\
The \verb|\lastpageref{pagesLTS.Roman.local}| will not change,
because the number of pages does not change (only the page numbers).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{lastpage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-3]
\newpage
\pagenumbering{Roman}
\section{Roman\label{Roman}}
\subsection{Common Roman page numbering}
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-4]
\newpage
\subsection{Last page of first Roman sector}
\verb|\lastpageref{pagesLTS.Roman}| does \textbf{not}
refer to this page (but there: \lastpageref{pagesLTS.Roman}),
because the option \texttt{pagecontinue=true}
was chosen. When a reference to this page is wanted,\\
\verb|\lastpageref{pagesLTS.Roman.1}| can be used: \lastpageref{pagesLTS.Roman.1}.\\
\bigskip
There are \lastpages{Roman}{1}~pages (\verb|\lastpages{Roman}{1}|)
in this first Roman sector.\\
The Roman page numbering scheme is continued later in section~\ref{Roman2})!
\newpage
\pagenumbering{arabic}
\section{arabic}
\subsection{Standard page numbering}
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pagesLTS} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-4]
\newpage
\subsection[Empty page style]{Also an empty page style is no problem %
for the current or total page count}
\bigskip
\thispagestyle{empty}
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-4]
\newpage
\subsection[addtocounter, setcounter]{Neither %
\texttt{\textbackslash addtocounter\{page\}} nor %
\texttt{\textbackslash setcounter\{page\}} is a problem for the %
current or total page numbers}
(Here is an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}|
in the source code.)\\
\addtocounter{page}{\pagesLTSexampleArabic}
\noindent The page (from \verb|\thepage| command): \thepage \\
\noindent Current page (from \verb|\theCurrentPage|\ %
command), i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (from \verb|\theCurrentPageLocal|\ %
command), i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal\\
\noindent Last page's number (LastPages): \lastpageref{LastPages}{\hskip3em }
(= total number of pages)\\
\lipsum[1-7]
\newpage
\pagenumbering{fnsymbol}
\section{fnsymbol}
Adobe Reader DC 2015.008.20082 does not show the correct page names
for all pages with \texttt{fnsymbol} page numbering scheme,
while at least the (\ldots\ of \ldots ) part of the page number is displayed correctly.
(Adobe Reader~X even got all pages right.)
\bigskip
Without option \texttt{fnsymbolmult=true} of the \textsf{pageslts} package
(and the help of \textsc{Heiko Oberdiek}'s \textsf{alphalph} package),
after page~9 (\textquotedblleft \ensuremath {\ddagger \ddagger }\textquotedblright )
(and also for negative page numbers) there would just appear a
\begin{quote}
\begin{verbatim}
LaTeX Error: Counter too large
See the LaTeX manual or LaTeX Companion for explanation.
You've lost some text. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
\end{verbatim}
\end{quote}
Now the page numbers after 5 (\ensuremath {\mathparagraph }) are
continued with the doubled \textquotedblleft number\textquotedblright{} of
the first, second, third,\ldots\ page (\ensuremath {**},
\ensuremath {\dagger \dagger }, \ensuremath {\ddagger \ddagger },
\ensuremath {\mathsection \mathsection },
\ensuremath {\mathparagraph \mathparagraph }),
and after the tenth page the \textquotedblleft number\textquotedblright{} is
tripled (\ensuremath {***}, \ensuremath {\dagger \dagger \dagger },\ldots).
Page zero is named 0 and negative pages just named like the positive ones
with addition of a minus sign~($-$).
\bigskip
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-60]
\newpage
\pagenumbering{Roman}
\section{Roman - again!\label{Roman2}}
The page number would start with \textquotedblleft I\textquotedblright{} again --
but for the \textsf{pageslts} package (with option \texttt{pagecontinue=true},
or with option just \texttt{pagecontinue}, or even just
\nolinebreak{with\textbf{out}} option \texttt{pagecontinue=false}).
This package remembered the (\arabic{pagesLTS.double.Roman}-1)\footnote{%
OK, here you have to compute this value for yourself, but %
subtracting one should be manageable for \TeX{}nicians.} pages already
done in Roman output, and therefore continues with page
\textquotedblleft \thepage \textquotedblright .\\
If you want to start with \textquotedblleft I\textquotedblright{} all
over again, you will have two pages with the same name,
but nevertheless you can do this by using option \texttt{pagecontinue=false}
or a \verb|\setcounter{page}{1}|\ here (not demonstrated in this example file).\\
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never
\verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-6]
\newpage
\verb|\lastpageref{pagesLTS.Roman}| does \textbf{not}
refer to this page (but there: \lastpageref{pagesLTS.Roman}),
because the option \texttt{pagecontinue=true}
was chosen. When a reference to this page is wanted,\\
\verb|\lastpageref{pagesLTS.Roman.2}| can be used: \lastpageref{pagesLTS.Roman.2}.\\
\bigskip
There are \lastpages{Roman}{2}~pages (\verb|\lastpages{Roman}{2}|) in this
second Roman sector.\\
The Roman page numbering scheme is continued later in section~\ref{Roman3})!
\newpage
\pagenumbering{alph}
\section{alph\label{alph}}
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-4]
\newpage
Without option \texttt{alphMult=ab} of the \textsf{pageslts} (and the help of
\textsc{Heiko Oberdiek's} \textsf{alphalph} package), after page
\textquotedblleft z\textquotedblright{} there would just appear a
\begin{quote}
\begin{verbatim}
LaTeX Error: Counter too large
See the LaTeX manual or LaTeX Companion for explanation.
You've lost some text. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
\end{verbatim}
\end{quote}
Now the page numbers are continued aa, ab, ac,\ldots\ (aa, bb, cc,\ldots\ is
also possible, see the \textsf{pageslts} documentation).\\
To demonstrate this, we add a\\
\verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}|\\
in the source code here.
\addtocounter{page}{\pagesLTSexamplealph}
\bigskip
\lipsum[1-18]
\newpage
\pagenumbering{Roman}
\section{Roman - third time!\label{Roman3}}
The page number would start with
\textquotedblleft I\textquotedblright{} again -- but
for the \textsf{pageslts} package (with option \texttt{pagecontinue=true},
or with option just \texttt{pagecontinue}, or even just
\nolinebreak{with\textbf{out}} option \texttt{pagecontinue=false}).
This package remembered the
(\arabic{pagesLTS.double.Roman}-1)\footnote{OK, here %
you have to compute this value for yourself, but %
subtracting one should be managable for \TeX nicians.} pages already
done in Roman output, and therefore continues with page
\textquotedblleft \thepage \textquotedblright .\\
If you want to start with \textquotedblleft I\textquotedblright{} all
over again, you will have (at least) two pages with the same name,
but nevertheless you can do this by using option
\texttt{pagecontinue=false} instead of \texttt{pagecontinue=true}
(not demonstrated here).\\
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-3]
\newpage
\lastpageref{pagesLTS.Roman}
(\verb|\lastpageref{pagesLTS.Roman}|)
\textbf{does} refers to this page, because the option
\texttt{pagecontinue=true} was chosen. Also\\
\verb|\lastpageref{pagesLTS.Roman.3}| can be used: \lastpageref{pagesLTS.Roman.3}.\\
\bigskip
There are \lastpages{Roman}{3}~pages (\verb|\lastpages{Roman}{3}|) in this
third Roman sector.\\
\newpage
\pagenumbering{Alph}
\section{Alph}
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\lipsum[1-3]
Without option \texttt{alphMulti=AB} of the \textsf{pageslts} (and the help of
\textsc{Heiko Oberdiek's} \textsf{alphalph} package), after page
\textquotedblleft Z\textquotedblright{} there would just appear a
\begin{quote}
\begin{verbatim}
LaTeX Error: Counter too large
See the LaTeX manual or LaTeX Companion for explanation.
You've lost some text. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
\end{verbatim}
\end{quote}
Now the page numbers are continued AA, AB, AC,\ldots\ (AA, BB, CC,\ldots\ is
also possible, see the \textsf{pageslts} documentation).\\
This is not demonstrated here, but see section~\ref{alph}.
\newpage
\section{The End}
\noindent First page (\verb|\lastpageref{pagesLTS.0}|):
\lastpageref{pagesLTS.0}\\
\noindent The page (\verb|\thepage|): \thepage \\
\noindent Current page (\verb|\theCurrentPage|),
i.\,e. counted continuously from the first page): \theCurrentPage \\
\noindent CurrentPageLocal (\verb|\theCurrentPageLocal|),
i.\,e. counted continuously from the first page of the
current page numbering scheme): \theCurrentPageLocal \\
\noindent Last roman page (pagesLTS.roman): \lastpageref{pagesLTS.roman}{\hskip4em }
(There are \lastpageref{pagesLTS.roman.local} pages with roman numbers.)\\
\noindent Last Roman page (pagesLTS.Roman): \lastpageref{pagesLTS.Roman}{\hskip3em }
(There are \lastpageref{pagesLTS.Roman.local}~pages with Roman numbers:\\
\lastpages{Roman}{1}~pages in the first Roman sector
(\pageref{Roman}{\hskip3em }-\lastpageref{pagesLTS.Roman.1}{\hskip3em }),\\
\lastpages{Roman}{2}~pages in the second Roman sector
(\pageref{Roman2}{\hskip3em }-\lastpageref{pagesLTS.Roman.2}{\hskip3em }), and\\
\lastpages{Roman}{3}~pages in the third Roman sector
(\pageref{Roman3}{\hskip3em }-\lastpageref{pagesLTS.Roman.3}{\hskip3em }).\\
\noindent Last arabic page (pagesLTS.arabic): \lastpageref{pagesLTS.arabic}{\hskip5em }
(There are only \lastpageref{pagesLTS.arabic.local} pages with arabic numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexampleArabic\verb|}| was used.)\\
\noindent Last fnsymbol page (pagesLTS.fnsymbol): \lastpageref{pagesLTS.fnsymbol} \\
(\verb|\lastpageref{pagesLTS.fnsymbol}| -- never \verb|\pageref{pagesLTS.fnsymbol}|!)\\
(There are \lastpageref{pagesLTS.fnsymbol.local} pages with fnsymbol numbers.)\\
\noindent Last alph page (pagesLTS.alph): \lastpageref{pagesLTS.alph}{\hskip4em }
(There are only \lastpageref{pagesLTS.alph.local} pages with alph numbers,
because an \verb|\addtocounter{page}{|\pagesLTSexamplealph\verb|}| was used.)\\
\noindent Last Alph page (pagesLTS.Alph): \lastpageref{pagesLTS.Alph}{\hskip4em }
(There are \lastpageref{pagesLTS.Alph.local} pages with Alph numbers.)\\
\noindent Last page's \textit{name} (LastPage): \lastpageref{LastPage}\\
\noindent Very last page's \textit{name} (VeryLastPage): \lastpageref{VeryLastPage}\\
(\texttt{LastPage} and \texttt{VeryLastPage} are identical, unless
a package with output \linebreak
\verb|\AtEndDocument| after the \textsf{pageslts} package was added.)\\
\noindent Last page's \textit{number} (LastPages): \lastpageref{LastPages}{\hskip3em }
(=~total number of pages)\\
\medskip
\noindent Page \thepage\ (\theCurrentPage; local: \theCurrentPageLocal) of %
\lastpageref{pagesLTS.roman} (\lastpageref{pagesLTS.roman.local}) + %
\lastpageref{pagesLTS.Roman} (\lastpageref{pagesLTS.Roman.local}) + %
\lastpageref{pagesLTS.arabic} (\lastpageref{pagesLTS.arabic.local}) + %
\lastpageref{pagesLTS.fnsymbol} (\lastpageref{pagesLTS.fnsymbol.local}) + %
\lastpageref{pagesLTS.alph} (\lastpageref{pagesLTS.alph.local}) + %
\lastpageref{pagesLTS.Alph} (\lastpageref{pagesLTS.Alph.local}) = %
\lastpageref{LastPages} pages.
\end{document}
\endinput
%%
%% End of file `pageslts-example.tex'.
|