Re: Comments on InsetGraphics

2001-07-30 Thread Herbert Voss

Lars Gullik Bjønnes wrote:
> 
> | \scalebox{2}{\includegraphics{file.eps}}
> 
> What is psfrag.sty?

from the doc:

PSfrag provides the best of both worlds by allowing the user to
precisely overla
y Encapsulated PostScript (EPS) files with arbitrary LATEX
constructions. In ord
er to accomplish this, the user places a simple text "tag" in the
graphics file,
 as a "position marker" of sorts. Then, using simple LATEX commands, the
user in
structs PSfrag to remove that tag from the figure, and replace it with a
properl
y sized, aligned, and rotated LATEX equation. PSfrag also allows the
user to pla
ce LATEX constructs directly into the EPS file itself.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: Comments on InsetGraphics

2001-07-29 Thread Herbert Voss

Dekel Tsur wrote:
> 
> On Sun, Jul 29, 2001 at 12:44:34AM +0300, Baruch Even wrote:
> > > \scalebox{2}{\includegraphics{file.eps}}
> > >
> > > or if you use graphicx, \includegraphics[scale=2]{file.eps}.
> > >
> > > BTW, if you plan to use graphicx, you should let the user decide if he want
> > > to use graphics or graphicx.
> >
> > I'm using graphicx only, why would a user want to use graphics? (I can
> > think of when exporting and giving to others, but graphicx should be
> > present a.e. [almost everywhere - that is, everywhere besides a set of
> > measure zero]).
> 
> If you use psfrag.sty, you get different results when using
> \includegraphics[scale=2]{file.eps}
> and when using
> \scalebox{2}{\includegraphics{file.eps}}

- the use of \scalebox gives a problem when you always
  load package pstricks, because there is also a
  \scalbox definined, but with different parameters.
- \scalebox is not the preferred command to resize
  images, this should always be done with
  \includegraphics[scale=XXX]{file}
  
Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/





Re: Comments on InsetGraphics

2001-07-28 Thread Dekel Tsur

On Sun, Jul 29, 2001 at 12:44:34AM +0300, Baruch Even wrote:
> > \scalebox{2}{\includegraphics{file.eps}}
> > 
> > or if you use graphicx, \includegraphics[scale=2]{file.eps}.
> > 
> > BTW, if you plan to use graphicx, you should let the user decide if he want
> > to use graphics or graphicx.
> 
> I'm using graphicx only, why would a user want to use graphics? (I can
> think of when exporting and giving to others, but graphicx should be
> present a.e. [almost everywhere - that is, everywhere besides a set of
> measure zero]).

If you use psfrag.sty, you get different results when using
\includegraphics[scale=2]{file.eps}
and when using
\scalebox{2}{\includegraphics{file.eps}}



Re: Comments on InsetGraphics

2001-07-28 Thread Michael Schmitt

Hi Even,

I think the correct Latex command for scaling graphics is:

\includegraphics[scale=]{file.eps}
 ^^

Michael

==
Michael Schmittphone: +49 451 500 3725
Institute for Telematics   secretary: +49 451 500 3721
Medical University of Luebeck  fax:   +49 451 500 3722
Ratzeburger Allee 160  eMail: [EMAIL PROTECTED]
D-23538 Luebeck, Germany   WWW:   http://www.itm.mu-luebeck.de
==





Re: Comments on InsetGraphics

2001-07-28 Thread Baruch Even

* Dekel Tsur <[EMAIL PROTECTED]> [010729 00:41]:
> On Sun, Jul 29, 2001 at 12:12:12AM +0300, Baruch Even wrote:
> > > 3. Feature request: Is is possible to scale a figure by a certain
> > >percentage? Imagine the case where you have two figure of different
> > >size. Then it might make sense to shrink both by the same factor.
> > 
> > It would help if you could provide the needed latex command to use, I
> > will do it myself some other time, but if it's a trival command and you
> > provide it, I'll do it ASAP.
> 
> \scalebox{2}{\includegraphics{file.eps}}
> 
> or if you use graphicx, \includegraphics[scale=2]{file.eps}.
> 
> BTW, if you plan to use graphicx, you should let the user decide if he want
> to use graphics or graphicx.

I'm using graphicx only, why would a user want to use graphics? (I can
think of when exporting and giving to others, but graphicx should be
present a.e. [almost everywhere - that is, everywhere besides a set of
measure zero]).

-- 
Baruch Even
http://baruch.ev-en.org/



Re: Comments on InsetGraphics

2001-07-28 Thread Dekel Tsur

On Sun, Jul 29, 2001 at 12:12:12AM +0300, Baruch Even wrote:
> > 3. Feature request: Is is possible to scale a figure by a certain
> >percentage? Imagine the case where you have two figure of different
> >size. Then it might make sense to shrink both by the same factor.
> 
> It would help if you could provide the needed latex command to use, I
> will do it myself some other time, but if it's a trival command and you
> provide it, I'll do it ASAP.

\scalebox{2}{\includegraphics{file.eps}}

or if you use graphicx, \includegraphics[scale=2]{file.eps}.

BTW, if you plan to use graphicx, you should let the user decide if he want
to use graphics or graphicx.



Re: Comments on InsetGraphics

2001-07-28 Thread Baruch Even

* Michael Schmitt <[EMAIL PROTECTED]> [010729 00:05]:
> Hi Even,
> 
> it seems like the new graphics inset has become default today. 
> 
> Two comments on how to improve it:
> 
> 1. I use to export my latex documents to pdf. But for intermediate
>results I prefer to have a short look at the dvi output.
> 
>My current approach is to store my figures both in
>eps and pdf format. In LyX, I only specify the base filename
>(no extension). Depending on whether I export to dvi or
>pdf, LaTeX/LyX chooses the correct version.
> 
>Unfortunately, this does not work anymore.
> 
>Could you please provide a feature that treat figures
>in a way that I can export to pdf _and_ ps? Maybe it is better
>to provide a converter instead of stripping the file extension.
>What do you think?

Just use the full extension now, it will be converted automatically.

> 2. On one of my machines there is no converter from eps to xpm.
>Unfortunately, LyX tells me about this fact each and every time it
>reads a figure (i.e. 50 times). Please let LyX output this message only
>for the first figure.

Fixed, soon to be commited to CVS. 

> Optional wish :
> 
> 3. Feature request: Is is possible to scale a figure by a certain
>percentage? Imagine the case where you have two figure of different
>size. Then it might make sense to shrink both by the same factor.

Right now I'm supporting the basics, and only what I saw in InsetFig,
I'll write it in my wishlist file (at the header of insetgraphics.C).

It would help if you could provide the needed latex command to use, I
will do it myself some other time, but if it's a trival command and you
provide it, I'll do it ASAP.

-- 
Baruch Even
http://baruch.ev-en.org/