Menu

#749 wrong structure-view when using include/input command

None
closed
nobody
5*
2017-09-13
2014-07-22
Thomas
No

Hello,

making figures in tikz, especially in big documents it is useful to place them in subdocuments. Thus either include or input commands are used within i.e. the figure environment. Both of them cause the problem in the structure view described below.

Here is a mimimum example to reproduce this issue:
\section{SECTION}
\subsection{SUBSECTION-A}
\begin{figure}
\input{figure.tiz}
\include{figure.tiz}
\end{figure}
\subsection{SUBSECTION-B}

In the structure view this results in:
SECTION
-> SUBSECTION-A
figure.tiz (placed at chapter level, collapsing SECTION this keeps visible)
figure.tiz (placed at chapter level, collapsing SECTION this keeps visible)
SUBSECTION-B (placed at chapter level, collapsing SECTION this keeps visible)

instead of:
SECTION
-> SUBSECTION-A
--> figure.tiz
--> figure.tiz
-> SUBSECTION-B

If there are more i.e. subsections after the figure with nested a include command, the hierarchical structure is crunched.

I make tikz-figures in TikzEdt. Consequentially the content of these files are encapsulated within a tikzpicture-environment. This should be covered as well.

Keep up the good work!
Thomas

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2014-07-22

    this is an advanced options.

    activate advanced option:

    option/advanced editor/Structure panel: Keep indentation of includes ...

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2014-07-22
    • status: open --> closed
    • Group: -->
     
  • Elmar Zander

    Elmar Zander - 2017-02-28

    Shouldn't this be the default? Or are there good reasons this option is unchecked initially?

     

Anonymous
Anonymous

Add attachments
Cancel