Document ClassesCustom packages, package inclusion, etc...

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
angelixd
Posts: 15
Joined: Thu Jul 26, 2007 4:53 pm

Custom packages, package inclusion, etc...

Post by angelixd »

There's no simple way to ask this, so let me try:

I'm writing & maintaining a bunch of custom .cls and .sty files, and I really don't know how the inheritance scheme works. if I have a custom .cls file and use it in a document, and that .cls file has some \usepackage statements in it, can my document use the routines in those packages? what if the .cls file includes a .sty file that has those packages in it; can the original document access those included routines?

Related to this question, since I can't seem to find any information on this: What is the difference between \usepackage and \RequirePackage ? is this a TeX/LaTeX thing, or something that affects inheritance?

Either way, I'd like to be able to reduce my redundancy in my code and enhance consistency. Anyone have any input?

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Custom packages, package inclusion, etc...

Post by gmedina »

This document can be useful.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply