待办事项注释:不包括且左对齐?

待办事项注释:不包括且左对齐?

有没有办法执行 \todo*{Hello} 而不让注释显示在 ToDo 和注释区域?有人知道怎么做吗?或者反之亦然?

另外,如果放在左边呢?我认为放在左边比放在左边更容易阅读,也更易于管理。

\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\title{Notepad}

% Comments and \todo notes package
\newcommand{\cmmnt}[1]{} % \cmmnt{}
\usepackage[colorinlistoftodos]{todonotes}\setlength{\marginparwidth}{3.5cm}
    % \todo{Comment}    % \todo[noline]{}   % \todo[inline]{}
    % \todo[color=red!50]{Revision}
    % \todo[color=blue!40]{Improve}
    % \todo[color=purple!50]{Nice}

\begin{document}   

\todo[color=red!50]{Revision}
\todo[color=blue!40]{Improve}
\todo[color=purple!50]{Nice}

\listoftodos[ToDo's and Notes]

\end{document}

答案1

您可以使用\reversemarginpar在页面左侧添加注释的方式,也nolist可以选择创建未在“待办事项”和“注释”区域中列出的注释。

为了创建列出但不在文本中的注释,我建议在命令inline, nolist后添加注释\listoftodos,但我希望其他人能找到更好的解决方案!

\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\title{Notepad}

% Comments and \todo notes package
\newcommand{\cmmnt}[1]{} % \cmmnt{}
\usepackage[colorinlistoftodos]{todonotes}\setlength{\marginparwidth}{3cm}\reversemarginpar
%\reversemarginpar to have notes on the left margin (I have also modified the \marginparwidth otherwise the notes go out of the page)
% \todo{Comment}    % \todo[noline]{}   % \todo[inline]{}
% \todo[color=red!50]{Revision}
% \todo[color=blue!40]{Improve}
% \todo[color=purple!50]{Nice}

\begin{document}   

    \todo[color=red!50]{Revision}
    \todo[color=blue!40]{Improve}
    \todo[color=purple!50]{Nice}
    \todo[color=yellow, nolist]{Note not listed in the ToDo's and Notes area}

    \listoftodos[ToDo's and Notes]
    \todo[color=white,inline, nolist]{I don't know how to create a note in the list but not in the text}
    \todo[color=white,inline, nolist]{I hope someone else will help you, if you don't like this solution}

\end{document}

在此处输入图片描述

相关内容