Re: Epstopdf and Lucida fonts in labels

Taco Hoekwater <[email protected]> Thu, 21 Apr 2005 13:09:23 +0200
Newsgroups gmane.comp.tex.metafont
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------080907050004030008090707
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


Hi Laurence,

Perhaps the TeX attachment is useful?

Usage:

   tex runcrop
or
   tex \\def\file{crop} \\input runcrop

Then, afterwards, do

   dvips -E -i -S 1 runcrop


Bye, Taco

Laurence Finston wrote:

> One advantage to automating the process is that it makes it possible
> to rename the eps files.  I've tried to use `\count' registers for
> the numerical suffixes within a loop in TeX, but I couldn't get it
> to work.  Therefore, I find it more convenient to rename the EPS
> files output by MetaPost when I want to do this, e.g., `a.1' to `a_1.eps'.
> For some reason, I could get looping to work when the names had this form.
> I don't know what the problem is.
> However, if you use an Emacs-Lisp function or a shell script to generate
> your TeX code, you could just let it do the looping and not bother
> changing the names.
> 
> 
>>I'll try that out. Someone suggested to use mptopdf, a program
>>from the people of "context " and it seems to work well, too,
>>even if, as
>>you say, that solution would depend on some fancy external program.
> 
> 
> There's usually not just one way of doing something.
> If you want to try it my way and have any questions,
> please feel free to ask.
> 
> Laurence
> 


--------------080907050004030008090707
Content-Type: application/x-tex;
 name="runcrop.tex"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="runcrop.tex"


\expandafter\ifx\csname file\endcsname \relax
  \let\file\jobname
\fi

\input epsf 

\nopagenumbers
\newread \testin
\newcount \looper
\looper=0
\loop \ifnum\looper < 4096
   \pageno=\looper
  \immediate\openin \testin \file.\the\looper \relax
  \ifeof\testin
  \else
    \hbox{\epsffile{\file.\the\looper}}%
    \vfill\break
  \fi
  \closein\testin
  \advance\looper1
\repeat

\bye


--------------080907050004030008090707--