I am posting this here so as to get better formatting:

​On Wed, Jan 16, 2019 at 1:32 PM Rob Keeney wrote:


> what makes me uncomfortable is the creation of external files with 
duplicate data.


​That won't happen unless you use clones.  The point of nested @others is 
that nodes are still written only once.  Here is the structure of my test 
outline:

- @clean c:\test\nested_main.tex (contains @others)
  - inner node 1
  - @clean c:\test\nested_sub1.tex
  - @clean c:\test\nested_sub2.tex
  - inner node 2

With the following contents:

% at_file main.tex:
\section{Section level}
main 1
main 2
\input{sub}
@others
main 3
main 4

% inner node 1
inner1 1
inner1 2

% at_clean nested_sub1.tex:
\subsection{Subsection level}
sub1 line 1
sub1 line 2

% at_clean: nested_sub2.tex:
\subsection{Subsection level}
sub2 line 1
sub2 line 2

% inner node 2
inner2 1
inner2 2

The contents of the files are as expected, namely:

*@clean c:\test\nested_main.tex*

% at_file main.tex:

\section{Section level}
main 1
main 2
\input{sub}
% inner node 1
inner1 1
inner1 2

% inner node 2
inner2 1
inner2 2

main 3
main 4

*@clean c:\test\nested_sub1.tex*

% at_clean nested_sub1.tex:
\subsection{Subsection level}
sub1 line 1
sub1 line 2

*@clean c:\test\nested_sub2.tex*

% at_clean: nested_sub2.tex:
\subsection{Subsection level}
sub2 line 1
sub2 line 2

I believe this is what the OP wanted.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to