Skip to content
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

Web version ignores .sty file located above current directory #253

Open
prowlett opened this issue Sep 4, 2024 · 0 comments
Open

Web version ignores .sty file located above current directory #253

prowlett opened this issue Sep 4, 2024 · 0 comments

Comments

@prowlett
Copy link

prowlett commented Sep 4, 2024

I make a sty file containing some commands, for example like this:

\newcommand{\mycommand}{chirun folks}

I put this in a folder with a tex file like this:

\documentclass{article}
\usepackage{mystyle}
\begin{document}
Hello \mycommand.
\end{document}

The output (web left, PDF right) looks like this, as expected.

"Hello chirun folks." both sides

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:

\documentclass{article}
\usepackage{../mystyle}
\begin{document}
Hello \mycommand.
\end{document}

Then no error is given but the output is like this.

Right side says "Hello chirun folks." but left side says "Hello ."

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.

\documentclass{article}
\usepackage{sty/mystyle}
\begin{document}
Hello \mycommand.
\end{document}

"Hello chirun folks." both sides

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant