TeXworksTeXworks won't remember where .stys are...

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
Post Reply
Durden
Posts: 3
Joined: Tue Aug 07, 2012 8:35 pm

TeXworks won't remember where .stys are...

Post by Durden »

Hello, I've been using TeXworks for a while, it was running well on my old system (Ubuntu 10.04). Recently, I updated to 12.04, and had to re-install Texlive and all, using the latest DVD, and then updating it via tlmgr.

Then I installed TeXworks, but it won't work correctly. When I try to compile a .tex, the console spits:
(...)
(/usr/share/texmf-texlive/tex/latex/booktabs/booktabs.sty)
(/usr/share/texmf-texlive/tex/latex/tools/array.sty)

! LaTeX Error: File `paralist.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
But paralist.sty actually exists already, at /usr/local/texlive/2012/texmf-dist/tex/latex/paralist/paralist.sty

So I enter this file name, but then TeXworks asks for the next one, and another one, and so one. All files that exist. Once all are entered, the document is compiled just fine.

That wouldn't be that bad if TeXworks was remembering the files' locations once I pointed it at them, but it doesn't. Next time I'm trying to compile, it asks for the same files again.

So my question basically is: what went wrong during the installation? how can I avoid these error messages?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

TeXworks won't remember where .stys are...

Post by localghost »

Seems that something has gone wrong during the installation process. To check whether the package is found in the TeX installation tree, use the capabilities of KPathSea library on the command line.

Code: Select all

kpsewhich paralist.sty
If this returns no output, do a texhash as root user and try again.

By the way, the current version of the enumitem package also provides in-line lists and in general is much more sophisticated.


Best regards and welcome to the board
Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: TeXworks won't remember where .stys are...

Post by Stefan Kottwitz »

Hi Durden,

welcome to the board!

Perhaps you installed two versions of TeX: the one of the Ubuntu repositories, and TeX Live 2012 from the DVD. I would deinstall the Ubuntu TeX version, which is older. Afterwards you could let tlmgr (re)create your TeX symlinks.

Stefan
LaTeX.org admin
Durden
Posts: 3
Joined: Tue Aug 07, 2012 8:35 pm

TeXworks won't remember where .stys are...

Post by Durden »

Thanks for your quick responses, guys!

And yes, you're right, I installed TeXlive twice.

I first used my old DVD of Texlive 2011, but tlmgr wouldn't let me update it. So I downloaded the lastest ISO and re-installed (2012 that time). I didn't bother de-install the old one first. Turns out that was the mistake.

All I did was basically remove /usr/local/texlive/2011. What elso can I do to remove the rest of it.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

TeXworks won't remember where .stys are...

Post by Stefan Kottwitz »

Three times, it seems. ;-) Besides TL 2011 earlier, and now TL 2012, there's /usr/share/texmf-texlive/. Removing /usr/local/texlive/2011 is ok. Removing symlinks would have been good, but they can be overwritten.

Check your Ubuntu software manager for texlive and remove it. Or I would do at the command line

Code: Select all

sudo apt-get remove texlive
or similar (texlive-full, ...). It should only affect the Ubuntu version.

Stefan
LaTeX.org admin
Durden
Posts: 3
Joined: Tue Aug 07, 2012 8:35 pm

Re: TeXworks won't remember where .stys are...

Post by Durden »

It worked! I had to re-install TeXworks first, but it works just great. Problem solved. Thank you, guys, thank you very much.
Post Reply