todonotes
Inline- und Randnotizen für TODOs (\todo, \todofix, \missingfigure), um offene Aufgaben zu markieren.
- Example
- Preamble
\textmarker{Markierter Text.}
\textcomment{Markierter Text.}{Kommentar dazu.}
\modified{Manuelle Markierung für Text, der seit der letzten Version geändert wurde.}
Das ist ein Text.
\change{FL1: Text angepasst}{Geänderter Text}.
\todo{Hier muss noch kräftig Text produziert werden}
Die Quantenmechanik entwickelte sich dank der Arbeiten von Schrödinger, Heisenberg und Dirac rasch,
die sich von früheren Ideen von Planck \FA{und Einstein} \FA[Einstein darf hier nicht fehlen.] inspirieren ließen.
\FA*{Dieser Satz soll entfernt werden.} \FA!{Das ist wichtig.}
% TODO (and comment) configuration
%
% - \todo (from zebra, todonotes, luatodonotes), or \TODO - for "normal" TODOs
% - \todofix, or \FIXME - "important" TODOs
% - \CITE - a claim that still needs a citation
%
% - \textcomment{text}{comment} - comments on a text passage (pdfcomment: highlights the text and shows the comment on hover; otherwise: the text followed by \todo{comment})
% - \sidecomment - just puts a comment to the side. Note: \comment is the comment environment of several packages (mathdesign, mindflow, verbatim, and others); only zebra adds \comment[name]{...} as command
%
% - \missingfigure
%
% - \textmarker
% - \modified
% - \change - addresses a review comment
% luatodonotes: todonotes with a placement that avoids overlapping notes and lines (LuaLaTeX only)
\usepackage[color=gray!17]{luatodonotes}
\let\xtodo\todo
\renewcommand{\todo}[1]{\xtodo[inline,color=black!5]{#1}}
\newcommand{\todofix}[1]{\xtodo[color=red!40]{#1}}
% Define default commands
\makeatletter
\@ifundefined{missingfigure}{\newcommand{\missingfigure}{\ldots\ missing figure \ldots}}{}
\@ifundefined{textcomment}{\newcommand{\textcomment}[2]{#1 \todo{#2}}}{}
\@ifundefined{sidecomment}{\newcommand{\sidecomment}[1]{\marginpar{#1}}}{}
\@ifundefined{todo}{\newcommand{\todo}[1]{\sidecomment{#1}}}{}
\@ifundefined{TODO}{\newcommand{\TODO}[1]{\todo{#1}}}{}
\@ifundefined{todofix}{\newcommand{\todofix}[1]{\todo{#1}}}{}
\@ifundefined{FIXME}{\newcommand{\FIXME}[1]{\todofix{#1}}}{}
\@ifundefined{CITE}{\newcommand{\CITE}[1]{\todo{Citation needed: #1}}}{}
\@ifundefined{change}{\newcommand{\change}[2]{#1 $\rightarrow$ #2}}{}
\makeatother
% Textmarker (Textfarbe rot)
\newcommand{\textmarker}[1]{{\color{red} #1}\xspace}
% Modified (Text blau)
\newcommand{\modified}[1]{{\color{blue!60!black} #1}\xspace}
% Edits and comments by several authors, each with their own color and initials (phfcc)
% Doc: https://ctan.org/pkg/phfcc
\usepackage{phfcc}
\ifdefined\directlua
\phfSetDefaultCommentingStyle{style=rmstrikethrough} % strike through removed text across lines (LuaLaTeX only)
\fi
% Comments as footnotes keep the layout intact, e.g., to check page limits
%\phfSetDefaultCommentingStyle{style=footcomments}
% One command per author: \FA{added text}, \FA*{text to remove}, \FA[a comment], \FA!{important};
% the initials appear once per page in the margin; the forms do not combine (\FA*[...]{...} is only a comment), so
% write \FA*{removed}\FA[comment]. Add one line per further author with their initials.
\phfMakeCommentingCommand[initials={FA}]{FA} % first author
% Final version: hide all edits and comments (there is no class option for it: "final" is the default of every class)
%\phfDisableCommentingCommands