[pdftex] Multiple references to image fails.

Heiko Oberdiek oberdiek at uni-freiburg.de
Sat Jun 14 06:46:52 CEST 2008


On Fri, Jun 13, 2008 at 04:18:49PM -0400, John Culleton wrote:

> On Wednesday 11 June 2008 05:22:02 am George N. White III wrote:
> >
> > It isn't obvious to me that plain (pdf)(e)tex should produce
> > smaller files. I'm more used to worrying about the total number of
> > pages that will get printed than the size of files.  Are there
> > realistic examples where (pdf)LaTeX or ConTeXt produce inflated pdf
> > files?  Does using miniltx and graphix, etc. increase the size of
> > .pdf files created with plain?
> 
> As it happens, Context will accept the same simple file as pdftex 
> without complaint. Unlike pdflatex it won't choke if its own macro 
> call etc. are not employed. So here is a file:
> ------------------------------------
> Hello, world.
> \bye
> -----------------------------------
> pdftex hello.tex
>  yields 5498 bytes.
> texexec hello.tex 
> yields 21178 bytes, and takes 21 seconds to run.  It appears that this 
> is just 15,680 of fixed overhead.  If I add some text the overhead 
> grows to 16,197, not a big increase.

\ifx\documentclass\undefined
  \def\pre{%
    \nopagenumbers
  }%
  \def\post{%
    \csname bye\endcsname
  }%
\else
  \def\pre{%
    \documentclass{minimal}%
    \pagestyle{empty}%
    \begin{document}%
  }%
  \def\post{%
    \end{document}%
  }%
\fi
\pre
Hello, World.
\post

pdfTeX 1.40.8-beta-20080527
pdftex test:   5488 bytes
pdflatex test: 5488 bytes

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>
-- 


More information about the pdftex mailing list