1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
%%
%% This is file `romanbar-example.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% romanbar.dtx (with options: `example')
%%
%% This is a generated file.
%%
%% Project: romanbar
%% Version: 2025-01-28 v1.0g
%%
%% Copyright (C) 2011 - 2025 by
%% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%% https://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%% https://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2005-12-01 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%%
%% The Current Maintainer of this work is H.-Martin Muench.
%%
%% This work consists of the main source file romanbar.dtx,
%% the README, and the derived files
%% romanbar.sty, romanbar.pdf,
%% romanbar.ins, romanbar.drv,
%% romanbar-example.tex, romanbar-example.pdf.
%%
%% In memoriam
%% Claudia Simone Barth + 1996-01-30
%% Tommy Muench + 2014-01-02
%% Hans-Klaus Muench + 2014-08-24
%%
\NeedsTeXFormat{LaTeX2e}[2024-11-01]
\documentclass[british]{article}[2024/06/29]% v1.4n
\usepackage[extension=pdf,%
plainpages=false,%
pdfpagelabels=true,%
hyperindex=false,%
pdflang={en},%
pdftitle={romanbar package example},%
pdfauthor={H.-Martin Muench},%
pdfsubject={Example for the romanbar package},%
pdfkeywords={LaTeX, romanbar, roman, Roman, bars},%
pdfview=Fit,pdfstartview=Fit,%
pdfpagelayout=SinglePage%
]{hyperref}[2024-11-05]% v7.01l
\usepackage{romanbar}[2025-01-28]% v1.0g
\listfiles
\begin{document}
\pagenumbering{arabic}
\section*{Example for romanbar}
This example demonstrates the use of package\newline
\textsf{romanbar}, v1.0g as of 2025-01-28.\newline
There are no options to be used.\newline
\noindent For more details please see the documentation!
\noindent This package provides the command \verb|\Romanbar|
to print bars below and over the following:
\begin{description}
\item[-] Roman numbers: \verb|\Romanbar{MMXXV}| prints \Romanbar{MMXXV}
\item[-] Arabic numbers turned into upper-case Roman numbers:\newline
\verb|\Romanbar{2025}| prints \Romanbar{2025}
\item[-] negative Arabic numbers turned into upper-case Roman numbers
\newline
(although historically there were no negative Roman numbers):
\newline
\verb|\Romanbar{-25}| prints \Romanbar{-25}
\item[-] zero Arabic number ($0$; although historically
there was no Roman zero):\newline
\verb|\Romanbar{0}| prints \Romanbar{0}
\item[-] some arbitrary text:
\verb|\Romanbar{Caesar}| prints \Romanbar{Caesar}\newline
(with descenders: \Romanbar{AgjpqyW})
\newcounter{example}
\setcounter{example}{25}
\item[-] some counter's value:
\verb|\Romanbar{\theexample}| prints \Romanbar{\theexample}
\newline
(where the value of \texttt{example} is \theexample)
\item[-] Arabic numbers, without turning them into upper-case Roman
numbers:\newline
\verb|\Romanbar{\relax 2025}| prints \Romanbar{\relax 2025}
\end{description}
Special care was taken for "L" (50), e.\,g.~in 555/DLV: \Romanbar{555}.
\verb|\romannum{...}| converts an Arabic number into a lower-case Roman one,
e.\,g.~\verb|\romannum{2025}| prints \romannum{2025}, and
\verb|\Romannum{...}| converts an Arabic number into an upper-case Roman one,
e.\,g.~\verb|\Romannum{2025}| prints \Romannum{2025}.
\end{document}
\endinput
%%
%% End of file `romanbar-example.tex'.
|