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

An option to flatten the file structure. #37

Open
suvojit-0x55aa opened this issue Jan 29, 2021 · 4 comments
Open

An option to flatten the file structure. #37

suvojit-0x55aa opened this issue Jan 29, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@suvojit-0x55aa
Copy link

Although this was made to make text repos compatible with arxiv submission, I think an option to flatten the sub directories will also extend this toll to be useable in submission to other platforms.

Description of the feature:
\includegraphics{activation/Activations.pdf}
these file include lines can be shortened to
\includegraphics{activation_Activations.pdf}

and the activation/Activations.pdf copied to same directory as the tex file.

@jponttuset jponttuset added the enhancement New feature or request label Feb 15, 2021
@jponttuset
Copy link
Collaborator

Hi @suvojit-0x55aa,
This would definitely be useful, marking it as enhancement to see if someone would be willing to create a PR.
Thanks!

@tvercaut
Copy link

This would also be a helpful workaround for #26

@AndreaMarchetti1996
Copy link

It would really be useful. I have a Data folder With Pictures where I make a lot of tests and is very disorganised. I keep the latex project in a different folder. It would be nice to have this latex code automatically make a local copy only of the pictures that are really called inside the '.tex' documents

@jorsn
Copy link

jorsn commented Jan 4, 2024

It should be sufficient to copy all relevant files to the root dir of the archive, discarding any directory structure, if the user does not include any file into the TeX document by path but rather uses TEXINPUTS/\input@path/\graphicspath/BIBINPUTS etc.
The unmodified TeX file in the archive should still compile normally, since the root dir is included in all search paths (TEXINPUTS, BIBINPUTS, graphicspath, etc.).

Problems:

  1. Of course one can do stuff in TeX that breaks this, as one can break anything using TeX.
  2. This does not prefix file names. For this to work, the script would always need to change the TeX file (or one programs the prefixing in TeX).

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

5 participants