diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/romanbarpagenumber/romanbarpagenumber.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/romanbarpagenumber/romanbarpagenumber.sty | 23 |
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'. |