LaTeX forum ⇒ TeXworksTeXworks won't remember where .stys are... Topic is solved

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

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

Postby Durden » Tue Aug 07, 2012 8:57 pm

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?

Tags:

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

Postby localghost » Tue Aug 07, 2012 9:11 pm

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.
  1. 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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

User avatar
Stefan Kottwitz
Site Admin
Posts: 9434
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Aug 07, 2012 9:14 pm

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
Site admin

Durden
Posts: 3
Joined: Tue Aug 07, 2012 8:35 pm

Postby Durden » Tue Aug 07, 2012 9:58 pm

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: 9434
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Aug 07, 2012 10:06 pm

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
  1. sudo apt-get remove texlive

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

Stefan
Site admin

Durden
Posts: 3
Joined: Tue Aug 07, 2012 8:35 pm

Postby Durden » Tue Aug 07, 2012 11:15 pm

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


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 2 guests