summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:05:35 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:05:35 +0000
commit2cb2178e1eed3fa6cdab42288a84ffb4850e36ee (patch)
tree3eae758c8481e1ba222e4e777d8b4e0754920fe6 /Master
parent76b95ee9d86b759158a3669cbb2eb16860e856ec (diff)
romannum
git-svn-id: svn://tug.org/texlive/trunk@1282 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/tex/latex/romannum/romannum.sty140
1 files changed, 140 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/romannum/romannum.sty b/Master/texmf-dist/tex/latex/romannum/romannum.sty
new file mode 100644
index 00000000000..53e788fa611
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/romannum/romannum.sty
@@ -0,0 +1,140 @@
+%%
+%% This is file `romannum.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% romannum.dtx (with options: `usc')
+%%
+%% Author: Peter Wilson (CUA)
+%% now at: peter.r.wilson@boeing.com
+%%
+%% Copyright 1999 Peter R. Wilson
+%%
+%% This program is provided under the terms of the
+%% LaTeX Project Public License distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{romannum}[1999/05/08 v1.0 roman numerals]
+\RequirePackage{stdclsdv}
+\newif\ifrn@mYear \rn@mYearfalse
+\newif\ifrn@mDay \rn@mDayfalse
+\newif\ifrn@mday \rn@mdayfalse
+\DeclareOption{Section}{%
+ \ifSCDchapter
+ \renewcommand{\thechapter}{\Roman{chapter}}
+ \renewcommand{\thesection}{\thechapter.\Roman{section}}
+ \else
+ \renewcommand{\thesection}{\Roman{section}}
+ \fi
+ \renewcommand{\thesubsection}{\thesection.\Roman{subsection}}
+ \renewcommand{\thesubsubsection}{\thesubsection.\Roman{subsubsection}}
+ \renewcommand{\theparagraph}{\thesubsubsection.\Roman{paragraph}}
+ \renewcommand{\thesubparagraph}{\theparagraph.\Roman{subparagraph}}
+}
+\DeclareOption{section}{%
+ \ifSCDchapter
+ \renewcommand{\thechapter}{\roman{chapter}}
+ \renewcommand{\thesection}{\thechapter.\roman{section}}
+ \else
+ \renewcommand{\thesection}{\roman{section}}
+ \fi
+ \renewcommand{\thesubsection}{\thesection.\roman{subsection}}
+ \renewcommand{\thesubsubsection}{\thesubsection.\roman{subsubsection}}
+ \renewcommand{\theparagraph}{\thesubsubsection.\roman{paragraph}}
+ \renewcommand{\thesubparagraph}{\theparagraph.\roman{subparagraph}}
+}
+\DeclareOption{Equation}{%
+ \ifSCDchapter
+ \renewcommand{\theequation}%
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \Roman{equation}}
+ \else
+ \renewcommand{\theequation}{\Roman{equation}}
+ \fi
+}
+\DeclareOption{equation}{%
+ \ifSCDchapter
+ \renewcommand{\theequation}%
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \roman{equation}}
+ \else
+ \renewcommand{\theequation}{\roman{equation}}
+ \fi
+}
+\DeclareOption{Caption}{%
+ \ifSCDchapter
+ \renewcommand{\thefigure}%
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \Roman{figure}}
+ \renewcommand{\thetable}%
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \Roman{table}}
+ \else
+ \renewcommand{\thefigure}{\Roman{figure}}
+ \renewcommand{\thetable}{\Roman{table}}
+ \fi
+}
+\DeclareOption{caption}{%
+ \ifSCDchapter
+ \renewcommand{\thefigure}%
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \roman{figure}}
+ \renewcommand{\thetable}%
+ {\ifnum \c@chapter>\z@ \thechapter.\fi \roman{table}}
+ \else
+ \renewcommand{\thefigure}{\roman{figure}}
+ \renewcommand{\thetable}{\roman{table}}
+ \fi
+}
+\DeclareOption{Footnote}{%
+ \renewcommand{\thefootnote}{\Roman{footnote}}
+}
+\DeclareOption{footnote}{%
+ \renewcommand{\thefootnote}{\roman{footnote}}
+}
+\DeclareOption{Enumerate}{%
+ \renewcommand{\theenumi}{\Roman{enumi}}
+ \renewcommand{\theenumiii}{\roman{enumiii}}
+}
+\DeclareOption{enumerate}{%
+ \renewcommand{\theenumi}{\roman{enumi}}
+ \renewcommand{\theenumiii}{\Roman{enumiii}}
+}
+\DeclareOption{Year}{\rn@mYeartrue}
+\DeclareOption{Day}{\rn@mDaytrue\rn@mYeartrue\rn@mdayfalse}
+\DeclareOption{day}{\rn@mDayfalse\rn@mYeartrue\rn@mdaytrue}
+\DeclareOption{Most}{%
+ \ExecuteOptions{Section,Equation,Caption,Footnote,Enumerate}
+}
+\DeclareOption{most}{%
+ \ExecuteOptions{section,equation,caption,footnote,enumerate}
+}
+\ProcessOptions\relax
+\ifrn@mYear
+ \newcommand{\thern@myear}{\@Roman\year}
+ \ifrn@mDay
+ \newcommand{\thern@mday}{\@Roman\day}
+ \else
+ \ifrn@mday
+ \newcommand{\thern@mday}{\@roman\day}
+ \else
+ \newcommand{\thern@mday}{\@arabic\day}
+ \fi
+ \fi
+ \edef\today{\ifcase\month\or
+ January\or February\or March\or April\or May\or June\or
+ July\or August\or September\or October\or November\or December\fi
+ \space\thern@mday, \thern@myear}
+\fi
+\newcommand{\romannum}[1]{%
+ \ifnum#1<1
+ \ifnum#1=0
+ o%
+ \else
+ -\romannumeral -#1%
+ \fi
+ \else
+ \romannumeral #1%
+ \fi}
+\DeclareRobustCommand{\Romannum}[1]{\MakeUppercase{\romannum{#1}}}
+\AtBeginDocument{\pagenumbering{roman}}
+\endinput
+%%
+%% End of file `romannum.sty'.