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
|
|