GeneralTexnicCenter can't find my .cls file

General information and discussion about TeXnicCenter
Post Reply
indigoblind
Posts: 8
Joined: Tue May 10, 2011 6:24 pm

TexnicCenter can't find my .cls file

Post by indigoblind »

Hi. I have another amateurish problem which I think is the result of switching computers recently. I had a file which had to cohere with the LNCS guidelines, and my file begins like this:

Code: Select all

\documentclass[runningheads,a4paper]{llncs}
\usepackage{amssymb}
\usepackage{llncsdoc}
\setcounter{tocdepth}{3}
\usepackage{graphicx}
\usepackage{url
\begin{document}
TexnicCenter is saying that the llncs.cls file is not found. I searched on my computer for where the .cls files should go. (MikTex2.9->tex->latex->ams->classes) I have the llncs.cls file downloaded, so I copy it into that file but still TexnicCenter doesn't find it. Where should I be putting it?

Also, does the amssymb package work anymore? I can't find it in the MikTex package broweser anymore, and TexnicCenter isn't recognising that either. Any help would be appreciated!
Last edited by indigoblind on Sun Jun 12, 2011 11:02 pm, edited 2 times in total.

Recommended reading 2024:

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

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

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

TexnicCenter can't find my .cls file

Post by Stefan Kottwitz »

Hi,

after a manual install you have to update the filename database. Go to MiKTeX Options or Settings, respectively, and click the Button Refresh FNDB. Or run mktexlsr or texhash at the command prompt.

Regarding amssymb.sty: install the amsfonts package using the MiKTeX package manager.

Stefan
LaTeX.org admin
indigoblind
Posts: 8
Joined: Tue May 10, 2011 6:24 pm

Re: TexnicCenter can't find my .cls file

Post by indigoblind »

Thanks Stefan. I've done that but it's still saying the same thing, that it can't find llncs.cls. I have this file downloaded. I just don't know where it's supposed to go on my computer. I read a guide which said this:

"Create a private tex hierarchy. Under your home directory, create a subdirectory "texmf", underneath that directory create another one called "tex". and under this one create a "latex" directory. Thus, you should have a tree of the form

$HOME/texmf/tex/latex/

Place document class files (extension .cls), packages and any other custom style files for use by LaTeX (extensions .sty or .tex) into this directory."

Should I do this? And if so, what is my "home directory"? I can get to the file called MikTex 2.9, which is in Program Files. Beyond that I don't understand what any of the files inside it actually do.
indigoblind
Posts: 8
Joined: Tue May 10, 2011 6:24 pm

Re: TexnicCenter can't find my .cls file

Post by indigoblind »

Hello, can anybody help me with this please?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: TexnicCenter can't find my .cls file

Post by frabjous »

Try following these instructions for creating and integrating a local texmf tree for MikTeX:

http://docs.miktex.org/manual/localadditions.html

If those don't work, just put the .cls file in the same folder as the file you're working on.
indigoblind
Posts: 8
Joined: Tue May 10, 2011 6:24 pm

Re: TexnicCenter can't find my .cls file

Post by indigoblind »

Ah thanks that's got it. I put the .cls file with my tex files and it works fine now. Cheers!
Post Reply