Skip to content

Commit

Permalink
Use a breakable color line instead of colorbox
Browse files Browse the repository at this point in the history
  • Loading branch information
gioele committed Mar 1, 2012
1 parent 1e4873d commit 1cf9a78
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions fixmetodonotes.sty
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
}%
}


\newcommand{\NOTES@colorline}[1]{%
\bgroup%
\markoverwith{\textcolor{#1}{\rule[-0.2\baselineskip]{2pt}{\baselineskip}}}%
\ULon%
}

\newcommand{\NOTES@marker}[2]{\fbox{\color{#2}\textbf{#1}}}
\newcommand{\NOTES@marginmarker}[2]{\marginpar{\NOTES@marker{#1}{#2}}}
\newcommand{\NOTES@inlinemarker}[2]{\NOTES@marker{#1}{#2}}
Expand All @@ -48,5 +55,5 @@
}

\defnote{FIXME}{margin}{\uwave}
\defnote{TODO}{inline}{\colorbox{yellow}}
\defnote{CITE}{inline}{\colorbox{cyan}}
\defnote{TODO}{inline}{\NOTES@colorline{yellow}}
\defnote{CITE}{inline}{\NOTES@colorline{cyan}}

0 comments on commit 1cf9a78

Please sign in to comment.