diff options
author | Karl Berry <karl@freefriends.org> | 2010-10-13 23:38:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-10-13 23:38:07 +0000 |
commit | 2532f2984dfa19ccba63a270e9ca0ba6099f7800 (patch) | |
tree | 533753d65a936db7aeffa38623e99d482e432466 | |
parent | ee5fc07f2f888967948c2f70ea5f37eda3aeea4c (diff) |
rommaneg own pkg (13oct10)
git-svn-id: svn://tug.org/texlive/trunk@20087 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/romanneg/romanneg.ltx | 32 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/romanneg/romanneg.pdf | bin | 0 -> 182605 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/romanneg/romanneg.sty | 51 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 3 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/romanneg.tlpsrc | 0 |
6 files changed, 86 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/romanneg/romanneg.ltx b/Master/texmf-dist/doc/latex/romanneg/romanneg.ltx new file mode 100644 index 00000000000..2f38a26c9ff --- /dev/null +++ b/Master/texmf-dist/doc/latex/romanneg/romanneg.ltx @@ -0,0 +1,32 @@ +\documentclass[pagesize=auto, fontsize=14pt, DIV=9, parskip=half]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{microtype} +\usepackage{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{romanneg} package\thanks{This manual corresponds to \pkg{romanneg.sty}~v1.03, dated~15 June 1992.}} +\author{Mario Wolczko\thanks{\mail{mario@acm.org}}} +\date{15 June 1992} + + +\begin{document} + +\maketitle + +This style option should not change the appearance of a document, +but merely change the page numbers (as defined by \verb|\count0|) in the +DVI file to be negative when roman pagenumbering is in use. + +To do this, the \verb|\@steppagecounter| macro increments the absolute +value of \verb|\count0| + +\end{document} diff --git a/Master/texmf-dist/doc/latex/romanneg/romanneg.pdf b/Master/texmf-dist/doc/latex/romanneg/romanneg.pdf Binary files differnew file mode 100644 index 00000000000..0861acd3157 --- /dev/null +++ b/Master/texmf-dist/doc/latex/romanneg/romanneg.pdf diff --git a/Master/texmf-dist/tex/latex/romanneg/romanneg.sty b/Master/texmf-dist/tex/latex/romanneg/romanneg.sty new file mode 100644 index 00000000000..0232bfa438c --- /dev/null +++ b/Master/texmf-dist/tex/latex/romanneg/romanneg.sty @@ -0,0 +1,51 @@ +%%% ==================================================================== +%%% @LaTeX-style-file{ +%%% author = "Mario Wolczko", +%%% version = "1.03", +%%% date = "15 June 1992", +%%% time = "18:11:59 BST", +%%% filename = "romanneg.sty", +%%% email = "mario@acm.org", +%%% codetable = "ISO/ASCII", +%%% keywords = "LaTeX, output, pagenumbers", +%%% supported = "no", +%%% docstring = "Causes the page numbers in the DVI file (as +%%% defined by \count0) to be negative when roman pagenumbering is +%%% in effect.", +%%% } +%%% ==================================================================== +% +% This file is in the public domain +% +% This style option should not change the appearance of a document, +% but merely change the page numbers (as defined by \count0) in the +% DVI file to be negative when roman pagenumbering is in use. +% +% +% To do this, the \@steppagecounter macro increments the absolute +% value of \count0 +\def\@steppagecounter{% based on \advancepageno, TeXbook, p.362 + \ifnum\c@page<\z@ \global\advance\c@page\m@ne + \else\global\advance\c@page\@ne \fi} % increase |c@page| + +\let\@oldstepcounter\stepcounter +\def\stepcounter#1{{\def\@tmpa{#1}\def\@tmpb{page}% + \ifx\@tmpa\@tmpb\@steppagecounter\else\@oldstepcounter{#1}\fi}} + +% Modified version of the pagenumbering command that sets \count0 (aka +% \c@page) to -1 rather than 1 if roman numbering is specified. +\def\pagenumbering#1{{% + \def\@tmpa{#1} \def\@tmpb{roman} \def\@tmpc{Roman} + \ifx\@tmpa\@tmpb % roman option; set -ve page number. + \global\c@page \m@ne + \else\ifx\@tmpa\@tmpc + \global\c@page \m@ne + \else + \global\c@page \@ne + \fi\fi + \gdef\thepage{\csname @#1\endcsname \c@page}}} + +% the modified versions of \@roman and \@Roman deal with negatives +\def\@romannumeral#1{\ifnum#1<0 \romannumeral-#1 \else\romannumeral#1 \fi} +\def\@roman#1{\@romannumeral #1} +\def\@Roman#1{\expandafter\uppercase\expandafter{\@romannumeral #1}} diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index a68d6dd9ed1..d8df32c990c 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -277,7 +277,8 @@ my @TLP_working = qw( realscripts recipe recipecard recycle rectopma refman refstyle regcount register relenc relsize resumemac revtex rjlparshap rlepsf rmpage - robustcommand robustindex romande romannum rotating rotfloat rotpages + robustcommand robustindex romande romanneg romannum rotating + rotfloat rotpages roundbox rsc rsfs rtkinenc rtklage russ rvwrite ryethesis sageep sansmath sauerj sauterfonts savefnmark savesym savetrees scale diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index c1553d77456..fc46cec90fa 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -533,6 +533,7 @@ depend rlepsf depend rmpage depend robustcommand depend robustindex +depend romanneg depend romannum depend rotfloat depend rotpages diff --git a/Master/tlpkg/tlpsrc/romanneg.tlpsrc b/Master/tlpkg/tlpsrc/romanneg.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/romanneg.tlpsrc |