Waluyo Adi Siswanto wrote:
> > I have a lot of floating figures inserted in my file with captions.
> > They're in .png format, with 300dpi.
> > Since many are too big to fit the default page, I was wondering if there
> > was any package or command to resize them automatically, to fit in
> > within the 95% of the widthpage, for example. I have tried the scale
> > window that appears by default, but I don´t know if this compresses the
> > figure or make any lose in quality. Also this tool doesn´t fit the
> > figure in the LyX page, but at the exit, which makes much more difficult
> > to write the document. I have researched in the maling list and in
> > forums, but I did´t find a clear solution, maybe is such a simple
> > problem.
>
> When you insert the image, I think you open LyX Graphics dialog. Below
> the file browsing, enable Set Width, enter 95, select Column Width in
> the unit selection.
And for the scaling inside the LyX work area, go to "LaTeX and LyX Options" in
that dialog, and adjust the value via "Scale on Screen".
BTW if you need many graphics with excatly the same settings, you can open a
new graphics group in that tab. Then you can assign new graphics to that group
via right-click context menu, and they will automatically inherit the settings
of the group. In other words: if you alter the settings of one graphic of a
group, it will apply to the whole group.
> > I was also wondering how to centre the captions with the figure. They' re
> > slightly displaced
>
> In the paragraph where your figure is located, right click, select
> Paragraph Settings, then in the alignment you can change to Center.
> Your picture will be centered.
To center the caption, however, you might need a specific package (depends on
the document class you use).
Try if
\usepackage[justification=centering]{caption}
in document > Settings > Preamble is what you want.
Many other related things are described in Help > Embedded Objects.
Jürgen