Skip to content

lcsrodriguez/SuperTODO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperTODO - TODO $\TeX$ extension

 

Introduction

SuperTODO is a LaTeX package handling the creation and manipulation of TODO frames, frequently used for long-report writing.

With a large variety of commands (insert, update, delete, ...)1, you can easily plan and highligh further tasks to do within your $\TeX$ document and focus yourself on the main writing.

This package is written using the $\LaTeX 2_\varepsilon$ environment which provides us high-level commands for structuring new packages.

Open to contributions: Feel free to submit a PR in order to extend the available features for a better LaTeX writing experience.

Features

Upload to CTAN2: The upload on CTAN is planned and will be performed in the coming days.

Tested and fully operationnal on the following document classes:

  • article
  • report
  • book

Getting started

  1. Import the package. It can be either:
    • imported from CTAN
    • downloaded (the .sty file) from the current release and put in the same-level directory as the main file from your project

In both cases, you can finally use the package with the following at the top of the compiled document:

\usepackage{supertodo}
  1. After the \begin{document} tag, add the specified SuperTODO tag:
\begin{document}
...

\insertTD{Add the image}
\updateTD{Change the font size here}
\deleteTD{Remove the last item}
\reviewTD{Review the fifth item above}

... 
\end{document}

Remarks:

  • By default, the frames are printed as blocks environment. You can force the frame to be embedded within the current text with the optional parameter: inline
\insertTD[inline]{Add the image}
  • You can also raise a flag regarding the importance level of the task to be completed
\deleteTD*{Delete this Tikz figure}

Available environments

Level Background color Inline Block Capital
INSERT GREEN I
UPDATE YELLOW U
DELETE RED D
REVIEW BLUE R

The SuperTODO allows a wide flexibility on implementation by making easy to the end-user the declaration and use of new commands.

Add a new command

If you want to implement a new command, denoted below as abcde, please procede as follows:

\usepackage{supertodo}

% To be specified AFTER the supertodo package import, NEVER BEFORE !!
\NewDocumentCommand\abcdeTD{O{block} s m}{
    \block[#1][<capital>][<bgcolor>][<fgcolor>][#2]{#3}
}

where you can specify:

  • abcde: the name of the new command
  • <capital>: the letter(s) or text character(s) to be specified before the payload text
  • <bgcolor>: background color of the frame
  • <fgcolor>: foreground color of the frame (text + border color)

You can then use the command as follows:

\abcdeTD{Insert the fifth image here}

Don't forget the TD suffix for every command from this package.

Screenshots

You can also print at the end of the document a quick summary of the package's use within the main document:

\showOverviewTD

Sample document

You can easily test the module with this sandbox document.

References

The development phases required the study and reading of the following online references:

License

Development: Lucas RODRIGUEZ (August 2022 - ...)

Please check the LICENSE file for the complete license information.

Footnotes

  1. The default commands follow the CRUD (CREATE, READ, UPDATE, DELETE) terminology.

  2. CTAN: Comprehensive $\TeX$ Archive Network official website

Releases

No releases published

Packages

No packages published

Languages