-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Inputting the preamble and the documentclass #1612
Comments
You are right, the magic comment seems broken. Besides that, do you think it is more common to have the Anyway, we should somehow make it clear in the UI that when certain inspections don't work as expected, a magic comment might solve it (because now that's relatively hard to find out that that could solve it). |
Yes, I think this way is more common. I would never input the Yeah, this does not sound easy to implement. Maybe it could start with a hint that you could use the Moreover, I do not know how I would use the magic comment in my specific situation. I cannot use it in the |
Just to give you our reasoning behind using the When it comes to the structure of a source file, we try to follow the structure as given in The LaTeX Companion (Second Edition). This means that the
However, you can specify the That being said, when not following these conventions your file will compile just fine, and it should definitely not cause the errors/warnings it currently does. It should probably be an inspection (which you can turn off) complaining that your |
Ok, that makes sense! Thanks for explaining. |
Hey,
I have a question regarding the
\input
and\documentclass
commands. My use case is that I have apreamble.tex
file which contains all\usepackage
commands and the\documentclass
and several other files which input thispreamble.tex
. Each of these files is a separate root document.Here is a minimal example:
preamble.tex
:other_file.tex
:In this example, TeXiFy tells me that the amsmath package is required to use the align environment, although
\usepackage{amsmath}
is specified in thepreamble.tex
and it compiles with no errors.The only way I have seen to make this setup work with TeXiFy is to remove the
\documentclass
command in thepreamble.tex
file and move it to each of the other files, in this example toother_file.tex
. Is there a way to use a setup like this without having to move the\documentclass
command to each of the files?I tried to make use of the magic
%! root
command as well but with no success.I'm using
The text was updated successfully, but these errors were encountered: