4

I want to make include of labled part of file. I need something like catchfilebetweentags but with the support of multiple usage of the same lable. Catchfilebetweentags include just the first occurrence of lable.

Example:

File1.tex

    ...
    %<*tag>
    Some text I need
    %</tag>
    Some text I don't need
    %<*tag>
    Another text I need
    %</tag>
    ...

File2.tex

    ...
    \ExecuteMetaData [File1.tex]{tag}
    ...

This code produces:

    Some text I need

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.