The problem I have is when I have say note.tex and mystyle.sty containing various shorthand symbols. Both files are in the same directory and everything compile successfully. However, on the line in note.tex that say \usepackage{mystyle}, the editor mark mystyle as "Package not found" which also make auto-completion failed to detect any command in mystyle.sty. Is there a way to fix this? If I change it to \input{mystyle.sty} things seem to be working, but I have to collaberate with others and it isn't always appropriated for me to change that.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem I have is when I have say note.tex and mystyle.sty containing
various shorthand symbols. Both files are in the same directory and
everything compile successfully. However, on the line in note.tex that say
\usepackage{mystyle}, the editor mark mystyle as "Package not found" which
also make auto-completion failed to detect any command in mystyle.sty. Is
there a way to fix this? If I change it to \input{mystyle.sty} things seem
to be working, but I have to collaberate with others and it isn't always
appropriated for me to change that.
Hi. I guess maybe I wasn't clear. If I put the .sty in a place where the packages are supposed to be then that's fine. The problem is when I just put in the the same directory as the main .tex itself, which can be in any random directory. I'm on Windows, so lets say for example they both are in D:\Documents\Note. That's what I mean when I say local. Could you try this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the simple answer is that txs does not scan sty-files when they are placed in the working directory.
txs assumes that sty-files are part of the installation and hence are place in one of the texmf-directories, hence the answer by Thiago
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Let me first say that I'm fairly new to LaTeX.
The problem I have is when I have say note.tex and mystyle.sty containing various shorthand symbols. Both files are in the same directory and everything compile successfully. However, on the line in note.tex that say \usepackage{mystyle}, the editor mark mystyle as "Package not found" which also make auto-completion failed to detect any command in mystyle.sty. Is there a way to fix this? If I change it to \input{mystyle.sty} things seem to be working, but I have to collaberate with others and it isn't always appropriated for me to change that.
Thanks
I saved my personal package in
/usr/local/texlive/texmf-local/tex/latex/local and then when I load it
with \usepackage{} the autocomplete woks fine.
2014-08-31 0:11 GMT-03:00, Rungpana Panyachot hypernova@users.sf.net:
--
Thiago de Melo
Hi. I guess maybe I wasn't clear. If I put the .sty in a place where the packages are supposed to be then that's fine. The problem is when I just put in the the same directory as the main .tex itself, which can be in any random directory. I'm on Windows, so lets say for example they both are in D:\Documents\Note. That's what I mean when I say local. Could you try this?
the simple answer is that txs does not scan sty-files when they are placed in the working directory.
txs assumes that sty-files are part of the installation and hence are place in one of the texmf-directories, hence the answer by Thiago