I thought to ask if someone knows of a good Latex editor with good side panel that shows the structure of the document.
I have a large document, and many sections and subsections and it is very hard to navigate without a tree like side structure I can use to jump around the document.
I use TexMaker now, which does have this, but the problem is that it gets confused when I add \section
and \chapters
in verbatim
environment (I have many of these, since I use Latex to document things and need to do this in many places).
Hence the structure view/tree becomes very misleading as it is thinking the \chapter
tag inside a verbatim environment is an actual \chapter
that belong to the document.
I also tried kyle editor on Linux. Here is a MWE and a screen shot to explain more the problem
\documentclass[12pt]{article}
\begin{document}
\section{A}
This how to write book style
%----------------
\begin{verbatim}
\documentclass[12pt]{book}
\begin{document}
\chapter{some chapter} %---> This is not a real chapter !
text is here
\end{document}
\end{verbatim}
%----------------
The above was an example.
\section{B}
another section
\end{document}
Here is a screen shot
You can see that the layout/tree structure on the left panel is wrong. It should not have picked the \chapter since that is inside verbatim. But the editor have no way of knowing this I suppose. (but it is a Latex editor, should it not know this?)
I also use Verbatim
environment and not just verbatim
. Same issue ofcourse.
May be there is a way to configure it to tell the editor to ignore everything inside these environments?
Best Answer
TeXstudio is a very good IDE that has this feature, it is also based of TeXmaker so there shouldn't be much of a learning curve.