Text Formattingcustom .sty file

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
vegeman123
Posts: 2
Joined: Wed Sep 01, 2010 10:43 pm

custom .sty file

Post by vegeman123 »

Hi everyone,

I am looking for some assistance, I currently have MikteX 2.8 installed on my computer and a friend of mine created a custom .sty file for me.

I then used WinEdt and saved the file as friendfile.sty in the directory C:\...Miktex2.8\tex\latex\friendfile\

I then refreshed my FNDB as the administrator and it still does not appear on my Miktex Package Manager as a package.

Could someone please assist me in getting this custom .sty file recognized by my Miktex Package Manager so that I could then use it by including it in WinEdt using \usepackage{friendfile}?

Thank you in advance for your help!

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

custom .sty file

Post by frabjous »

See the MikTeX manual page on Integrating Local Additions; in particular the section on "Registering a User-Managed TEXMF Directory". Does this help?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

custom .sty file

Post by localghost »

vegeman123 wrote:[…] I then refreshed my FNDB as the administrator and it still does not appear on my Miktex Package Manager as a package. […]
You understood something wrong. This self-made package will not appear in the list of the package manager because it has no entry in the MiKTeX package database.
vegeman123 wrote:[…] Could someone please assist me in getting this custom .sty file recognized by my Miktex Package Manager so that I could then use it by including it in WinEdt using \usepackage{friendfile}? […]
It is not so important to make the package appear in the package list. The more important point is that it is found in the installation tree. Check that on the command line with the command shown below.

Code: Select all

kpsewhich friendfile.sty
If you obtain the full path to the package, it is recognized correctly and you can include it as usual in your document.


Best regards and welcome to the board
Thorsten
vegeman123
Posts: 2
Joined: Wed Sep 01, 2010 10:43 pm

Re: custom .sty file

Post by vegeman123 »

to frabjous,

thank you so much! It worked after doing what you recommended!
Post Reply