Menu

Orange highlight in Structure view in v2.8.8

John11
2015-01-22
2015-02-26
  • John11

    John11 - 2015-01-22

    I upgraded from TexStudio v2.8.4 to 2.8.8 and now, for a particular document, I am seeing a few sections highlighted in Orange in the Structure view panel - but I have no idea why, or in what ways(s) these are different from other sections which do not get highlighted. What does the orange highlight signify?

    I have not knowingly changed away from default colour or highlighting settings.

     
    • Jan  Sundermeyer

      Jan Sundermeyer - 2015-01-22

      Orange sections are detected to be after \end{document}
      The detection scheme is probably somewhat fragile with 2.8.8

      Am 22.01.2015 um 16:17 schrieb John11:

      I upgraded from TexStudio v2.8.4 to 2.8.8 and now, for a particular
      document, I am seeing a few sections highlighted in Orange in the
      Structure view panel - but I have no idea why, or in what ways(s) these
      are different from other sections which do not get highlighted. What
      does the orange highlight signify?

      I have not knowingly changed away from default colour or highlighting
      settings.


      Orange highlight in Structure view in v2.8.8
      https://sourceforge.net/p/texstudio/discussion/907839/thread/34b1e8c4/?limit=25#a4ae


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/texstudio/discussion/907839/
      https://sourceforge.net/p/texstudio/discussion/907839

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/
      https://sourceforge.net/auth/subscriptions

       
      • John11

        John11 - 2015-01-23

        Ah, I see thanks.
        This is a large document which uses a number of chapter \include and also at least one \input .

        p.s.
        Where could I have found out about this rather than asking here?

         

        Last edit: John11 2015-01-23
        • Anonymous

          Anonymous - 2015-01-26

          I tried to use a \input with \renewcommand environment but I still have my file completely orange colored.
          This problem only exists in the OS X 2.8.8 version I didn't have this with the 2.8.8 Windows version.

          Is there a quick workaround for OS X?

           
          • Tim Hoffmann

            Tim Hoffmann - 2015-01-26

            I don't think there's a difference in the windows and OSX versions. Do they both have the same hg revision number (you can find it in the about dialog)? If so, its probably some difference in the settings.

             
            • Anonymous

              Anonymous - 2015-01-28

              I tried the versions 2.8.6 and 2.8.4 (both OSX) from the sourceforge archive. Only version 2.8.4 is working properly. 2.8.6 has the same orange 'error'.

               
  • Tim Hoffmann

    Tim Hoffmann - 2015-01-28

    The feature for highlighting elements behind \end{document} was just introduced with TXS 2.8.6. So no wonder TXS 2.8.4 does not have any problems with it.

    Can you please provide a minimal example in which the detection goes wrong?

     
  • Anonymous

    Anonymous - 2015-01-29

    file master.tex

    \documentclass{book}
    \begin{document}
    \input{text}
    \end{document}


    file text.tex

    \chapter{X}
    Y
    \chapter{XX}
    YY
    \section{XXX}
    YYY


    It's still orange, even if I haven't anything behind \end{document}. I also did a cleanup and restarted TXS, file encoding is UTF-8.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-01-29

    Thank you for the example. This is fixed in hg 4897 (57acf6c6b215). It will be included in the next release.

     
  • Anonymous

    Anonymous - 2015-01-30

    Thanks a lot for this quick fix.

     
  • Anonymous

    Anonymous - 2015-02-18

    I tested this behavior in 2.8.9 snapshot. The highlighting is still orange. With the master/text sample postet above. Just for information.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-18

    What parts exactly are still orange? Can you please post a screenshot?

     
  • Anonymous

    Anonymous - 2015-02-18

    Here you are.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-25

    Yes, confirmed. It happens exactly if the main document is loaded after the included document.

    I've created a bug report, so that this does not get lost [bugs:#1253].

    As a workaround, you can use Idefix -> Update Structure. Additionally, the next release will contain an Advanced Editor Option "Mark structure elements beyond \end{document}". So you'll be able to completely switch off that feature.

     

    Related

    Bugs: #1253


    Last edit: Tim Hoffmann 2015-02-25
  • Anonymous

    Anonymous - 2015-02-26

    Tim thank you. Your workaround fixes my problem.

     

Anonymous
Anonymous

Add attachments
Cancel