Document ClassesTrouble finding packages

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
cvp
Posts: 11
Joined: Wed Jul 30, 2008 11:49 pm

Trouble finding packages

Post by cvp »

Hi, I'm very new to LaTeX and have recently had a hell of a workload dumped onto my lap in the form of creating my own stylesheet.
The way I'm going about it at this point is to take the work of previous, similar stylesheets and making the necessary changes. But I'm running into all kinds of minor setbacks that I've wasted a lot of time trying to find answers to.
I may be asking a lot of silly questions like this, but please bear with me because I don't ask until after an excessive amount of Google and forum searching.

Question #1: The stylesheet I'm using as a base uses the titlesec and titletoc packages, which I understand are pretty common but my installation of latex for some reason doesn't include (installed via aptitude in Ubuntu Linux 8.04).
However, I noticed that in my cygwin install on my Windows partition, I have a titlesec directory in /usr/share/texmf/tex/latex/, so I figured I'd just copy everything on over to the same place in my Ubuntu install.
So to be clear, I now have /usr/share/texmf/tex/latex/titlesec/, which includes titlesec.sty and titletoc.sty, among a lot of other files.
The other packages that are actually recognized are in texmf-texlive/tex/latex/ as opposed to texmf/tex/latex/, so I copied the titlesec directory over there as well.
But it still gives me the error: `titletoc.sty' not found. \usepackage

I'm using Kile 2.0.0 in KDE 3.5.9 in Ubuntu Linux 8.04 (Hardy Heron). I've tried restarting the program as well as not using it at all and just running latex and pdflatex, and I get the same errors.

So where exactly am I supposed to put the packages for LaTeX to find them?

Thanks in advance,
-cvp

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Trouble finding packages

Post by Stefan Kottwitz »

Hi cvp,

with Ubuntu Linux 8.04 you can install texlive-latex-extra, it contains titlesec:

Code: Select all

sudo apt-get install texlive-latex-extra
If you just copied it you should refresh the package database:

Code: Select all

sudo texhash
Stefan
LaTeX.org admin
cvp
Posts: 11
Joined: Wed Jul 30, 2008 11:49 pm

Re: Trouble finding packages

Post by cvp »

That did the trick.
Thanks a lot!

-cvp
Post Reply