Re: imagaesize in lyx 1.1.6fix1
"Herbert" == Herbert Voss [EMAIL PROTECTED] writes: Herbert in one column mode \textwidth and \columnwidth is the same Herbert length. inserting an image with 100% of columnwidth is shown Herbert by lyx with only 50% in difference to an image with 100% of Herbert pagewidth. the dvi and ps-output is okay! This happens in IsetFig::Recompute. The relevant switch is switch (wtype) { case DEF: break; case CM:/* cm */ newx = int(28.346 * xwid); break; case IN: /* in */ newx = int(72 * xwid); break; case PER_PAGE: /* % of page */ newx = int(5.95 * xwid); break; case PER_COL: /* % of col */ newx = int(2.975 * xwid); break; } I really do not know where the magic constants 5.95 and 2.975 come from, so I do not know how to fix that. Is the behaviour supposed to be better with the new insetgraphics? JMarc
Re: imagaesize in lyx 1.1.6fix1
Jean-Marc Lasgouttes wrote: This happens in IsetFig::Recompute. The relevant switch is switch (wtype) { ... case PER_PAGE: /* % of page */ newx = int(5.95 * xwid); break; case PER_COL: /* % of col */ newx = int(2.975 * xwid); break; } I really do not know where the magic constants 5.95 and 2.975 come from, so I do not know how to fix that. Is the behaviour supposed to be better with the new insetgraphics? lyx makes in it's own layout no difference between one and two column mode. on the other hand lyx don't really know at runtime the values for \textwidth and \columnwidth. therefore it makes sense when lyx makes no difference between pagewidth and columnwidth for it's own layout on screen. maybe that the constants 5.95 and 2.975 are historical, because you can choose any other value??? it never belongs to a latex run. Herbert -- http:[EMAIL PROTECTED]
Re: imagaesize in lyx 1.1.6fix1
* Jean-Marc Lasgouttes [EMAIL PROTECTED] [010413 15:07]: "Herbert" == Herbert Voss [EMAIL PROTECTED] writes: Herbert in one column mode \textwidth and \columnwidth is the same Herbert length. inserting an image with 100% of columnwidth is shown Herbert by lyx with only 50% in difference to an image with 100% of Herbert pagewidth. the dvi and ps-output is okay! [.. Snipped ..] I really do not know where the magic constants 5.95 and 2.975 come from, so I do not know how to fix that. Is the behaviour supposed to be better with the new insetgraphics? Yes, InsetGraphics doesn't resize at all for now :-) (It emits the latex commands alright, but onscreen there is no hint that the image is supposed to be resized). Baruch -- Baruch Even http://baruch.ev-en.org/
Re: imagaesize in lyx 1.1.6fix1
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> in one column mode \textwidth and \columnwidth is the same Herbert> length. inserting an image with 100% of columnwidth is shown Herbert> by lyx with only 50% in difference to an image with 100% of Herbert> pagewidth. the dvi and ps-output is okay! This happens in IsetFig::Recompute. The relevant switch is switch (wtype) { case DEF: break; case CM:/* cm */ newx = int(28.346 * xwid); break; case IN: /* in */ newx = int(72 * xwid); break; case PER_PAGE: /* % of page */ newx = int(5.95 * xwid); break; case PER_COL: /* % of col */ newx = int(2.975 * xwid); break; } I really do not know where the magic constants 5.95 and 2.975 come from, so I do not know how to fix that. Is the behaviour supposed to be better with the new insetgraphics? JMarc
Re: imagaesize in lyx 1.1.6fix1
Jean-Marc Lasgouttes wrote: > > This happens in IsetFig::Recompute. The relevant switch is > > switch (wtype) { ... > case PER_PAGE: /* % of page */ > newx = int(5.95 * xwid); > break; > case PER_COL: /* % of col */ > newx = int(2.975 * xwid); > break; > } > > I really do not know where the magic constants 5.95 and 2.975 come > from, so I do not know how to fix that. Is the behaviour supposed to > be better with the new insetgraphics? lyx makes in it's own layout no difference between one and two column mode. on the other hand lyx don't really know at runtime the values for \textwidth and \columnwidth. therefore it makes sense when lyx makes no difference between pagewidth and columnwidth for it's own layout on screen. maybe that the constants 5.95 and 2.975 are historical, because you can choose any other value??? it never belongs to a latex run. Herbert -- http:[EMAIL PROTECTED]
Re: imagaesize in lyx 1.1.6fix1
* Jean-Marc Lasgouttes <[EMAIL PROTECTED]> [010413 15:07]: > > "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: > > Herbert> in one column mode \textwidth and \columnwidth is the same > Herbert> length. inserting an image with 100% of columnwidth is shown > Herbert> by lyx with only 50% in difference to an image with 100% of > Herbert> pagewidth. the dvi and ps-output is okay! > > [.. Snipped ..] > > I really do not know where the magic constants 5.95 and 2.975 come > from, so I do not know how to fix that. Is the behaviour supposed to > be better with the new insetgraphics? Yes, InsetGraphics doesn't resize at all for now :-) (It emits the latex commands alright, but onscreen there is no hint that the image is supposed to be resized). Baruch -- Baruch Even http://baruch.ev-en.org/
imagaesize in lyx 1.1.6fix1
in one column mode \textwidth and \columnwidth is the same length. inserting an image with 100% of columnwidth is shown by lyx with only 50% in difference to an image with 100% of pagewidth. the dvi and ps-output is okay! Herbert insert with 100% of page \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \begin_inset Figure size 595 307 file grau-neu.eps width 3 100 flags 9 \end_inset \layout Standard insert with 100% of column \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \begin_inset Figure size 297 153 file grau-neu.eps width 4 100 flags 9 \end_inset - -- http:[EMAIL PROTECTED]
imagaesize in lyx 1.1.6fix1
in one column mode \textwidth and \columnwidth is the same length. inserting an image with 100% of columnwidth is shown by lyx with only 50% in difference to an image with 100% of pagewidth. the dvi and ps-output is okay! Herbert insert with 100% of page \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \begin_inset Figure size 595 307 file grau-neu.eps width 3 100 flags 9 \end_inset \layout Standard insert with 100% of column \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \begin_inset Figure size 297 153 file grau-neu.eps width 4 100 flags 9 \end_inset - -- http:[EMAIL PROTECTED]