Re: [SLUG] LaTeX question, Linux command.

2003-08-29 Thread Bill Bennett
> I don't have my cp of Goosens here to look up the graphics rule
> but it > looks like you are wanting to use latex and generate
> postscript. An eps is not necessarily too big. Both convert
> and jpg2eps (which might even > already be on your system as
> it comes with many teTeX distributions) just encapsulates the
> binary jpg and it wont be much bigger at all than the jpg. Then
> you wont need the graphics rule at all.

Well, I'd *better* look at jpg2eps (it isn't on our machine),
cause the jpg file was 452731 bites. The corresponding eps was
29969362 bites. (It was a photograph).

Regards,

Bill Bennett.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] LaTeX question, Linux command.

2003-08-29 Thread Anthony Wood
On Tue, Aug 26, 2003 at 09:10:16AM +1000, Angus Lees wrote:
> At Mon, 25 Aug 2003 17:41:14 +1000, Michael Lake wrote:
> > Bill Bennett wrote:
> > > I was going to use a .jpg file in a figure in a LaTeX document,
> > > on the grounds that an.eps file would be too big.
> > 
> > I don't have my cp of Goosens here to look up the graphics rule but it 
> > looks like you are wanting to use latex and generate postscript. An eps 
> > is not necessarily too big. Both convert and jpg2eps (which might even 
> > already be on your system as it comes with many teTeX distributions) 
> > just encapsulates the binary jpg and it wont be much bigger at all than 
> > the jpg. Then you wont need the graphics rule at all.
> 
> . also if you're aiming for postscript output, the jpg will have to
> be converted to postscript at some point in the process.
> 
> (iirc, PDF can embed a jpg directly so thats a different story)

pdflatex does this.  pdflatex can't do the jpegs straight out of
my camera for some reason.

jpeg2ps (debian woody/non-free)

DESCRIPTION
   jpeg2ps converts JPEG files to PostScript  Level  2  or  3
   EPS.  In  fact,  jpeg2ps  is  not really a converter but a
   "wrapper": it reads the image parameters  (width,  height,
   number  of  color  components)  in a JPEG file, writes the
   according EPS header and then copies the  compressed  JPEG
   data  to  the  output  file.  Decompression is done by the
   PostScript interpreter (only  PostScript  Level  2  and  3
   interpreters  support JPEG compression and decompression).

-- 
Woody
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] LaTeX question, Linux command.

2003-08-28 Thread Angus Lees
At Mon, 25 Aug 2003 17:41:14 +1000, Michael Lake wrote:
> Bill Bennett wrote:
> > I was going to use a .jpg file in a figure in a LaTeX document,
> > on the grounds that an.eps file would be too big.
> 
> I don't have my cp of Goosens here to look up the graphics rule but it 
> looks like you are wanting to use latex and generate postscript. An eps 
> is not necessarily too big. Both convert and jpg2eps (which might even 
> already be on your system as it comes with many teTeX distributions) 
> just encapsulates the binary jpg and it wont be much bigger at all than 
> the jpg. Then you wont need the graphics rule at all.

.. also if you're aiming for postscript output, the jpg will have to
be converted to postscript at some point in the process.

(iirc, PDF can embed a jpg directly so thats a different story)

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] LaTeX question, Linux command.

2003-08-25 Thread Michael Lake
Bill Bennett wrote:
> I was going to use a .jpg file in a figure in a LaTeX document,
> on the grounds that an.eps file would be too big.

I don't have my cp of Goosens here to look up the graphics rule but it 
looks like you are wanting to use latex and generate postscript. An eps 
is not necessarily too big. Both convert and jpg2eps (which might even 
already be on your system as it comes with many teTeX distributions) 
just encapsulates the binary jpg and it wont be much bigger at all than 
the jpg. Then you wont need the graphics rule at all.

> So I copied the method from Keith Reckdahl's "Using Imported Graphics in LaTeX2e", 
> ie.,
...

Mike



UTS CRICOS Provider Code:  00099F

DISCLAIMER

This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.
If you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly,
and with authority, states them to be the views the University of
Technology Sydney. Before opening any attachments, please check them for
viruses and defects.



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] LaTeX question, Linux command.

2003-08-25 Thread Bill Bennett
I was going to use a .jpg file in a figure in a LaTeX document,
on the grounds that an.eps file would be too big.

So I copied the method from Keith Reckdahl's "Using Imported Graphics in LaTeX2e", ie.,

\documentclass[dvips,11pt]{report}
\usepackage{graphicx}

then

use convert myfile.jpg myfile.eps

to get a Bounding Box line, which subsequently becomes the
only line in myfile.jpg.bb

(and deleted myfile.eps)

then 

\DeclareGraphicsRule{.jpg}{eps}{.jpg.bb}{`convert #1 'eps:-' }

What *should* happen is that, at dvips, this latter command
translates the .jpg file into an .eps file (specified by
the "eps:" option) and sends the result to standard output
(specified by the "-" specification).

Except that it doesn't.

What I get is:---

dvips: Failure to execute convert Myfile.jpg 'eps:-'; continuing

I have this feeling that something is wrong with the
\DeclareGraphicsRule in that part {`convert #1 'eps:-' }.

Could anyone help, please?

Regards,

Bill Bennett.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug