diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-12-31 20:26:09 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-12-31 20:26:09 +0100 |
commit | f0ef82f0624c580b4dd652ac2ef89915756bdc0a (patch) | |
tree | be19c73005658fb11883bf7891de7b737ca06085 | |
parent | 4fe129c0b5d5bbdbba0e462c953dfa09c9bf7b72 (diff) |
Fancier styling of TODO notes.
-rw-r--r-- | header.tex | 4 | ||||
-rwxr-xr-x | pandoc-todo | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -7,9 +7,11 @@ \bgroup\markoverwith{% \textcolor{yellow}{\rule[-.5ex]{2pt}{2.5ex}}}\ULon} %\usepackage{fixme} -\usepackage[obeyDraft]{todonotes} +\usepackage[obeyDraft,shadow]{todonotes} \usepackage{marginnote} \renewcommand{\marginpar}{\marginnote} + \newcommand{\mytodo}[2]{% + \todo[fancyline]{#1}\hl{#2}} \hypersetup{breaklinks,hidelinks,draft=false} \usepackage[defaultlines=4,all]{nowidow} \def\UrlBreaks{% diff --git a/pandoc-todo b/pandoc-todo index 784b8fa..bc0590f 100755 --- a/pandoc-todo +++ b/pandoc-todo @@ -34,7 +34,7 @@ sub latex_encode { sub mark_inside { my ( $before, $it, $after, $note ) = @_; - return [ RawInline( 'latex', sprintf( '%s\\todo{%s}\\hl{%s}%s', + return [ RawInline( 'latex', sprintf( '%s\\mytodo{%s}{%s}%s', latex_encode($before), latex_encode($note), latex_encode($it), |