On Wed, 2006-04-19 at 00:32 -0500, Garst R. Reese wrote: > Attached .tex files simplified by changing all graphic letters to o > found in crittero... > > Hope this helps. > > Garst
Yes it does. Jose, is the attached patch correct? The problem is, that the conversion of Minipage to Box produces the following LaTeX: \begin{minipage}[t][1\totalheight][c]{0.67\columnwidth}% Here, the [c] means: center the text (i.e., the two rows of critters) vertically within the minipage. Unfortunately in the Box code, we have used \totalheight as the height of the minipage. This is as much as saying: "This minipage has a height of one totalminipageheight." I.e., a tautology. The problem then is that specifying [c] will _add_ stuff to the content of the minipage (whitespace on top), so \totalheight _increases_. After that, the text is centered within this _increased_ totalheight. You see the same happening when specifying [b], but not with [t] or [s] ("stretch"). I wonder if this should be called a LaTeX bug... The original mistake is in lyx2lyx. When converting a minipage to a box, the default innerposition is given as the first one, number 0, corresponding to [c]. The patch changes this to number 1, or [t]. Sorry for the long analysis. Jose, do you agree? - Martin > Martin Vermeer wrote: > > >On Tue, Apr 18, 2006 at 10:18:02PM +0200, Michael Gerz wrote: > > > > > >>Garst R. Reese wrote: > >> > >> > >> > >>>Attached you will find the cover pdf generated with ps2pdf from the > >>>print to file output from 1.3.7. I cannot provide the equivalent pdf > >>> > >>> > >>>from 1.4.1 because ps2pdf aborts with errors. > >> > >> > >>>View pdf works but instead of 5 lines of letters, there are only 4 and > >>>the title is raised a few cm. > >>>The difference in the .lyx files is that 1.3.7 says begin_inset > >>>Minipage and 1.4.1 begin inset Box Frameless > >>> > >>> > >>> > >>Garst, > >> > >>could you please provide us with a simple test case (minimized LyX file) > >>and add a report to bugzilla? > >> > >> > > > >And what is the LaTeX code produced by both? > > > > > > > >>If 1.4.1 and 1.3.7 do not produce the same output, there is a serious > >>regression. > >> > >> > > > >The problem could be in lyx2lyx (Minipage -> Box). > > > >- Martin > > > > > > >
Index: lyx_1_4.py =================================================================== --- lyx_1_4.py (revision 13657) +++ lyx_1_4.py (working copy) @@ -989,7 +989,7 @@ if file.body[i][:14] == "inner_position": file.body[i] = 'inner_pos "%s"' % inner_pos[int(file.body[i][15])] else: - file.body.insert('inner_pos "%s"' % inner_pos[0]) + file.body.insert('inner_pos "%s"' % inner_pos[1]) i = i + 1 # We need this since the new file format has a height and width
signature.asc
Description: This is a digitally signed message part