-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancements: todo styles and format hook #64
Comments
Thanks for the detailed suggestion for improving the todonotes package. I think that the idea and implementation of the definetodostyle is very elegant and useful. You are very welcome to send a pull request regarding this change, if possible please include a suggestion for updating the documentation as well.
Regarding the format option, I think it is an interesting suggestion. Back in 2009 I added a textsize / size option to the package and todo command respectively. I remember that it was quite difficult to make it work as intended. I would love to see a suggestion for an implementation! Then we can discuss if it needs to be modified.
With respect to the naming the formatting options, I would suggest to use the following two |
Sent pull request for the first idea (user defined styles) |
Also for the flexible formatting |
I had some ideas on how implementing the idea to mark accomplished todos (1.7.3 in the manual).
The first idea is to provide a way to define todo styles which can be activated using a key. This can easily be accomplished using:
E.g., then you can say
and the note will be greyed out. Or
would simply suppress them. It can also be used as an alternative to defining new commands as suggested in 1.8.14.
A problem is that
setkeys
always sets the keys given by\presetkeys
so ifdone
is used after any other keys, it will overwrite them. So\todo[done,inline]{Stuff}
will work but\todo[inline,done]{Stuff}
wont.This would take care of adding a
done
key that can change anything you can change with keys totodo
. You might want to do something else, e.g., strike out the note or add a checkmark at the end. I'd suggest providing aformat
key that takes a command name as argument, and then use that command to typeset the text in the note and/or the list of todos. E.g.,would strike out the text (with the
ulem
package), or you could do sayto add a checkmark at the end. Combine with the above
to make
\todo[done]{Stuff}
do the same.I'm not sure if you'd prefer this to happen both in the LoT and the actual note, just the note, or have two different hooks (
noteformat
,lotformat
).Would be happy to implement, test, document, and send a pull request if interested.
The text was updated successfully, but these errors were encountered: