我目前正在 LaTeX 实验室日志中记录我的研究/任务。LaTeX 代码中每天的组织基本上类似于以下玩具示例:
\chapter{Saturday, 2nd February 2021}
\begin{importanttodo}
\begin{itemize}
\item Clean the house
\item Pet the Dog
\end{itemize}
\end{importanttodo}
Description of Research: Today I though it would be good to pet the dog. Also the house is dusty...
\chapter{Sunday, 3rd February 2021}
\begin{importanttodo}
\begin{itemize}
\item Calculate the Mass of the Sun
\end{itemize}
\end{importanttodo}
Description of Research: I wonder how heavy the sun is...
这里 {importanttodo} 只是以一种很好的方式格式化了内部 {itemize}。
我想知道最简单的方法是定义一个命令,我可以在文档开头调用该命令,该命令将连接分散在整个研究日志中的待办事项列表中的所有项目并提供一个集体待办事项列表。
如果可以的话,还可以简单地向我的待办事项列表添加一个可选参数,该参数忽略某些已完成的待办事项列表任务。在文档中,这可能看起来像以下内容:
\chapter{Saturday, 2nd March 2020}
\begin{importanttodo}
\item Clean the house
\item[Done] pet the dog
\end{importanttodo}
Description of Research: Today I though it would be good to pet the dog. Also the house is dusty...
\chapter{Sunday, 3rd February 2021}
\begin{importanttodo}
\begin{itemize}
\item Calculate the Mass of the Sun
\end{itemize}
\end{importanttodo}
Description of Research: I wonder how heavy the sun is...
因此,“打扫房间”将被添加到待办事项列表中,但“抚摸狗”不会。
最后,这个串联的待办事项列表是否可以包含任务的日期。理想情况下,这个收集的待办事项列表看起来应该如下所示:
TO DO LIST:
(Saturday, 2nd February 2021)
* Clean the House
(Sunday, 3rd February 2021)
* Calculate the Mass of the Sun