-
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
Explore whether we can change file path structure for LaTeX files #85
Comments
Per meeting: Should look into solution offered by this stack exchange thread. |
@jmshapir I made some changes to the tex files so that commenting out line 17 on the main file should allow you to compile by clicking the button in the tex editor. Do you think that works? |
@ew487 The solution you implemented worked for me! I was able to compile using scons from the root and then, once I commented out line 17, was able to compile from within the document. |
@rcalvo12 Great! Thank you for checking! |
@ew487 thanks! When trying to compile with line 17 commented out, I hit the error below, though it may be unrelated to the file paths. (Given that @rcalvo12 didn't hit the error I suspect we shouldn't worry about it just now.) In terms of the implementation, is there a reason you prefer to specify a I can see tradeoffs either way so am curious to know how you are thinking about it, thanks.
|
(Also, just confirming that I was able to resolve the |
@jmshapir I didn't use the universal input path because I couldn't get it to work. But I didn't try very hard so I will give it another go and get back to you on the pros and cons! |
@ew487 thanks and sounds good! Of course if you get stuck trying the universal input path, feel free to pause and let me know so we can reconsider whether it's worth investing in that direction. |
@jmshapir I implemented the universal input path in 610000b. I think the main advantage is that the the user does not need to comment out anything to run with scons or compiling manually. I think some disadvantages are that 1) we have to remember not to duplicate file names, 2) if we create a new file, we have to remember to specify its location in two places, and 3) we will be searching folders with ../../ that we have no idea what they look like. |
@ew487 thanks! That solution looks interesting. A couple things:
|
@jmshapir I don't see any meaningful downsides to splitting that way. Regarding the |
@ew487 thanks!
Nice, thanks.
Specifying the extension doesn't seem so costly to me, but I would like to make sure this works with EPS (in addition to PNG).
That makes sense. I see some merit in that alternative but as of now I think I favor the more explicit approach (as of b3dc300) as it narrows the search a bit and so might result in fewer side effects. |
@jmshapir Regarding eps files, it does not work as is, so I can look into that. |
@ew487 understood thanks. If we're not able to get an implementation that works with EPS this way we can always revert to making |
@ew487 I had a few minutes to test this myself and I can confirm that I get an error compiling locally with I'm reluctant to design the template so that Thank you! |
@rcalvo12 thanks! @ew487 given that, let's revert to the plan below from #85 (comment), thanks!
|
@jmshapir It should be reverted now! |
Thread continues in its pull request #86 |
Interim summary: We found an approach we like better so we are going to abandon the branch |
…re for LaTeX files (#87) * #85 Simplification to build_latex.py * #85 Edit paths * #85 Star command * #85 Add if statement * Revert "#85 Simplification to build_latex.py" This reverts commit 802e4f8. * #87 Push of run logs --------- Co-authored-by: Richard Calvo <97416734+rcalvo12@users.noreply.github.com> Co-authored-by: ew487 <emwang@hbs.edu>
Summary: In this issue we developed and tested a solution to allow users to compile |
In LyX we use paths relative to the LyX file:
Template/source/paper/Template.lyx
Line 272 in 380e12f
In LaTeX we use paths relative to the root:
Template/source/paper/Template.tex
Line 53 in 380e12f
The result is that, in a repository configured according to the
Template
, it's harder to compile manually in LaTeX than it is in LyX.Can we investigate whether there is a robust way to modify the builder so that we can use the same path structure in LaTeX that we use in LyX?
Thanks!
The text was updated successfully, but these errors were encountered: