Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with MikTeX: how to add a package w/out a package manager.

1,031 views
Skip to first unread message

porky_...@my-deja.com

unread,
Dec 14, 2011, 8:59:19 PM12/14/11
to
I've been using MikTeX for many years and - well, I'm ashamed to admit
it, but still can't figure out how to add a package manually, without
package manager. One of the computers I'm using can't be connected to
Internet at this point, I have MikTeX fully installed, but - well,
need to add a package ulem.

So, say, I downloaded ulem.sty elsewhere on flash. Now, what I would
*really* appreciate if someone who knows can tell me what to do.

From what I understand, I have to create a special directory, put
ulem.sty over there, well, may be other files, like help pdf file as
well, then ??? I guess I have to do something with package manager,
and the magic will happen.

Once again, I did RTFM, honestly, but that didn't help.

TIA,

PPJ.

Nicola Talbot

unread,
Dec 15, 2011, 3:46:03 AM12/15/11
to
There's possibly an easier way to do this with MiKTeX, but a manual
install usually involves the following steps:

1. open MSDOS Prompt (usually in Accessories)

2. Type

kpsewhich -var-value=TEXMFHOME

This will tell you the directory where to put your files. For example,
"C:\localtexmf"

3. Make sure the directory returned in 2. has subdirectories:

tex
- latex
doc
- latex

(Add them if they're not present.)

The tex\latex directory is for the style files (make a separate
subdirectory in there for each package). The doc\latex directory is for
the documentation.

4. Put the style file in a subdirectory of tex\latex. For example, if
TEXMFHOME is C:\localtexmf, ulem.sty should have the path
C:\localtexmf\tex\latex\ulem\ulem.sty

5. Put the documentation in a subdirectory of doc\latex.

6. Go back to the MSDOS prompt and type:

texhash C:\localtexmf

(replace "C:\localtexmf" as appropriate)

Regards
Nicola Talbot

--
Home: http://theoval.cmp.uea.ac.uk/~nlct/
LaTeX Related Information: http://theoval.cmp.uea.ac.uk/~nlct/latex/
Creating a LaTeX Minimal Example:
http://theoval.cmp.uea.ac.uk/~nlct/latex/minexample/

Ulrike Fischer

unread,
Dec 15, 2011, 3:47:08 AM12/15/11
to
Am Wed, 14 Dec 2011 17:59:19 -0800 (PST) schrieb
porky_...@my-deja.com:
You have two possibilities:

1. Get from CTAN (assuming you have miktex 2.9)

miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma
miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma
miktex/tm/packages/ulem.tar.lzma

Put all three in some folder outside from miktex (e.g. in a folder
on your stick). Start the package manager, use menu "repository" to
change the repository to this directory and then let the package
manager install ulem.

2. Create a directory outside from miktex:

<whatever-you-want>/tex/latex/ulem

and perhaps

<whatever-you-want>/doc/latex/ulem

Copy ulem.sty in the first directory, documentation in the second.

Then go to miktex-settings, tab "root" and add "<whatever-you-want>"
as new local root.


I would use 1 for standard packages like ulem. 2 is for real local
files.

--
Ulrike Fischer

Ignasi Furio

unread,
Dec 15, 2011, 3:47:14 AM12/15/11
to
> need to add a package ulem.
>
> So, say, I downloaded ulem.sty elsewhere on flash. Now, what I would
> *really* appreciate if someone who knows can tell me what to do.
>
> From what I understand, I have to create a special directory, put
> ulem.sty over there, well, may be other files, like help pdf file as
> well, then ??? I guess I have to do something with package manager,
> and the magic will happen.
>

You can look these answers to a similar question:

http://tex.stackexchange.com/questions/2063/how-can-i-manually-install-a-package-on-miktex-windows

Hope it helps.

Ignasi

porky_...@my-deja.com

unread,
Dec 15, 2011, 5:04:51 PM12/15/11
to
On Dec 14, 8:59 pm, "porky_pig...@my-deja.com" <porky_pig...@my-
Thanks to everyone who responded. I'll give it a shot and also check
the stackexchange.

Regards,

PPJ.

Peter Flynn

unread,
Dec 15, 2011, 5:10:43 PM12/15/11
to
On 15/12/11 01:59, porky_...@my-deja.com wrote:
Nor will it, much. I had to document this for local users wanting to
install private classes on offline or locked-down machines, and came up
with:

> 1.2 Where to install
>
> On your own computer, the texmf folder shown above is where you
> should put files you add to your personal TeX installation. Never put
> personal files into the main TeX installation folder, because they
> may accidentally be overwritten by upgrades: always use your personal
> TeX folder. This is not where you put your LaTeX documents (those can
> go anywhere, like ˜/Documents): your personal TeX folder is normally
> one of the following:
>
> Apple Macintosh OS X
> ˜/Library/texmf
> GNU/Linux
> ˜/texmf
> Microsoft Windows
> C:\texmf (Windows 95/XP) *or*
> Computer\System\Users\your name\texmf (Windows 2007–2010)
>
> Windows users only: after creating this folder, you must tell
> MiKTeX where your personal TeX folder is:
>
> 1. Run the MiKTeX Settings program by clicking on
> Start Programs > MiKTeX x.y > Maintenance > Settings
>
> 2. Click on the Roots tab
>
> 3. Click the Add button
>
> 4. Navigate to the texmf folder that you created
> (C:\texmf or Computer\System\Users\your name\texmf)
>
> 5. Click OK
>
> 6. Back in the Main tab, click the Refresh FNDB button
>
> You need to repeat step 6 any time you add or remove files from
> your personal TeX folder or subfolders within it.

This seemed to work for my users.

///Peter
0 new messages