Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
How can I manually install a package on MiKTeX (Windows)

I am writing this because I need a more efficient way to use the acmsmall class. The problem is when I add the .cls and .bst files within my folder everything works just fine, but when I remove them from the folder the message acmsmall.cls not found appears.

Is there a way to add the class into my MiKTeX or TeXnicCenter?

share|improve this question

marked as duplicate by Joseph Wright Jul 7 '12 at 22:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
Put them in a folder in C:\Program Files\MikTex <versionnumber>\tex\latex\<youchoosename> and then run Refresh FNDB from MikTeX package manager (admin) –  cmhughes May 9 '12 at 13:32
    
@cmhughes : for <youchoosename> any name or the class name? I'm new to this. –  Amait May 10 '12 at 20:02
1  
from MiKTeX's point of view it doesn't matter- it would perhaps make sense from your point of view to use the class name for future reference :) –  cmhughes May 10 '12 at 20:03
3  
This looks very much like tex.stackexchange.com/questions/2063/… to me –  Joseph Wright Jun 3 '12 at 8:15
1  
@Speravir What I was getting at is that there is a general 'install a package manually with MiKTeX' answer. You'll see there that I've asked Stefan to update the answer to avoid installing in the MiKTeX-managed tree, and to recommend instead a 'local' folder. –  Joseph Wright Jun 4 '12 at 7:41

1 Answer 1

up vote 1 down vote accepted

Update

Meanwhile there are for all, what was written below, own, more elaborate answers:


Original answer

First: It has nothing to do with TeXnicCenter, the TeX editor is not involved in such problems.

As I already wrote in my comment, every manually installed package and also configuration files should always go into a local TeXMF directory, because otherwise on an update all data will safely be lost!

In an Texlive installation there exists by default at least one local directory: texmf-local. But in MiKTeX you have to create your own folder first (all the following for a one-user-installation):

  1. Create somewhere on your computer a folder – with an important exception. It must not be a subfolder of your MiKTeX installation (it worked this way in older MiKTeX versions, but was changed for security reasons). I will use here c:\localtexmf.

    This folder must be TDS compliant (for that see A Directory Structure for TeX Files); MiKTeX will complain, if not. At least a tex\latex subtree should be sufficient. But in your case we need more: The ZIP files provided by ACM are not at all in a TDS compatible strucure. So we have to do it ourselves, we will mimic the structure of the (itself TDS compliant) MiKTEX tree.

  2. All files will be put in several subfolders, that should get a meaningful name, as cmhughes already pointed out. I would suggest acmclasses (BTW in a full MiKTeX installation there is already a class acmconf, that does not seem to be official.)

    • All BST files go into c:\localtexmf\bibtex\bst\acmclasses.
    • The CLS files (which are the class defining ones) go to c:\localtexmf\tex\latex\acmclasses.
    • algorithm2e.sty is not needed, you should not extract it! The package algorithm2e is part of MiKTeX distribution and can therefore be installed and updated with MiKTeX’ own tools, see How do I update my TeX distribution – MiKTeX GUI or, if you prefer that, How do I update my TeX distribution – MiKTeX from the Command line.
    • All other files are documentation and example files, and go to c:\localtexmf\doc\latex\acmclasses\. The readme.txt files should of course be renamed first, e.g. to acm-<large/small/tog>-readme.txt, the guide.pdf of acm-tog should also get a unique name. All example files could go into an additional subfolder c:\localtexmf\doc\latex\acmclasses\examples as well.
    • In general: Other manual installations nedd to install fonts or scripts. Then they have to be installed into the localtexmf equivalent under fonts\… or scripts\….
  3. In the Start Menu go to the MiKTeX entry and open the settings. The “MiKTeX Options” window will open.

  4. Go there to the “Roots” tab. Click on “Add” and choose c:\localtexmf\. If there are more than one local directory, one can choose the search order with the “Up” and “Down” buttons.

  5. Now the almost most important part: Go to the “General” tab and click there on “Refresh FNDB” (FNDB = File Name Data Base). In some cases, especially if new fonts are installed, one has also to press the “Update Formats” button.

    If you’d forget this step, all earlier steps would be done to no purpose.

(I’ve already described it for MiKTEX-portable: Using MikTex Portable, TexMaker, and Asymptote from a USB drive.)

share|improve this answer
    
@cmhughes answered me in his first comment. –  Amait Jun 9 '12 at 8:27
    
@Amait: But in my comment and my answer I gave the hint, that it is a very bad idea to do a manual installation directly into the MiKTeX tree! –  Speravir Jun 9 '12 at 22:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.