Skip to content

Instantly share code, notes, and snippets.

@y-yu
Created June 29, 2012 17:20
Show Gist options
  • Save y-yu/3019350 to your computer and use it in GitHub Desktop.
Save y-yu/3019350 to your computer and use it in GitHub Desktop.
\makeatletter
\newcount\barsNow
\def\underbar#1{%
\barsNow =#1\relax%
\expandafter\@underbar}
\def\@underbar{%
\advance\barsNow -1%
\_%
\ifnum \barsNow>0%
\expandafter\@underbar
\fi}
\makeatother
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment