Menu

#339 Include \todo{} items in TODO list

None
closed
nobody
texmakerx (141)
1
2018-07-17
2012-10-10
hoalistic
No

As far as I understand currently comments beginning with %TODO or %todo will be marked green in the editor and added to the TODO lists in the structure view.

I like to use the todonotes package, which adds the commands \todo{...} and \missingfigure{...}. See http://www.ctan.org/tex-archive/macros/latex/contrib/todonotes/

Is it possible to include these todo notes in the structure view lists as well?

Discussion

  • Anonymous

    Anonymous - 2013-01-02

    Oh yea, I miss that feature, too.

     
  • Charles Brunet

    Charles Brunet - 2014-05-07

    I was missing it too. Here is a patch to make it work.

     
  • Tim Hoffmann

    Tim Hoffmann - 2014-05-11

    Thanks. I've applied the patch (hg 4439 (4350bc95d37a)). However, I did two changes:

    • \todo-style commands are defined via cwl not hard-coded. This applies to adding entries to the todo list. Highlighting via qnfa is still hard-coded.
    • Highlighting stops at the first closing curly brace. This is better than the line end, because \todo{} may be inline and should not highlight trailing text. And the contents of the \todo{} may contain linebreaks, especially if people use hard line breaks. It's still not optimal, because it is not guaranteed that the curly brace is the correct one, but it's as good as one can get with the reg-exp matching.

    In the long run, one might perform the highlighting via the internal highlighter which can find the matching brace. This would also remove the hard-coding of the commands which are highlighted.

     
    • Tim Hoffmann

      Tim Hoffmann - 2016-06-05

      hg 6075 (f08956f3edf3):

      Improved highlighting: highlighting stops at the correct curly brace up to an inner brace nesting level of 2.

       
  • Tim Hoffmann

    Tim Hoffmann - 2014-05-11
    • status: open --> closed
    • Group: -->
    • Priority: 5 --> 1
     
  • Martin

    Martin - 2016-11-12

    Hi,

    I've used Texstudio (dunno which version) on my old desktop, and it listed the \todos.

    Nowadays I'm using it on different machines (don't have access to my old desktop anymore) and even upgraded to version 2.9 and now to 2.11.2 but I don't see the \todo{} listed in the sidebar.

    Is this feature gone? Do I have to manually apply that patch?

    Cheers,
    Martin

     
    • Jan  Sundermeyer

      Jan Sundermeyer - 2016-11-13

      this has been fixed

       
      • Martin

        Martin - 2016-11-16

        In which version? I'm having the latest version for Ubuntu 14.04 and as you can see in the screenshot, the \todo{} is not shown in the structure view while the %todo is.

         
        • Tim Hoffmann

          Tim Hoffmann - 2016-11-17

          In the development branch. See my post below.

           
  • Bernd

    Bernd - 2018-07-16

    Does this work in the current 2.12.10 version on windows? Can i add custom \todo comands i have in my preambel?

     
  • Tim Hoffmann

    Tim Hoffmann - 2018-07-17

    Yes, that should do.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.