-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improve LaTeX builder #42
Comments
@jmshapir, in reply to this comment, here are some experiments using SCons' own PDF builder and our LaTeX builder:
My thought is that since we seem to have found a working sequence of CLI commands which we call from Python, we'd be able to embed that sequence in the builder and have a working version that can deal with bibliographies and cross-references. |
Thanks @veli-m-andirin! This:
sounds right to me. Tagging @mcaceresb in case he disagrees. |
(And unless we hear otherwise from @mcaceresb, @veli-m-andirin I think you should feel free to try to implement when time permits.) |
@veli-m-andirin Can you point me to the workaround? I've fiddled with this quite a bit in the past for EventStudy so I'd be keen to see what workflow is working here. Thanks! |
Thanks @jmshapir @mcaceresb!
|
Thanks @veli-m-andirin! (And @mcaceresb if you prefer to get a direct look at |
|
@jmshapir, I just wrapped up my first pass at the improved latex builder (!!!!!!!!) but need write access to share my results. |
In 402c380 I produced my first pass at the improved latex builder. I appreciate everyone's patience on this. Changes were made in branch The previous latex builder actually wasn't too far off, and after adjusting some fields in the latex file I could produce a pdf from a latex file that included external tables and graphs, footnotes, and a handwritten reference section. The main changes here were to make sure that the files referenced within the latex file were referenced from root of the directory. For example, instead of calling a table with However, with the previous version of the builder, we could not use a .bib file to produce a bibliography. The updated builder uses the following sequence to compile the latex files:
If you go to the Looking forward to iterating on next versions. |
Thanks @rcalvo12 and nice work! I was able to compile the issue folder successfully on my first try. :-) A few things:
From my standpoint, once we've done those things, you can open a pull request with @veli-m-andirin @jmshapir as reviewers. (At that point we can also see if @mcaceresb wants to review.) |
@jmshapir I moved Template.tex and References.bib to /source/paper and I have revised Template.lyx to use BibTeX for references. I also modified sconscript files so that outputs for both Template.tex and Template.lyx are sent to /output/paper when scons is run at the root of the directory. As far as updating |
@rcalvo12 thanks! If the existing unit tests for |
@jmshapir Checking it against some of the other builders, and keeping in mind the changes that were made, I think we should probably be fine with the current test. I can flag this as a point for review in the PR though since, again I might be missing something. With that in mind, do you think we're ready for a PR on this? |
@rcalvo12 sounds good and yes! |
Thread continues in PR #56. |
* #42 Full run of repo with improved latex builder * #42 Tweak to builder to allow for different target and source name * #42 Moves Template and References to source/paper/ * #42 Revise Template.lyx to use bib references * #56 #42 Drop issue folder from Scons * #56 #42 Add bib log files to gitignore * #56 #42 Rename plot.m to makeplot.m to avoid error * #56 #42 Ignoring all tex log but not sconscript.log * #56 #42 Adding .bib file to scons * #56 #42 Removing old sconscript file * #56 #42 Cleaning add_bib_name() * #56 #42 Only calls bibtex when bibliography is used * #42 Added example where 2 runs fail * #56 #42 Cleaning check_bib() moving checks to do_call() * #56 #42 Reversing (target, source) to match * #56 #42 Adding in cleanup function for .aux .bbl * #56 #42 Cleaner version of cleanup function * #56 #42 Adding other file types to cleanup * #56 #42 Adding ability to change bibtex executable * #56 #42 Cleaning up before compiling * #56 #42 Update tests for multiple calls * #42 Added out name before trying to execute call * #56 #42 Empty bib side effect and small edit * #56 #42 Adding basic regex and connect to side effect * #56 #42 Correcting regex * #56 #42 Fixing how we switch to bib side_effect * #56 #42 Adding test tex files * #42 Added mock bibtex test; modified standard test to take nsyscalls * #42 Adding Latex to SConstruct, test running * #42 Removing issue sub * #42 Removing files we don't want to track * #42 Gitignoring pdfs in output/paper * #42 Removing outputs and rerunning, removing pdfs, changing where pdfs ignored * #42 Removing extra file Co-authored-by: Mauricio Caceres <mauricio.caceres.bravo@gmail.com> Co-authored-by: jmshapir <jesse.m.shapiro@gmail.com>
Summary: In this issue we fixed our LaTeX builder so that we can now use scons to convert LaTeX files to PDF, including LaTeX files with corresponding bibtex files for references. Paper's are compiled in the following way under the surface:
We also added testing for the LaTeX builder and the bibtex functionality. Final state of issue branch here. |
In this issue we aim to have a working LaTeX builder that can also handle bibliographies and cross-references.
The text was updated successfully, but these errors were encountered: