NB!
Cc:d to lyx developers list

On Wed, 14 Oct 1998, Remy Kolessar wrote:

> Hi,
> 
> I've been using Lyx for about 2 weeks and I just find it great!
> 
> I have a question about the Print pop menu: Why didn't you include
> options to print only one (or some) page(s) of the .dvi file, as you did
> for odd or even pages? Since this option is supported in dvips using
> -ppX-Y for instance, I guess it should be rather easy to implement that,
> or did I miss something?

Noone got around doing it... :P

> Of course, you can still print out selected pages by creating a .dvi
> file and using the dvips command line directly, but...

You can print separate pages from ghostview (or gv).

You can also use File->Export->Other, export to a command as dvi:
"dvips -f1 -pp3-4 $$FName | lpr"

I don't think the syntax with $$FName is documented, at least I couldn't
find it. ...byt then I may be blind. I couldn't find anything about
File->Export->Other :P

It's supposed to work with "dvips -f1 -pp3-4 | lpr" too, but there's a
small bug in in LyXSendto.C, near line 82 that I've just discovered.

The command is issued (when $$FName is not used in <command>) as
"cat $$FName | <command> &"

    if (!command.contains("$$FName"))
        command = "cat $$FName | " + command;
    command.subst("$$FName",fname);
    command += " &"; // execute in background

Unfortunately dvips can't read from a pipe (it need to seek on the file).
It could be invoked as "(<command>) < $$FName &", to have the command
read from a seekable file instead. (And get rid of an extra process)
Like this:

    if (!command.contains("$$FName"))
        command = "(" + command + ") < $$FName";
    command.subst("$$FName",fname);
    command += " &"; // execute in background


Then a "dvips -f1 -pp3-4 | lpr" should work I think. (haven't
tested)

Could someone try it and add it to the CVS please?  It's just a one-liner.
(line 83 in LyXSendto.C, lyx0_12)

Think I'll better take a closer look at the docs.

Joacim
-
With both feet on the ground, you won't get very far.
                -- Loesje

-- 
                +++ the lyx project user mailing list +++
                To unsubscribe from this list send mail to 
                         [EMAIL PROTECTED]
                    with the **Subject** unsubscribe.

Reply via email to