I have inside a verbatim environment, a description of some document. It is all verbatim. So TeXStudio should ignore everything inside it. For some reason, it is reading what is inside the verbatim, and sees \section in there, and it is showing this in the structure of the document itself. Which makes navigation very hard.
It is supposed to ignore this, since I made sure to add this environment in the Configure->Custom Highlighting
and told it it is of type verbatim
. Yet, it seems to make no difference. Here is MWE
\documentclass[11pt]{scrartcl}
\usepackage{fancybox,fancyvrb}
\DefineVerbatimEnvironment{verbatimwrite}{Verbatim}{}
\begin{document}
\section{real section that should show in structure}
\begin{verbatimwrite}
\documentclass[12pt,notitlepage]{article}
\section{this should NOT show up in structure}
example of a document
\subsection{This should also NOT show up}
\end{document}
\end{verbatimwrite}
\end{document}
The strange thing is that it does color the verbatim environment in green, which tells me it knows it is not the same as the main document, but it shows those verbatim section in the structure. Here is screen shot
And here is screen shot showing that verbatimwrite
is added to custom highlighting as verbatim
The strange thing, if I change the environment name verbatim
, now it works
Is the custom highlighting broke in TexStudio? I am using latest and greatest.
On windows 7, 64 bit.
Is there something else I can try to fix this? It is impossible to navigate the document like this, as it is large and I have many such environments there and they show up in the structure making it hard to know where one is.
Update, I assumed that all one had to do is tell texstudio that the env is verbatim
type in the custome hightliting. Here is a link
verbatimwrite
is not a standard LaTeX environment. Where is it defined?aux
file contents. If the latter is true, then how the environment is defined has everything to do with what ends up in the aux file.verbatim
in the custom, it should ignore it and not show it in the document structure. I doubt that texstudio does more than this.