From: "Alexander Cherepanov" Received: by relay1.vsu.ru (CommuniGate Pro PIPE 5.2.12) with PIPE id 153453674; Sat, 14 Feb 2009 14:37:01 +0300 X-drweb-hash: Received: from brown.mccme.ru ([213.171.48.226] verified) by relay1.vsu.ru (CommuniGate Pro SMTP 5.2.12) with ESMTPS id 153453193 for CyrTeX-ru@vsu.ru; Sat, 14 Feb 2009 14:28:57 +0300 Received-SPF: pass receiver=relay1.vsu.ru; client-ip=213.171.48.226; envelope-from=cherepan@mccme.ru Received: from [213.171.48.245] (helo=localhost) by brown.mccme.ru with smtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LYIfz-000ILu-If for CyrTeX-ru@vsu.ru; Sat, 14 Feb 2009 14:27:15 +0300 Message-ID: <000401c98e97$5a6a6da0$0100007f@localdomain> To: "Cyrillic TeX Users Group" References: Subject: =?koi8-r?B?UmU6IPfOxcTSxc7JxSDJ2s/C0sHWxc7J0SDXIMvMwdPT?= Date: Sat, 14 Feb 2009 14:28:24 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 FL-Build: Fidolook 2002 (SL) 6.0.2800.85 - 28/1/2003 19:07:30 X-SA-Exim-Connect-IP: 213.171.48.245 X-SA-Exim-Mail-From: cherepan@mccme.ru X-SA-Exim-Scanned: No (on brown.mccme.ru); SAEximRunCond expanded to false X-Bounce-ID: brown.mccme.ru X-DrWeb-FlyTrap-Class: NON-SPAM X-DrWeb-FlyTrap-CID: 1 X-DrWeb-FlyTrap-ID: 23764880 Hello, Константин! You wrote to "Cyrillic TeX Users Group" on Fri, 13 Feb 2009 13:52:46 +0500: > Ситуация следующая: имеется некоторый класс, который при формирования > заголовка вставляет логотип. > Логотип сделан с помощью METAPOST и в настоящее время в классе есть > строчки \RequirePackage{graphicx} и \includgraphics{} > Соответственно, пользователю приходится отдавать два файла (сам класс > и картинку), > что неудобно, как показала практика. Существует-ли возможность > внедрить код картинки > непосредственно в класс, и если это возможно, то как? Теоретически можно и совсем внедрить, но проще обойтись окружением filecontents, которое как раз для таких случаев и предназначено. Вот его описание из ltclass.dtx: % \DescribeEnv{filecontents} % The environment |filecontents| is intended for passing the contents % of packages, options, or other files along with a document in a % single file. % It has one argument, which is the name of the file to create. If that % file already exists (maybe only in the current directory if the OS % supports a notion of a `current directory' or `default directory') % then nothing happens % (except for an information message) and the body of the environment % is bypassed. Otherwise, the body of the environment is written % verbatim to the file name given as the first argument, together with % some comments about how it was produced. % % The environment is allowed only before |\documentclass| to ensure % that all packages or options necessary for this particular run are % present when needed. The begin and end tags should each be on a % line by itself. There is also a star-form; this does not write % extra comments into the file. Саша