Re: statement paper quandary

1999-08-21 Thread Lars Gullik Bjønnes

Allan Rae <[EMAIL PROTECTED]> writes:

| > Can you suggest a good place to send it to?
| 
| comp..tex

comp.text.tex

Perhaps ask why statement size is not in base classes instead of
posting a bug report?

Lgb



RE: statement paper quandary

1999-08-18 Thread Juergen Vigna

Hi Garst!

On 18-Aug-99 Garst R. Reese wrote:
> I am at a loss of how to best solve this problem.
> At present, it is virtually impossible to use an unpatched LyX to
> produce a book in the (North American) common 5.5in x 8.5in format. I
> say virtually, because in order to preview the book I must print a test
> copy. The closest I can get with LaTeX is a5paper, which is longer and
> narrower. I gather from lgb that violating a base class is some sort of
> heresy. My feeling is that it was some sort of gross stupidity on the
> part of LaTeX developers to ignore this paper size. For me, it is no big
> deal. I will continue patching both teTeX and LyX to suit my own needs.
> Garst

Wouldn't the User defined Option in Layout->Paper help? Then you could
add to the call of dvi in the .lyxrc your added -t statement so that
it produces the right postscript file.

Greets Jürgen

P.S.: You could also contact the developer of the geometry.sty packages
  which we use for different not supported papersizes and ask him
  if he could add the statment papersize to his package #:O)

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

QOTD:
The forest may be quiet, but that doesn't mean
the snakes have gone away.

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Custom pagesize printing bugs (was Re: statement paper quandary)

1999-08-18 Thread Allan Rae

On Thu, 19 Aug 1999, Allan Rae wrote:
>
> There is a major problem with lyx handling of custom paper sizes when
> exporting to postscript.  In fact, LyX exports to the default paper size!
> If I run from the command line "dvips -o out.ps -T5.5in,8.5in out.dvi"
> then the exported ps file uses statement paper:  provided you've setup
> dvips' config.ps first otherwise you still get your default paper.

I've almost finished fixing the custom export stuff but I've found another
even more serious bug.  If the user selects a custom pagesize (ie.
specifies the page width and height) but then goes and selects the 
papersize Default then when we run latex we get big problems in
Buffer::makeLaTeXFile.

This happens because use_geometry is still set we don't add a papersize
option to the \documentclass{...} entry.  However, we don't set a
papersize for geometry either since it falls through the papersize switch.
I'm adding a switch(lyxrc->default_papersize) to cover this.

So what we'll end up with is working export to custom paper, working
export to ordinary paper and working export to ordinary or default paper
with a custom paper size specified.  This last one is the tricky one. I've
decided that if someone selects Layout->Paper->PaperSize{A4} then they
will get A4 not the custom size.  This makes sense after all.

Anyway,  my patch is almost ready.  I've just got to fix the Print dialog.

Allan. (ARRae)



Re: statement paper quandary

1999-08-18 Thread Allan Rae

On Thu, 19 Aug 1999, Garst R. Reese wrote:
> Allan Rae wrote:
> > Did you try using a custom paper size?  Layout->Paper->PaperSize{custom}
> > and setting the paper height and width by hand.
> Yes, and I just this afternoon tried again with the book.cls from
> teTeX-1.0 without my changes. If I simply set a custom papersize, all
> looks fine on the LyX screen, but half the text is off screen when I
> view postscript.

There is a major problem with lyx handling of custom paper sizes when
exporting to postscript.  In fact, LyX exports to the default paper size!
If I run from the command line "dvips -o out.ps -T5.5in,8.5in out.dvi"
then the exported ps file uses statement paper:  provided you've setup
dvips' config.ps first otherwise you still get your default paper.

I'm looking into this now.  Expect a patch shortly.

 
> > You should file a bug report.
> Can you suggest a good place to send it to?

comp..tex

Sorry I'm sure of the full name for the tex group on USENET.

Allan. (ARRae)



Re: statement paper quandary

1999-08-18 Thread Garst R. Reese

Allan Rae wrote:
> 
> On Wed, 18 Aug 1999, Garst R. Reese wrote:
> 
> > I am at a loss of how to best solve this problem. At present, it is
> > virtually impossible to use an unpatched LyX to produce a book in the
> > (North American) common 5.5in x 8.5in format. I say virtually, because
> > in order to preview the book I must print a test copy. The closest I
> > can get with LaTeX is a5paper, which is longer and narrower.
> 
> Did you try using a custom paper size?  Layout->Paper->PaperSize{custom}
> and setting the paper height and width by hand.
Yes, and I just this afternoon tried again with the book.cls from
teTeX-1.0 without my changes. If I simply set a custom papersize, all
looks fine on the LyX screen, but half the text is off screen when I
view postscript. I can get a rough idea of how things will look using
A5, but the difference in length changes the widow/orphan
situation--sometimes disastrously.

> > I gather from lgb that violating a base class is some sort of heresy.
> 
> I think Lars' suggestion for having each layout specify what paper sizes
> it supports may be best in the long run.  That way we'll at least be able
> to offer support for the a0poster.cls that someone else suggested
> recently.  I suspect we'd also need to keep the paper size definitions in
> a file we can read in at start-up rather than continue hardcoding them.
> That would make it infinitely easier to add new paper sizes at a local
> site.  It might also mean we could automatically support any papersize for
> any class by automatically filling in the custom paper sizing for those
> classes that need it.
> 
> Of course we'd need to know if this actually works first.  Garst, could
> you try setting the custom paper size and compare the output to that of
> your modified-for-statement-paper book.cls?
The way I have been handling this is to use psutils to do the printing.
In LyX I did everything in usletter size, then let psbook, psnup, and
psselect sort things out. I can view the results with gv, but then have
to go back to LyX and guess at the best fix for widows and orphans, the
repeat the whole process.
 
> > My feeling is that it was some sort of gross stupidity on the part of
> > LaTeX developers to ignore this paper size.
> 
> You should file a bug report.
Can you suggest a good place to send it to?

Garst



Re: statement paper quandary

1999-08-18 Thread Allan Rae

On Wed, 18 Aug 1999, Garst R. Reese wrote:

> I am at a loss of how to best solve this problem. At present, it is
> virtually impossible to use an unpatched LyX to produce a book in the
> (North American) common 5.5in x 8.5in format. I say virtually, because
> in order to preview the book I must print a test copy. The closest I
> can get with LaTeX is a5paper, which is longer and narrower.

Did you try using a custom paper size?  Layout->Paper->PaperSize{custom}
and setting the paper height and width by hand.

> I gather from lgb that violating a base class is some sort of heresy.

I think Lars' suggestion for having each layout specify what paper sizes
it supports may be best in the long run.  That way we'll at least be able
to offer support for the a0poster.cls that someone else suggested
recently.  I suspect we'd also need to keep the paper size definitions in
a file we can read in at start-up rather than continue hardcoding them.
That would make it infinitely easier to add new paper sizes at a local
site.  It might also mean we could automatically support any papersize for
any class by automatically filling in the custom paper sizing for those
classes that need it.

Of course we'd need to know if this actually works first.  Garst, could
you try setting the custom paper size and compare the output to that of
your modified-for-statement-paper book.cls?

> My feeling is that it was some sort of gross stupidity on the part of
> LaTeX developers to ignore this paper size.

You should file a bug report.

Allan. (ARRae)