%% %% This is file `todonotes.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% todonotes.dtx (with options: `package') %% %% This is a generated file. %% %% Copyright (C) 2008 by Henrik Skov Midtiby %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.2 of this license %% or (at your option) any later version. The latest version of this %% license is in: %% %% http://www.latex-project.org/lppl.txt %% %% and version 1.2 or later is part of all distributions of LaTeX version %% 1999/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{todonotes} [2008/08/11 .dtx Todonotes source and documentation.] \ProvidesPackage{todonotes}[2008/08/11] \RequirePackage{ifthen} \RequirePackage{xkeyval} \RequirePackage{hyperref} \RequirePackage{xcolor} \RequirePackage{tikz} \RequirePackage{calc} \newcommand{\@backgroundcolor}{orange} \newcommand{\@bordercolor}{black} \newcommand{\@textwidth}{\marginparwidth} \newif{\ifdisabled} \DeclareOptionX{disable}{\disabledtrue} \newif{\ifcolorinlistoftodos} \DeclareOptionX{colorinlistoftodos}{\colorinlistoftodostrue} \newif{\ifdviStyle} \DeclareOptionX{dvistyle}{\dviStyletrue} \define@key{todonotes.sty}% {color}{\renewcommand{\@backgroundcolor}{#1}} \define@key{todonotes.sty}% {bordercolor}{\renewcommand{\@bordercolor}{#1}} \define@key{todonotes.sty}% {textwidth}{\renewcommand{\@textwidth}{#1}} \ProcessOptionsX \newcommand{\fillcolor}{}% \define@key{todonotes}{color}{\renewcommand{\fillcolor}{#1}}% \newcommand{\sizecommand}{}% \define@key{todonotes}{size}{\renewcommand{\sizecommand}{#1}}% \newif\ifappendtolistoftodos% \define@key{todonotes}{list}[]{\appendtolistoftodostrue}% \define@key{todonotes}{nolist}[]{\appendtolistoftodosfalse}% \newif\ifinlinenote% \define@key{todonotes}{inline}[]{\inlinenotetrue}% \define@key{todonotes}{noinline}[]{\inlinenotefalse}% \newif\ifline% \define@key{todonotes}{line}[]{\linetrue}% \define@key{todonotes}{noline}[]{\linefalse}% \presetkeys {todonotes} {color=\@backgroundcolor, noinline, line, list, size=\normalsize}{}% \ifdisabled \newcommand{\listoftodos}{} \newcommand{\todo}[2][]{} \newcommand{\missingfigure}[1]{} \else % \ifdisabled \newcommand{\listoftodos} {\section*{Todo list} \@starttoc{tdo}} \newcommand{\l@todo} {\@dottedtocline{1}{0em}{2.3em}} \tikzstyle{notestyle} = [draw=\@bordercolor, line width=0.5pt, text width = \@textwidth - 1.6 ex - 1pt, inner sep = 0.8 ex] \tikzstyle{notestyleleft} = [notestyle, left] \tikzstyle{connectstyle} = [thick] \tikzstyle{inlinenotestyle} = [notestyle, text width=\textwidth - 1.6 ex - 1 pt] \newcommand{\todo}[2][]{% \setkeys{todonotes}{#1}% \ifappendtolistoftodos% \phantomsection% \ifcolorinlistoftodos% \addcontentsline{tdo}{todo}{\protect{% \colorbox{\fillcolor}{\textcolor{\fillcolor}{\tiny i}} % #2}}% \else% \addcontentsline{tdo}{todo}{\protect{#2}}% \fi% \fi% \ifinlinenote% \ifdviStyle% {\par\noindent\tikz[remember picture] \draw node[inlinenotestyle, % fill=\fillcolor] {};\par}% {\noindent \sizecommand #2}% {\par\noindent\tikz[remember picture] \draw node[inlinenotestyle, % fill=\fillcolor] {};\par}% \else% {\par\noindent\tikz[remember picture] \draw node[inlinenotestyle, % fill=\fillcolor] {\sizecommand #2};\par}% \fi% \else% \begin{tikzpicture}[remember picture, baseline=-0.75ex]% \node [coordinate] (inText) {};% \end{tikzpicture}% \marginpar[{% Draw note in left margin \ifdviStyle% \tikz[remember picture] \draw node[notestyle, fill=\fillcolor] {}; \\ % \begin{minipage}{\@textwidth}% \sizecommand #2% \end{minipage} \\% \tikz[remember picture] \draw node[notestyle, fill=\fillcolor] (inNote) {};% \ifline% \begin{tikzpicture}[remember picture, overlay]% \draw[connectstyle, draw=\fillcolor]% ([yshift=-0.2cm] inText)% -| ([xshift=0.2cm] inNote.east)% -| (inNote.east);% \end{tikzpicture}% \fi% \else% \tikz[remember picture] \draw node[notestyle, fill=\fillcolor] (inNote) {\sizecommand #2};% \ifline% \begin{tikzpicture}[remember picture, overlay]% \draw[connectstyle, draw=\fillcolor]% ([yshift=-0.2cm] inText)% -| ([xshift=0.2cm] inNote.east)% -| (inNote.east);% \end{tikzpicture}% \fi% \fi% }]{% Draw note in right margin \ifdviStyle% \tikz[remember picture] \draw node[notestyle, fill=\fillcolor] {}; \\ % \begin{minipage}{\@textwidth}% \sizecommand #2% \end{minipage} \\% \tikz[remember picture] \draw node[notestyle, fill=\fillcolor] (inNote) {};% \ifline% \begin{tikzpicture}[remember picture, overlay]% \draw[connectstyle, draw=\fillcolor]% ([yshift=-0.2cm] inText)% -| ([xshift=-0.2cm] inNote.west)% -| (inNote.west);% \end{tikzpicture}% \fi% \else% \tikz[remember picture] \draw node[notestyle, fill=\fillcolor] (inNote) {\sizecommand #2};% \ifline% \begin{tikzpicture}[remember picture, overlay]% \draw[connectstyle, draw=\fillcolor]% ([yshift=-0.2cm] inText)% -| ([xshift=-0.2cm] inNote.west)% -| (inNote.west);% \end{tikzpicture}% \fi% \fi% }% \fi% }% \newcommand{\missingfigure}[1]{ \addcontentsline{tdo}{todo}{Figure: \protect{#1}}% \par \noindent \begin{tikzpicture} \draw[fill=black!40, draw = white, line width=0pt] (-3, -2.5) rectangle +(\textwidth, 4cm); \draw (3, 0) node[right, text width=4cm] {#1}; \draw[red, fill=white, rounded corners = 5pt, line width=10pt] (30:2cm) -- (150:2cm) -- (270:2cm) -- cycle; \draw (0, 0.3) node {Missing}; \draw (0, -0.3) node {figure}; \end{tikzpicture} }% Ending \missingfigure command \fi % Ending \ifdisabled \endinput %% %% End of file `todonotes.sty'.