From f20e794e5a391d6d3288e49b188f8a1dc2da32f9 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 8 Feb 2015 21:53:06 +0000
Subject: romanbarpagenumber (8feb15)

git-svn-id: svn://tug.org/texlive/trunk@36236 c570f23f-e606-0410-a88d-b1316a301751
---
 .../romanbarpagenumber/romanbarpagenumber.sty      | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Master/texmf-dist/tex/latex/romanbarpagenumber/romanbarpagenumber.sty

(limited to 'Master/texmf-dist/tex/latex/romanbarpagenumber/romanbarpagenumber.sty')

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'.
-- 
cgit v1.2.3

