Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Inspired by a question, that unfortunately has been deleted by the OP after getting some hints from me in a comment.

Lacking serifs the Roman numerals in sans serif fonts look sometimes a bit strange. Do you have some ideas for a workaround?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

I would suggest the package romanbar. This produces Roman numerals with an over- and an underline, and without serifs.

The basic command for this is \Romanbar{⟨arabic number⟩}, this works also with counters inside! You can instead include a Roman numeral, as well. For more abilities see example file of package documentation.

An example (note, in KOMA-Script all titles are by default printed in sans serif fonts):

\documentclass[numbers=endperiod]{scrartcl}
\usepackage[T1]{fontenc}

\usepackage{romanbar}

\begin{document}

\section{section I vs. \Romanbar{\thesection}}
MDCLXVI vs. \Romanbar{1666}.

\stepcounter{section}
\section{section III vs. \Romanbar{\thesection}}
MDCLXVI vs. \Romanbar{MDCLXVI}.

\setcounter{section}{1665}
\section{section MDCLXVI vs. \Romanbar{\thesection}}
2014 vs. \Romanbar{2014} vs. \Romanbar{\relax 2014}.

\end{document}

example output

This package is BTW based on egreg’s answer to a question here on TeX.SE: Roman numerals with over- and underline (the OP Stephen is also the package author).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.