<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>As Philip wrote, it is not a problem of TeXworks but ox *LaTeX binaries. First you should preferably install LaTeX packages by your packaging manager, i.e. apt-get if you have Debian TeX Live packages, or tlmgr if you have TeX Live from TUG. These managers will automatically put the files to the correct places and do all other important actions. It may occasionally happen that you need a file which is not available from the packaging system. In such a case you can:<br><br></div>1. If you intend to use the file with one document only, the best way is to put it to the working directory of your document<br></div>2. If you plan to use it in several documents, put it to a directory under $TEXMFLOCAL/tex/latex and then run mktexlsr. You will find the real location of $TEXMFLOCAL by<br>kpsewhich --var-value TEXMFLOCAL<br><br></div>The most frequent problem of people having TeX Live from TUG is setting of PATH. Linux usually installst its own TeX distribution based on dependencies. Both distributions may then conflict. If you have TeX Live from TUG and want to use it, you _must_ have its binary directory at the _beginning_ of PATH. And this is not the only requirement, it must be set properly. If you run tex from a terminal, the setting is read from ~/.bashrc but if rou invoke tex from a GUI such as TeXworks, the setings is read from ~/.bash_profile (it is not a matter of TeX Live, it is defined this way in UNIX systems). You can make a simple document hello.tex containing:<br><br></div>\documentclass{article}<br></div>\begin{document}<br></div>Hello<br></div>\end{document}<br><br></div>Now run pdflatex hello from the terminal and save the log file. The compile the same file from TeXworks. Compare the location of article.cls in these two log files. If they are different, you have this very problemm, GUI does not use the same PATH as the terminal. I solve the problem by setting everything in ~/.bashrc only and my ~/.bash_profile contains:<br><br>if [ -f ~/.bashrc ]; then<br> . ~/.bashrc<br>fi<br><br></div>Remember, if you change ~/.bashrc, you must reopen the terminal window. If you change ~/.bash_profile, you must logout and login.<br><br></div>Hope this helps.<br><div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div>
<br><div class="gmail_quote">2016-10-21 18:13 GMT+02:00 Philip Taylor <span dir="ltr"><<a href="mailto:P.Taylor@rhul.ac.uk" target="_blank">P.Taylor@rhul.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="m_2861477668990400733moz-cite-prefix">Simone Mosciatti wrote:<br>
</div>
<blockquote type="cite">
Hi Everybody,<br>
<br>
I have this fresh installation of TeXworks, version 0.6.1 from the
apt repos.<br>
<br>
When I try to compile a simple letter examples it complains that
some .sty are not present, stuff like:
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">"booktabs.sty"
or "paralist.sty", fair enough.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I then
proceded installing TexLive that should include pretty much
everything.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Since
TexLive is way too huge, I decide to install everything in a
/media partition.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">(My HD
is divide in two, one part for routine stuff that I use day by
day -> "/" and another part for the movies, pictures or old
backups -> "/media")</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">How do I
tell TeXworks to looks for eveything it is looking for also in
the "/media" partition?</p>
</blockquote>
TeXworks (/qua/ TeXworks) will not complain that files such as
"booktabs.sty" or "paralist.sty" are not present, since TeXworks is
concerned primarily with the location of executable images, not
style files. It will be LaTeX (or one of its successors --
PdfLaTeX, XeLaTeX, LuaLaTeX, ...) that complains about such things.
Therefore since you are using TeX Live, the question would be better
put on the TeX Live list -- <a href="mailto:tex-live@tug.org" target="_blank">tex-live@tug.org</a>
(cc'd).<span class="HOEnZb"><font color="#888888"><br>
<br>
Philip Taylor<br>
</font></span></div>
</blockquote></div><br></div>