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

handle bibtex #18

Open
Ohjeah opened this issue Dec 16, 2016 · 4 comments
Open

handle bibtex #18

Ohjeah opened this issue Dec 16, 2016 · 4 comments

Comments

@Ohjeah
Copy link
Contributor

Ohjeah commented Dec 16, 2016

latexpand has a subcommand to copy the contents of a .bbl and replace the corresponding bibtex command in your .texfile:

latexpand --expand-bbl merged.bbl merged.tex

If you point me in the right direction I am happy to help with this.

@fchauvel
Copy link
Owner

Thanks for your help.

FLaP (in v0.4.1) should already moves around the .bib files referred by the '\bibliography' directive. From the top of my head, the simplest fix would be the modify the extensions that FLaP searches for in bibliography.py (see lines 37-38). These extensions are ordered by priority.

Note that the source code has diverged from v0.4.1 as I am working on a new version that is not based on regular expressions anymore, but on a LaTeX parser instead.

@Ohjeah
Copy link
Contributor Author

Ohjeah commented Dec 16, 2016

I do not want to move the bib file.

If the bib file is already compiled, I want to replace the \bibliography and \bibliographystyle with the content of the corresponding bbl file.

@fchauvel
Copy link
Owner

In that case, I think we must create a new substitution for \bibliography directives, somehow similar to the FileSubstitution ones that match \input or \include for instance (see files.py, line 25).

Then, we must include this new substitution in the "substitution pipeline" so at it gets triggered appropriately (see factory.py, line 27).

Finally, we must update the command line parsing so at it recognises an option and update the pipeline accordingly (see ui.py line 121).

@Ohjeah
Copy link
Contributor Author

Ohjeah commented Dec 16, 2016

Thank you. I will have a look at this over the weekend.

@Ohjeah Ohjeah mentioned this issue Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants