Preamble
I recently started the "custom package writing" path, which at first I found very interesting because it helped me to define standard callings of packages/commands that would have occupied thousands of lines of preamble code.
Main Question
The first lines of code written inside any pkgname.sty
file should be the following:
% This is my first package.
%
% (c) <authorname>
% LPPL LaTeX Public Project License
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{<pkgname>}[yyyy/mm/dd Custom Package]
%
Following the instructions, I created and inserted correctly the package inside the C:\Local TeX Files\tex\latex\custompkgs
folder synchronized with MiKTeX 2.9. The problem arose when I tried to define the package name, knowing that it could be anything I wanted, because observing other package names I found some defined, sistematic events.
Packages whose name is written with:
- More than one uppercase letter
- Normal letters but more than three numbers
- More than two words separated by a white space
are extremely rare.
From this data, I certainly won't name my package Super Duper Cool pkg.sty
in the first place, because I have good taste and because it seems that there are certain rules that have to be applied in order to obtain the results observed above.
From the references I haven't found any link to this strange behaviour on package names; although I think that these rules have to be written somewhere, I couldn't find them. Is it true that package names in fact do follow a specific formatting rule?
References
- First documentation for beginners. (http://tutex.tug.org/pracjourn/2005-4/hefferon/hefferon.pdf)
- Package/Class writing complete guide. (http://latex-project.org/guides/clsguide.pdf)
- Main Wikibook article. (http://en.wikibooks.org/wiki/LaTeX/Creating_Packages)