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