Closed ShiqiYang2022 closed 1 year ago
Update: Per conversation with @ShiqiYang2022, I have found a new conflict arising from the Mac M2
chip on my local machine which prevents compile here. Even the standard template
is no longer compiling on my local machine (though it did previously) which suggests something was updated in the conda
environment which is no longer supported by Apple Silicon.
A new issue will be opened to address this; in the meantime @jc-cisneros will take over testing here.
@snairdesai Thanks for testing! I have requested @jc-cisneros to test this on his Macbook with intel chip.
While in the meantime I will open a new issue to address the inconsistency between different chips. Thanks for the great catch!
@ShiqiYang2022 if I try to re-run the .tex
compile, I get this error:
*********************************************************
* Error with `run_latex`. Traceback can be found below. *
*********************************************************
Traceback (most recent call last):
File "/Users/jccp/Desktop/template/paper_slides/../lib/gslab_make/gslab_make/run_program.py", line 283, in run_latex
os.mkdir('latex_auxiliary_dir')
FileExistsError: [Errno 17] File exists: 'latex_auxiliary_dir'
Perhaps you could add a check that if this directory exists, then continue.
Confirming everything works as expected @ShiqiYang2022! Per our conversation, if the paper_slides
module fails, the temporary directory will not be cleared and we will not be able to re-run the module until we erase it. Confirming this is intentional because that would provide us with intermediate output that we can use to fix any error.
@jc-cisneros Thanks! This is because in your previous run, you did not populate the updated the gslab_make
, and it got stuck since it cannot correctly refer the nested .tex
file. When you manually killed the terminal, the session ended and latex_auxiliary_dir
remained with intermediate output.
Per our conversation you did not delete this folder when you re-run .tex
. And this latex_auxiliary_dir
has the necessity for its existence, because it can help us check the intermediate outputs. I think all good here!
The follow-up issue of https://github.com/gentzkow/template/pull/88#issuecomment-1769301802 is opened in #89.
@jc-cisneros Given the problem described in https://github.com/gentzkow/template/pull/88#issuecomment-1769301802 is addressed in #89 #90, maybe it's a good time to give it another review, thanks!
@gentzkow
We shifted template
compile from .lyx
to .tex
in this PR and #86, and I am closing this PR and merging back.
Per #84(Comment), we want to compare .tex
compile locally vs Overleaf and manage the difference properly. The difference can be properly managed by specifying the version of TexLive
distribution consistent with that used in Overleaf, and (if co-author use other .tex
distributions) use the packages that only are part of the standard TeX distribution. For details, please see https://github.com/gentzkow/template/issues/86#issuecomment-1768660960.
Great. Thanks!
Can we
Make sure we add a /lyx/
directory to /extensions/
that has the Lyx version of paper_slides
.
Make sure our instructions for Overleaf include the note about how to make sure it's consistent w/ local compile.
@gentzkow Thanks! Replies to this https://github.com/gentzkow/template/pull/88#issuecomment-1777498066:
.lyx
, following the instructions of the ReadMe file.
Closes #86 .
This PR aim to review the reformat of template compile in #86. The purpose of this issue is described in https://github.com/gentzkow/template/issues/86#issue-1886725615. For this PR, I suggest the following steps:
gslab_make
in https://github.com/gslab-econ/gslab_make/issues/64 intotemplate/lib
..tex
compile..lyx
, please refer to the ReadMe file here..lyx
and.tex
compile; (2) local.tex
compile and Overleaf compile.Per conversation, @snairdesai has bandwidth to conduct the review. @snairdesai please flag any error or anything that might not be clear in any of the steps.
cc: @gentzkow @jc-cisneros