GeneralDTX File with EPS and PDF Pictures

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gadgetto
Posts: 11
Joined: Wed Oct 24, 2012 8:28 am

DTX File with EPS and PDF Pictures

Post by gadgetto »

Hi everybody,

I have implemented the corporate design of our company for the beamer class. Now I want to distribute it. My idea is to do this by *.dtx and *.ins file so that the users only need to modify "docstrip.cfg" and all files will be generated and moved to the correct place.

I have packed the sty-files into a *.dtx file and created an according *.ins file. This works fine for the *.sty files. But additionally I need to add one EPS and one PDF file. I assume this it is not possible to add the two pictures to the *.dtx file, because PDF is a binary file and all others are text files. Therefore I created a directory "figures" and put the two pictures in there. Now TeX should copy the pictures to the correct directory as it does with the sty-files. But how? Or do you prefer an other way to fix my problem?

Thanks for help!
Gadgetto

Recommended reading 2024:

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

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

gadgetto
Posts: 11
Joined: Wed Oct 24, 2012 8:28 am

DTX File with EPS and PDF Pictures

Post by gadgetto »

Hi everybody,

I have fixed the EPS-part of the problem. An EPS-file can be generated from a dtx-file.

You have to copy the eps-file into the dtx-file (both are text files). Now you have to embrace this area with the markers %<*Marker> and %</Marker>. To fix the Problem that LaTeX does not interpret symbols like % you have to put the eps-information into a verbatim-environment with the markers %<<Marker and %Marker. The result can be as follows:

Code: Select all

%<*epslogo>
%
%  Here's the PostScript code for the logo:
%
%<<PSFILE
...
...
%PSFILE
%
%</epslogo>
After that you have to disable comments at the beginning and the end of the generated EPS-file. You do this with \nopreamble and \nopostamble in the INS-File:

Code: Select all

\generate{\nopreamble\nopostamble%
          \file{Logo.eps}{\from{<yourpackage>.dtx}{epslogo}}}
Now I fixed my EPS-Problem, but I would be very happy, if anybody could give me a hint how to fix my PDF-Problem

Gadgetto
Post Reply