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.

I guess specifically it would help to know where the texmf path is. I make extensive use of a particular class and need to add it to MiKTeX portable. Can someone point me in the right direction? I saw the post about adding a custom .sty file; do I need to do something comparable?

share|improve this question
1  
Welcome to TeX-SX! You may have a look at our starter page for a quick intro if you wish to familiarize yourself with our format. –  Claudio Fiandrino May 6 '13 at 18:22
1  
Welcome to TeX.sx! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. –  Kurt May 6 '13 at 18:26

2 Answers 2

You should never manipulate the standard texmf tree of portable MiKTeX. Create and use instead a local TeXMF tree.

Let drive f: be the drive with your portable MiKTeX. Now create a new directory like f:\local-texmf. Now you can create inside it new folders depending on what you want to use. Let's say you want to use a class miracle. Then create the folder f:\local-texmf\tex\latex\miracle and include there the sty or cls file.

Now open the settings of portable MiKTeX and add your local-texmf tree with a right-click in the taskbar on the MiKTeX symbol, choose "MiKTeX-Options", click on "Roots" and add there your local-texfm tree. Don't forget to update your FNDB ... .

share|improve this answer
    
When you say to open the setting of portal MiKTeX and add the local tree, do you mean under the "Paths for TeX and related programs" after going to Edit-> Preferences-> Typesetting? I did this and I am having no luck. –  Paul Elfish May 6 '13 at 18:44
    
Or do you mean MiKTeX options from the taskbar panel? –  Paul Elfish May 6 '13 at 18:52
    
@5space sorry, was offline. Right-click in the taskbar on the MiKTeX symbol, choose MiKTeX-Options, click on Roots and add there your local texfm tree. Don't forget to update your FNDB ... –  Kurt May 6 '13 at 19:32
    
Kurt, additional simply link to Create a local texmf tree in MiKTeX. (Without re-reading: Perhaps also to How can I manually install a package on MiKTeX (Windows).) –  Speravir May 6 '13 at 20:28
up vote 3 down vote accepted

When I tried the advice of Kurt, I kept getting an error stating a non-TDS compliant root when trying to add my local texmf tree. These are the steps that I had to work through to get it working:

  1. Create the root directory: Say f: is the drive with portable MiKTeX. Create f:\Local TeX Files

  2. Create the subdirectory: f:\Local Tex Files\tex\latex\misc and copy your *.sty and *.cls files here.

  3. Register the root directory: Go to MiKTeX options, click on Roots, and add the root directory containing the subdirectory.

  4. Update FNDB: Go to MiKTeX options and click Refresh FNDB.

This should have you up and running.

share|improve this answer
    
FYI: I followed the advice of this page docs.miktex.org/faq/maintenance.html –  Paul Elfish Jun 5 '13 at 18:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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