LaTeX LaTex: Where to store package, sty, etc files?

  • Thread starter Thread starter teroenza
  • Start date Start date
  • Tags Tags
    files Latex
Click For Summary
SUMMARY

This discussion focuses on the proper storage locations for LaTeX package files, specifically .sty and .cl files, when using MikTeX on Windows 7 with Texmaker. Users can store these files in two main locations: the installation directory of MikTeX or a user-defined directory in their home folder named "texmf". The latter option is particularly useful for users without administrative rights. The discussion also highlights the importance of understanding the structure of the texmf directory and suggests consulting MikTeX documentation for detailed guidance.

PREREQUISITES
  • Basic understanding of LaTeX document structure
  • Familiarity with MikTeX package manager
  • Knowledge of file directory structures in Windows
  • Experience with Texmaker as a LaTeX editor
NEXT STEPS
  • Learn how to create and structure a "texmf" directory for LaTeX files
  • Explore the MikTeX documentation on local additions and user-managed TEX directories
  • Understand how to set environment variables for LaTeX installations
  • Research best practices for managing LaTeX packages and dependencies
USEFUL FOR

This discussion is beneficial for novice LaTeX users, Windows users of MikTeX, and anyone looking to optimize their LaTeX file management and package organization.

teroenza
Messages
190
Reaction score
5
Hello. I am using windows 7, MikTex, and Texmaker to create LaTeX files. I am a novice user, and am confused about where to locate specific files such as packages, .sty files, and .cl files. I use MikTex's package manager to download most, and it puts them somewhere where they are then accessible for any document I create. If it can't find what need (as indicated by an error in Texmaker), then I manually find the file online and stick it in the folder with the .txt file. Is there a place I can put these files so that I don't have to have a copy with every .txt document I have?

Thanks
 
Physics news on Phys.org
of course there is place to put those files in...to be sure, there are two places: 1) The same place where all the other *.sty files, i.e., the installation directory and 2) somewhere in your home directory...

...I am no expert, either, and have used latex very little; but sometime back and run into this same problem on the Linux side and because I don't have admin rights (this is the office computer) I went the 'home directory' route...I think the directory needed to be named "texmf", in my case, and follow a very specific structure.

if nobody comes along with the exact answer, google it, the answer is somewhere out there...maybe within the documentation.
 
Thank you. I have seen the name "texmf" all over the place, for example: here. But I can't seem to find it, and started to think it was Linux-spesific.
 
I see.

Maybe texmf is not used by the software itself, when installed or compiled and it is reserved for when installing *.sty OUTSIDE of the installation directory...and since you are yet to install something in this manner, you don't have a texmf folder, yet.
 
There are several ways to do this. See http://docs.miktex.org/manual/localadditions.html (you should have this somewhiere in your own MikTeX help system).

The simplest option to use is probably the "set environment variables" method.

If you want to do this on a large scale (i.e. you are using many packages, fonts, etc that are not in the MikTeX standard distribution), take the time out to understand the "register a user managed TEX directory" method.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
12K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K