Topic: DVIPS2.vdm (1 of 7), Read 34 times, 1 File Attachment
Conf: VEDIT Macro Library
From: Fritz Heberlein
Date: Saturday, February 28, 2004 10:57 AM

I have written a dialog box which facilitates the conversion of (TeX-)DVI files to Postscript and postscript printing.

It can set first / last page to be printed, portrait / landscape orientation, print odd / even pages and print multiple (collated) copies.

We can preview or print the file using GSView.

So we can avoid using YAP, whose Print Postscript function has been to me a constant source of modest amusement.

Fritz

 
DVIPS2.VDM (2KB)

 


Topic: Re: DVIPS2.vdm (2 of 7), Read 22 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Sunday, February 29, 2004 04:11 PM

Fritz:

You wrote:
>I have written a dialog box which facilitates the conversion of (TeX-)DVI files
>to Postscript and postscript printing.

Nice little helper!

A minor problem: when choosing "even" or "odd" it is no longer
possible to change one's mind back to "all" (what you set as default
with #6=0).

May I suggest the following modifications (marked with ">>>"):


#5=0
>>> #6=1
#7=1

#77=Dialog_Input_1(5,"`DVI to PS`,
'First Page?',`??`,'Last Page?',`??`,
'# of Copies?',`??`,
`.v.c[]&Landscape`,
>>> `.g.l()&All`,`()&Odd`,`()&Even`,
`.g.l()&Preview`,`()&Print`,
",SCREEN+CENTER+SET,0,0)

if(#77==0) { breakout(extra)}
if(reg_compare(5,"1")==0){ reg_set(5,"-p =1") }
else{ reg_set(5,"-p ",INSERT) } // Set first
page #
if(reg_compare(6,"")==1){reg_set(6,"-l ",INSERT) } // Set last page
#
if(reg_compare(7,"")==1){reg_set(7,"-C ",INSERT) } // # of Copies
if(#5==1){regset(8,"-t landscape")} // Landscape
>>> if(#6==2){regset(9,"-A ")} // Odd
>>> if(#6==3){regset(9,"-B ")} // Even


Christian

 


Topic: Re: DVIPS2.vdm (3 of 7), Read 26 times
Conf: VEDIT Macro Library
From: Fritz Heberlein
Date: Sunday, February 29, 2004 05:11 PM

Christian:

You are right; thanks for the correction!

BTW: do you know of a trick to order radio buttons horizontally?

Frritz
--
Dr. Friedrich Heberlein, Akad. Direktor
Seminar für Klassische Philologie, KU Eichstaett-Ingolstadt
Universitaetsallee 1
D-85071 Eichstaett / Bayern

 


Topic: Re: DVIPS2.vdm (4 of 7), Read 26 times, 1 File Attachment
Conf: VEDIT Macro Library
From: Fritz Heberlein
Date: Sunday, February 29, 2004 05:12 PM

Here is a new version of dvips2.vdm, improved according to Christian's suggestions.

Fritz

 
DVIPS2(1).VDM (2KB)

 


Topic: Re: DVIPS2.vdm (5 of 7), Read 22 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Monday, March 01, 2004 02:14 AM

Fritz:

You wrote:
>BTW: do you know of a trick to order radio buttons horizontally?

With ".h".

The following code snippet is from macros/linefilt.vdm {Misc, More macros, Linefilter}:

`Delete all lines `,
`.h()-with- or`,
`.h()-without- the search string`,

Christian

 


Topic: Re: DVIPS2.vdm (6 of 7), Read 24 times
Conf: VEDIT Macro Library
From: Fritz Heberlein
Date: Monday, March 01, 2004 03:42 PM

vedit-macros Listmanager am 1 Mar 2004, 2:14:

> With ".h".
>
Thank you Christian, this does it. Apparently, i have misinterpreted
the help file, which says

'Radio buttons are always grouped together by preceding the first one
with ".g". '

The latter seems to force vertical order of radio buttons.

Fritz


--
Dr. Friedrich Heberlein, Akad. Direktor
Seminar für Klassische Philologie, KU Eichstaett-Ingolstadt
Universitaetsallee 1
D-85071 Eichstaett / Bayern

 


Topic: Re: DVIPS2.vdm (7 of 7), Read 11 times
Conf: VEDIT Macro Library
From: Peter Rejto
Date: Saturday, September 04, 2004 10:40 AM

Fritz,

I would like to know whether you could implement "Inverse Search" in your postcript macro?

-peter.