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

Referenced .sty and .bst Files In Subdirectory Are Not Included #57

Open
nmichlo opened this issue Feb 23, 2022 · 2 comments
Open

Referenced .sty and .bst Files In Subdirectory Are Not Included #57

nmichlo opened this issue Feb 23, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@nmichlo
Copy link

nmichlo commented Feb 23, 2022

I have the following directory structure:

main.tex
style/example_pkg.sty
style/example_bib.bst

In my root latex file I reference these files:

\usepackage[pagenumbers]{style/example_pkg}
\bibliographystyle{style/example_bib}

The problem is that after running the latex cleaner these are no longer present in the output directory.

arxiv_latex_cleaner . --verbose

The problematic output directory structure is the following, completely missing the files in /style/*

main.tex

Note that if we instead do not place these files in the subdirectory /style/*, and they are simply contained in the root directory /*, then everything works as expected.

main.tex
example_pkg.sty
example_bib.bst

Note that we also need to update the references in the commands.

\usepackage[pagenumbers]{example_pkg}
\bibliographystyle{example_bib}

The output is now expected

@nmichlo nmichlo changed the title Referenced Bibliography Style and Packages In Subdirectory Are Not Included Referenced .sty and .bst Files In Subdirectory Are Not Included Feb 23, 2022
@nmichlo
Copy link
Author

nmichlo commented Feb 23, 2022

Also references to \bibliography{example_refs} do not seem to be included either, ie. linking to /example_refs.bib. In this case it doesn't even seem to work in the root dir.

@jponttuset
Copy link
Collaborator

Hi @nmichlo,

Regarding *.bib files, in general you don't want them in arXiv, but if you want to keep them, you can modify the --keep_bib parameter.

Regarding files outside the root, indeed, at the moment we only copy referenced *.tex files and figures, the rest of files are removed.

The problem I thought of are file extensions, i.e. bibliographystyle goes with *.sty and *.bst, other types go with other extensions, so I went for deleting them all. Happy to take PRs, marking this as improvement.

@jponttuset jponttuset added the enhancement New feature or request label Mar 2, 2022
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

2 participants