On Thu, May 16, 2002 at 09:26:14PM +0200, Herbert Voss wrote:
 
> Rod Pinna wrote:
> 
> > 
> > Just opened a file of mine, from 1.1.6fix4, which has a number of
> > non-floating eps files. The output from latex has these is incorrectly
> > sized. The graphics are scaled to a percentage of the paper width.
> > 
> > 
> > Actually, I see, the new version has a "text%" option, which seems to
> > match the output of the previous "% of page" option.
> > 
> > Not sure if I should call it a bug then...possibly the import should
> > convert the 1.1.6 page width to the 1.2.0 text width.
> 
> 
> Rod, please try this patch
> 
> Herbert

Actually this is *still* a problem in the 1.2.0 tarball! All my 1.1.5fix1 
figure widths that were given as "% of Page" are interpreted by 1.2.0 as
page% and translated to \paperwidth in LaTeX. (I suppose the same problem
exists with heights). It should be text% and thus \textwidth.

This is a *serious* semantic bug. One powerful argument often heard in
favour of (La)TeX is, that documents written in 1989 can still today be
processed and produce bit-by-bit the same output as way back then. LyX
ought to have the same property (well not all the way from 1989 perhaps :-).

I have one manuscript of 300+ pages containing literally hundreds (200+)
of graphics, most of them scaled to a percentage of the text width. I am 
not manually going to fix this, trust me :-) 

The following script fixes my .lyx files after conversion to lyx 1.2.0. 
I think this issue should be prominently announced, and fixed *at the 
source* for 1.2.1 (or 1.2.0fix1?)

Martin



#!/bin/sh

# Fixes the translation 
#       1.1 "% of Page" -> 1.2.0 page%
# to the semantically correct translation 
#       1.1 "% of Page" -> 1.2.0 text%. 

sed -e "s/page%/text%/g" <$1 >$2

Attachment: msg38759/pgp00000.pgp
Description: PGP signature

Reply via email to