[texhax] Re: \special{} and postscript

Martin Heller mr_heller at yahoo.dk
Fri Mar 17 09:43:55 CET 2006


tom sgouros skrev:

> I'm not writing a single document, but preparing a class file that will
> be used in many documents.  I want to be able to call on the company
> logo with macros like \companylogosmall and \companylogolarge, but right
> now the only way I can see to do that with graphicx involves using
> \includegraphics and duplicating the logo eps file in many different
> places (one for each of many different documents) around the file
> hierarchy.  The logo isn't big, so I imagined that if I tucked it into
> the bottom of the class file, it would have these advantages:

Just ship your logo-eps (and pdf) with the documentclass. If the 
logofiles are in the texmf tree LaTeX will find it. In the class file 
load the graphicx package with \RequirePackage{graphicx} and define a 
\logo command 
\newcommand\logo{\includegraphics{logofile-without-extension}}.




More information about the texhax mailing list