[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
support for catchfilebetweentags
From: |
Uwe Brauer |
Subject: |
support for catchfilebetweentags |
Date: |
Tue, 16 Aug 2022 13:59:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Hi
Since quite some time I have changed from include to subfiles, and use
input only very occasionally mostly because it does not offer the
possibility only to include parts of a certain file.
Just now I learned about catchfilebetweentags which offers this feature.
So, if you want run a spell checker or some other type of test it is
clearly more convenient to do this for one file and not for a dozen.
Here is the workflow: you have two files, for example
1) main.tex
2) external-fixme.tex
You insert a bit of text by
\ExecuteMetaData[external-fixmes.tex]{2}
Or (I am using here todonotes, where this approach is very useful)
\todo{\ExecuteMetaData[external-fixmes.tex]{1}}
{1} denotes the tag and [external-fixmes.tex] the external file, obviously.
This file then has the following structure
%<*1>
First fixme:
\begin{equation*}
\int f dx
\end{equation*}
%</1>
%<*2>
Second fixme:
%</2>
I attach both files for convenience.
Now the question is how could auctex support this package. I think
1) to support the generation of a tag skeleton (unfortunately one
cannot use simply an environment since there is no begin and end).
It would be great if a tag could be inserted automatically but again
it is not a simple latex label.
2) to support the insertion of
\ExecuteMetaData[external-fixmes.tex]{2}, in similar way reftex
supports the insertion labels of an external document via the
externaldocument package
Anybody has an idea how to achieve that?
regards
Uwe Brauer
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
external-fixmes.tex
Description: Text Data
todo-catch.tex
Description: Text Data
smime.p7s
Description: S/MIME cryptographic signature
- support for catchfilebetweentags,
Uwe Brauer <=