photo jpg inclusion

Suresh Govindachar sgovindachar at yahoo.com
Sat Jan 8 04:44:01 CET 2022


On 1/7/2022 5:02 PM, Walt Burkhard wrote:
> 
> Hello,
> 
> 
> I am working with plain TeX and would like to include a small photo jpg 
> file.How can I do this?
> 
> Previously I have been using only eps files along with the \input 
> epsfcommand.
> 

% For output to pdf
%
% boilerplate
\def\image[#1]#2{%
\pdfximage #1 {#2}\pdfrefximage\pdflastximage}

% usage
\line{\hfil\image[height80mm]{data/foo.png}\hfil}
\line{\hfil\image[width120mm]{data/foo.png}\hfil}


> 
> Many thanks in advance for any help.
> 
> 
> Walt Burkhard
> 



More information about the texhax mailing list.