-
-
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
Package dependencies in style file included by class file not recognized #1053
Comments
Can you provide a minimal working example which shows the problem? Because this works for me:
\documentclass{article}
\usepackage{mystyle}
\begin{document}
\begin{align*}
\pi
\end{align*}
\end{document}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{PACKAGE_NAME}[2019/10/30 malte's Package]
\RequirePackage{amsmath} |
I believe there to be similar but different problems: 1. include in custom class file: main.tex:
class.cls:
style.sty:
For the LaTeX build process this works fine, but in the editor the align environment is marked in red with the remark "Environment requires amsmath package". |
2. include in custom style file: main.tex:
style.sty:
As you state this works fine, but only if the custom style file is in the project directory! If the custom style file "style.sty" is in a different directory in the TEXINPUTS path, the nested include is not recognised. Best regards, |
|
ad 2: It is similar. Packages from ctan installed by MikTex, TexLive,... are in a system directory. The paths in TEXINPUTS only contain additional directories and in many cases only a very limited number of style files. |
Good point, had not realised that. Will think about it, if it's easy to add. |
Hello,
in my LaTeX project I am including my own style-files in which all required style-files (e.q. amsmath) are included. For the LaTeX build process this works fine, but in the editor the align environment is marked in red with the remark "Environment requires amsmath package".
This problem appears for packages included in other style-files (nested) or included in the class declaration.
Best regards,
Malte
The text was updated successfully, but these errors were encountered: