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
Settings #3
Comments
I also lean towards a Settings:
|
Well, if two of us agree that the per-directory approach is the right one, that's good enough for me. I'm not so sure about settings automatically propagating to subdirectories. In addition to being more work, it's not entirely clear to me about how we should handle relative paths and working directories in that case. If you have a setup with multiple levels of directories, maybe it'd be better to use make, latexmk, or rubber. Light Table actually has two different evaluation commands, Ctrl-Enter and Ctrl-Shift-Enter by default. We could allow separate compilation commands for each, so one could do just the tex file you're editing, while the other does a whole project. |
In my experience, if you have a project with multiple tex files (and a master document), it doesn't make sense to compile the sub-documents. They won't be legal latex anyway, because they just get |
There are two sets of settings, "file", hooked up to eval.one, and "project", hooked up to eval. This required a significant rewriring of the eval process; notably, saving no longer triggers an eval by itself (since we don't know which to use). Settings are stored in ~/.config/litexrc and in .litexrc in each directory. One of these settings is the PDF file produced, so it's no longer so obvious which to use for forward syncing. After compilation, we store the file name in the editor and use that. Before any compilations, we use the filename from either the "file" or the "project" settings, if it exists; otherwise, we bail out. Ref #3.
@bilderbuchi: You may be interested in the docmute package, which lets you include full documents in a master document. |
Ah, didn't know that package. I don't really know why I would do that, though (e.g. for chapters of a book in separate files it makes no sense). I'm sure someone finds/found it useful, though. :-) |
Right now, the compilation process is hard-coded into LiTeX. Things are set up to allow running an arbitrary set of commands, with arguments based on the input file name, but there's no way for the user to access this.
We should allow both global and local settings. The global settings can probably be set in the user's behavior file, but I'm not so sure where to set the local ones. They could be in
.litexrc
or similar. These settings would automatically apply to all tex files in (and under?) that directory. This would be easiest to set up and use, I suspect.I'm leaning towards the first right now, since it's the easiest and still rather powerful.
The settings should include:
pdflatex
), several (latex
,dvips
,ps2pdf
), or triggering a build system (make
).input.pdf
.The case I'm worried about is when you have several tex files in the same directory. Each can be compiled separately, but you also have a main one that gathers them altogether into one. There are other auxiliary files that can't be compiled alone, so when they should trigger a build of the full thing. How do we make it just work, no matter which file is open?
The text was updated successfully, but these errors were encountered: