0

I want to create my own latex package with a .sty file in it, and install it via tlmgr command.

I've looked it up in Google, and found only this page https://tug.org/texlive/pkgcontrib.html, where I found no detailed procedure to create a new package.

Is there any document about this kind of things?

OrthoPole
  • 113
  • 1
    For package writing, see clsguide. – Stephen Jul 25 '23 at 04:18
  • Your package doesn't have to be part of the TexLive distribution, in order to use it locally … – Ingmar Jul 25 '23 at 05:52
  • If you just want to use the package locally, you can store the package file into the local texmf tree such as /usr/local/texlive/xxxx/texmf-local/tex/latex and run sudo mktexlsr in the terminal. Then you can invoke the package file in your main document directly. – Stephen Jul 25 '23 at 06:45
  • I know that way, but I do want to build a package that can be installed via tlmgr. – OrthoPole Jul 26 '23 at 08:01
  • 1
    There are very little formal requirements to get a package into TeX Live. Most packages that are uploaded to CTAN (https://ctan.org/) automatically make it into TeX Live (unless their license is not-free or the package is only there to support non-free things). Usually you "create" a package by bundling its documentation and runtime files together and uploading it to CTAN. There are several questions about that on this site. https://tex.stackexchange.com/q/34175/35864 has many links that will get you started. – moewe Jul 28 '23 at 06:52

0 Answers0