summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-02-08 21:53:06 +0000
committerKarl Berry <karl@freefriends.org>2015-02-08 21:53:06 +0000
commitf20e794e5a391d6d3288e49b188f8a1dc2da32f9 (patch)
treefd15c56b622fa002a5d6224ef469d64afb7eeba9 /Master/texmf-dist/tex
parenta26b9ff90e587a4678f1c9d38a1d87f04d14c633 (diff)
romanbarpagenumber (8feb15)
git-svn-id: svn://tug.org/texlive/trunk@36236 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/romanbarpagenumber/romanbarpagenumber.sty23
1 files changed, 23 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/romanbarpagenumber/romanbarpagenumber.sty b/Master/texmf-dist/tex/latex/romanbarpagenumber/romanbarpagenumber.sty
new file mode 100644
index 00000000000..2a9b0906136
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/romanbarpagenumber/romanbarpagenumber.sty
@@ -0,0 +1,23 @@
+%% See file 'romanbarpagenumber.dtx' for copyright and license.
+\NeedsTeXFormat{LaTeX2e}[1998/12/01]
+\ProvidesPackage{romanbarpagenumber}
+ [2015/02/06 v1.0 Use romanbar for Roman pagenumbers]
+
+\RequirePackage{kvoptions}
+\RequirePackage{xifthen}
+\RequirePackage{romanbar}
+\AtBeginDocument{%
+ \@ifpackageloaded{hyperref}{%
+ \pdfstringdefDisableCommands{\let\Roman@bar\@firstofone}
+ }{}
+}
+\let\romanbarpagenumber@pagenumbering\pagenumbering\relax%
+\renewcommand{\pagenumbering}[1]{%
+ \romanbarpagenumber@pagenumbering{#1}
+ \ifthenelse{\equal{#1}{Roman}}{%
+ \renewcommand*{\thepage}{\Roman@bar{\Roman{page}}}
+ }{}
+}
+\endinput
+%%
+%% End of file `romanbarpagenumber.sty'.