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

Can the package fuse different latex files into one ? #65

Open
MohamedAliRashad opened this issue May 8, 2022 · 4 comments
Open

Can the package fuse different latex files into one ? #65

MohamedAliRashad opened this issue May 8, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@MohamedAliRashad
Copy link

I was looking for a tool that can clean different latex files and merge them into one big tex file while remove necessaries.
Is this what happens here ?

@jponttuset jponttuset added the enhancement New feature or request label May 20, 2022
@jponttuset
Copy link
Collaborator

Hi @MohamedAliRashad,
At the moment, this functionality is not implemented, but happy to incorporate a PR.
Best,

@MohamedAliRashad
Copy link
Author

@jponttuset
I actually have no idea how something like this could be done ... based on my research it's a task hard said than done.

@JeremieMelo
Copy link

Just use latexpand main.tex > merged_main.tex

@sharmaeklavya2
Copy link

Before I knew about the existence of arxiv-latex-cleaner, I wrote my own python script to do this: https://github.com/sharmaeklavya2/tex-flatten. The basic idea is that you read main.tex, and recursively replace all occurrences of \input{X} by the contents of X. You just need to be careful about not considering \input commands that are inside comments. You can copy code from my repository if you want.

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

No branches or pull requests

4 participants