diff options
author | Karl Berry <karl@freefriends.org> | 2014-10-24 00:39:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-10-24 00:39:28 +0000 |
commit | 0d2b2b5074b0c056669ded2d8830ff892289d4a7 (patch) | |
tree | d57e62c95bd26d8067e0508b972310fe8fd0e3f1 /Master/texmf-dist/tex/latex | |
parent | a5ad3c50a7b78235f4505e6565e44f31f7234245 (diff) |
todonotes (22oct14)
git-svn-id: svn://tug.org/texlive/trunk@35429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/todonotes/todonotes.sty | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/todonotes/todonotes.sty b/Master/texmf-dist/tex/latex/todonotes/todonotes.sty index 0500be6f5eb..6f8258a8a81 100644 --- a/Master/texmf-dist/tex/latex/todonotes/todonotes.sty +++ b/Master/texmf-dist/tex/latex/todonotes/todonotes.sty @@ -37,8 +37,9 @@ \newcommand{\@todonotes@bordercolor}{black} \newcommand{\@todonotes@textwidth}{\marginparwidth} \newcommand{\@todonotes@textsize}{\normalsize} -\newcommand{\@todonotes@figwidth}{\columnwidth} +\newcommand{\@todonotes@figwidth}{\linewidth} \newcommand{\@todonotes@figheight}{4cm} +\newcommand{\@todonotes@figcolor}{black!40} \AtBeginDocument{ \ifx\undefined\phantomsection \newcommand{\phantomsection}{} @@ -64,6 +65,12 @@ \@todonotes@SetMissingFigureUp{Figura}% \@todonotes@SetMissingFigureDown{pendent}% } +\DeclareOptionX{croatian}{% + \@todonotes@SetTodoListName{Popis obveza}% + \@todonotes@SetMissingFigureText{Slika}% + \@todonotes@SetMissingFigureUp{Nedostaje}% + \@todonotes@SetMissingFigureDown{slika}% +} \DeclareOptionX{danish}{% \@todonotes@SetTodoListName{G\o{}rem\aa{}lsliste}% \@todonotes@SetMissingFigureText{Figur}% @@ -167,6 +174,8 @@ {figwidth}{\renewcommand{\@todonotes@figwidth}{#1}} \define@key{todonotes.sty}% {figheight}{\renewcommand{\@todonotes@figheight}{#1}} +\define@key{todonotes.sty}% + {figcolor}{\renewcommand{\@todonotes@figcolor}{#1}} \ProcessOptionsX* \if@todonotes@disabled \else @@ -234,6 +243,9 @@ \newcommand{\@todonotes@currentfigheight}{\@todonotes@figheight} \define@key{todonotes}% {figheight}{\renewcommand{\@todonotes@currentfigheight}{#1}} +\newcommand{\@todonotes@currentfigcolor}{\@todonotes@figcolor} +\define@key{todonotes}% + {figcolor}{\renewcommand{\@todonotes@currentfigcolor}{#1}} \presetkeys% {todonotes}% {linecolor=\@todonotes@linecolor,% @@ -246,6 +258,7 @@ noauthor,% figwidth=\@todonotes@figwidth,% figheight=\@todonotes@figheight,% + figcolor=\@todonotes@figcolor,% line, list, size=\@todonotes@textsize}{}% \if@todonotes@disabled% \newcommand{\listoftodos}[1][]{} @@ -437,7 +450,7 @@ \par \noindent \begin{tikzpicture} -\draw[fill=black!40, draw = white, line width=0pt] +\draw[fill=\@todonotes@currentfigcolor, draw = black!40, line width=2pt] (-2, -2.5) rectangle +(\@todonotes@currentfigwidth, \@todonotes@currentfigheight); \draw (2, -0.3) node[right, text width=\@todonotes@currentfigwidth-4.5cm] {#2}; @@ -445,7 +458,7 @@ (30:2cm) -- (150:2cm) -- (270:2cm) -- cycle; \draw (0, 0.3) node {\@todonotes@MissingFigureUp}; \draw (0, -0.3) node {\@todonotes@MissingFigureDown}; -\end{tikzpicture} +\end{tikzpicture}\hfill }% Ending \missingfigure command \fi % Ending \@todonotes@ifdisabled \newcommand{\todototoc} |