TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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):




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

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

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


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


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.