-
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
Compile project from file in subdirectory #17
Comments
Yes, but it's not particularly optimal. If you edit the .litexrc file This does require you to put a .litexrc file in each of your My first though was to read all the .litexrc files on the path, A simpler approach would be to look to the parent directory only if Perhaps we could make it somewhat more explicit and require a TL;DR: It's possible, but not pretty. If you have suggestions of how |
There does seem to be an issue with synctex in this setup. I think I |
Is there a case of a LaTeX source file, that can be compiled without a documentclass and/or a document environment? Because if not, than this would be a pretty strong indication, if the current file can be directly compiled or not. You'd have 'parse' the code though. Than it would be sound to travel up the source tree, until it a compilable file is found (or respectively a .literc that marks it.) Obviously that would require a standard source tree layout, where the LaTeX file is always above or at the same level of all it's children files. Which is a sensible assumption (for every other file from somerwhere else, that might be imported to other projects to, it has ambiguous parents anyway).
I don't really get what you mean by this. Are you talking about some kind of configuration inheritance from parent directories? Hope it's understandable. Pretty tired right now ;). |
On Mon, Aug 25, 2014 at 4:43 PM, mokasin [email protected]
This is not a bad idea. It wouldn't be a perfect solution, as it is There's a related feature that's already in the code -- if you trigger
I'm going to let this idea stew for a few days. If you come up with |
I'm a bit worried that this could make things confusing for people What do you think about the comment idea? I'm thinking of searching |
Aren't there to different build commands in Lightbox? One for the current file and one for the project? I don't particular like the idea with the comments. Because I don't like editor specific boilerplate in my source code in general. But I suppose, that's a preference. |
Sorry -- I forgot about this bug. Unfortunately, looking over it again, I'm not seeing any great solutions. LightTable does have two build commands, and Litex does let you use both. But despite the fact that I've named them suggestively as "file" and "project", I want them to behave the same, so the user can do whatever they like with them. You might consider using the global litexrc file to specify compilation commands for the subdirectories and then override those with a local .litexrc file in the parent directory. This may not scale when you have multiple projects, though. Or you could make a single rc file for the subdirectories in the parent directory, and then make symlinks to it in each of the child directories. This would take a bit of work to set up, but it'd let you change the compilation settings for all the subdirectories easily. Your best bet, though, is probably using a build system that gives you more power to specify how everything should work. I'll leave the bug open in case anyone has other solutions to propose, but please don't count on that happening. |
I have a project that is composed of a main file and inputed files from subdirectory like this
Is it currently possible to compile main.tex when foo.tex is opened without switching?
It would be nice, if the project evaluation would be aware of files in subdirectories.
The text was updated successfully, but these errors were encountered: