summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fixmetodonotes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-07-14 23:06:29 +0000
committerKarl Berry <karl@freefriends.org>2012-07-14 23:06:29 +0000
commit94288cbe438152f2a9d2e964b7804a15d2304293 (patch)
tree0afdbfe8bcbe23e5c2e3b125a83879cacf371ee8 /Master/texmf-dist/source/latex/fixmetodonotes
parent6ba99b0be35fc29b019e51bf281b2fb7ffb028c6 (diff)
new latex package fixmetodonotes (16jun12)
git-svn-id: svn://tug.org/texlive/trunk@27053 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/fixmetodonotes')
-rw-r--r--Master/texmf-dist/source/latex/fixmetodonotes/fixmetodonotes.dtx59
-rw-r--r--Master/texmf-dist/source/latex/fixmetodonotes/fixmetodonotes.ins25
2 files changed, 84 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/fixmetodonotes/fixmetodonotes.dtx b/Master/texmf-dist/source/latex/fixmetodonotes/fixmetodonotes.dtx
new file mode 100644
index 00000000000..c0607a6e636
--- /dev/null
+++ b/Master/texmf-dist/source/latex/fixmetodonotes/fixmetodonotes.dtx
@@ -0,0 +1,59 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{fixmetodonote}[2012/06/14 v0.1]
+
+\RequirePackage{graphicx}
+\RequirePackage{color}
+\RequirePackage{transparent}
+\RequirePackage{watermark}
+\RequirePackage{fix-cm}
+\RequirePackage[normalem]{ulem}
+\RequirePackage[titles]{tocloft}
+
+\newcommand{\listnotesname}{List of notes}
+\newlistof{note}{notes}{\listnotesname}
+
+\newcommand{\@HUGE}{\fontsize{100}{120}\selectfont}
+\newcommand{\@wmstyle}{\color{red}\transparent{0.1}\@HUGE}
+\newcommand{\@wmtext}{\textsc{DRAFT}}
+
+\newcommand{\@DRAFTwatermark}{%
+ \thiswatermark{%
+ \raisebox{-0.5\textheight}{%
+ \parbox{\linewidth}{%
+ \centering{\rotatebox{30}{\@wmstyle\@wmtext}}%
+ }%
+ }%
+ }%
+}
+
+
+\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}}
+
+\newcommand{\NOTES@usemarker}[2]{\csname NOTES@#1marker\endcsname{#2}{red}}
+
+\newcommand{\NOTES@addtolist}[2]{%
+ \refstepcounter{note}%
+ \phantomsection%
+ \addcontentsline{notes}{note}{\protect\numberline{\thenote}{{#1}: {#2}}}%
+}
+
+\newcommand{\defnote}[3]{%
+ \global\expandafter\newcommand\csname #1\endcsname[1]{%
+ \NOTES@usemarker{#2}{#1}%
+ #3{##1}%
+ \NOTES@addtolist{#1}{##1}%
+ \@DRAFTwatermark%
+ }%
+}
+
+\defnote{FIXME}{margin}{\uwave}
+\defnote{TODO}{inline}{\NOTES@colorline{yellow}}
+\defnote{CITE}{inline}{\NOTES@colorline{cyan}}
diff --git a/Master/texmf-dist/source/latex/fixmetodonotes/fixmetodonotes.ins b/Master/texmf-dist/source/latex/fixmetodonotes/fixmetodonotes.ins
new file mode 100644
index 00000000000..1a1070362e1
--- /dev/null
+++ b/Master/texmf-dist/source/latex/fixmetodonotes/fixmetodonotes.ins
@@ -0,0 +1,25 @@
+\input docstrip.tex
+\keepsilent
+
+\usedir{tex/late/fixmetodonotes}
+
+\preamble
+
+This is a generated file
+
+
+fixmetodonotes: highlight and manage FIXME and TODO annotations.
+
+Written in 2012 by Gioele Barabucci
+
+
+This is free software released into the public domain (CC0 license).
+
+See the LICENSE file or <http://creativecommons.org/publicdomain/zero/1.0/>
+for more details.
+
+\endpreamble
+
+\generate{\file{fixmetodonotes.sty}{\from{fixmetodonotes.dtx}{package}}}
+
+\endbatchfile