The output (web left, PDF right) looks like this, as expected.
I move the sty file to the directory above (say because I want to use the same sty with multiple files in different subdirectories) and change the LaTeX to this:
Then no error is given but the output is like this.
That is, pdflatex is happy but in the web version the sty has been quietly ignored.
Out of interest (not my use case) I moved the sty file to a subdirectory at sty/mystyle.sty and this worked fine. So the problem seems to be with moving up the directory structure.
I make a sty file containing some commands, for example like this:
I put this in a folder with a tex file like this:
The output (web left, PDF right) looks like this, as expected.
I move the sty file to the directory above (say because I want to use the same sty with multiple files in different subdirectories) and change the LaTeX to this:
Then no error is given but the output is like this.
That is, pdflatex is happy but in the web version the sty has been quietly ignored.
Out of interest (not my use case) I moved the sty file to a subdirectory at sty/mystyle.sty and this worked fine. So the problem seems to be with moving up the directory structure.