Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--flatten does not handle import package commands (\import, \subimport, etc) #172

Closed
jasonmccsmith opened this issue May 26, 2019 · 3 comments

Comments

@jasonmccsmith
Copy link

This one is beyond my capacity to figure out, bumping it up to the issues list.

I've recently encountered a need to use the import package (https://ctan.org/pkg/import) to handle some complicated document structures. Specifically, I am using the \subimport command:

\subimport{relative_directory}{file}

This sets subsequent uses of \input, \include, etc within file to be calibrated to the directory indicated.

flatten would be the proper place for this, but my perl fu is not up to the task. Happy to help test.

@jasonmccsmith
Copy link
Author

As a followup: I first considered handling this in an external script ala issue #165 / #167 , but latexdiff's native flatten needs to know about the updated relative directories, this probably needs to be handled within flatten.

@jasonmccsmith
Copy link
Author

Pull request for fix. Perl fu leveled up.

@ftilmann
Copy link
Owner

Pull request was merged - I close this issue but note 'homework' in my comments to PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants