btleyden / gslab_python

Python tools for GSLab
MIT License
0 stars 0 forks source link

Enable the use of advanced latex editors #2

Open btleyden opened 3 years ago

btleyden commented 3 years ago

The current latex build requires tex files to use full paths relative to the project root, which is consistent with the rest of the gslab_python system. This makes it difficult, to use more advanced LaTeX editors (e.g., Texpad), which generally work based on the idea that the main tex file is in the root directory.

Two possible solutions:

  1. Figure out how to have the root tex file read config_user.yaml and then specify full paths to every input
  2. Change the latex builder to allow for relative paths in the tex file.

Option 2 seems easiest, although apparently option 1 is possible.

btleyden commented 2 years ago

I've enabled using a tex editor via this commit. There's still a lot of work that needs to be done to clean up and test those changes, so I'm leaving this open. But for my individual purposes this works fine, and so following up on this will remain a low priority.