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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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'.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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 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:
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
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?
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.
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'.
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?
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.
Thank you for the example. This is fixed in hg 4897 (57acf6c6b215). It will be included in the next release.
Thanks a lot for this quick fix.
I tested this behavior in 2.8.9 snapshot. The highlighting is still orange. With the master/text sample postet above. Just for information.
What parts exactly are still orange? Can you please post a screenshot?
Here you are.
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:
#1253Last edit: Tim Hoffmann 2015-02-25
Tim thank you. Your workaround fixes my problem.