summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-31 20:26:09 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-31 20:26:09 +0100
commitf0ef82f0624c580b4dd652ac2ef89915756bdc0a (patch)
treebe19c73005658fb11883bf7891de7b737ca06085
parent4fe129c0b5d5bbdbba0e462c953dfa09c9bf7b72 (diff)
Fancier styling of TODO notes.
-rw-r--r--header.tex4
-rwxr-xr-xpandoc-todo2
2 files changed, 4 insertions, 2 deletions
diff --git a/header.tex b/header.tex
index f18638f..023e377 100644
--- a/header.tex
+++ b/header.tex
@@ -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),