[comp.sys.next] printer orientation or tab stops

rbeach@slate.mines.colorado.edu (Richard Beach) (04/27/91)

	I hope that someone else has managed to solve this little puzzle.

	I have source that was done up in vi with the tabs set to 4 spaces.
	I want to print it.
	It loses the ends of lines off the edge of the page.

	I've looked through manuals for several hours to find a solution.
	None of what I've tried has worked.
	The two types of solutions I've tried for have been:
	
	1)  getting lpr to set the tabstops to 4 characters instead of 8.
		It just doesn't seem to want to do that, but it sure
		seems like it ought to.

	2)  Changing some sort of default so that I get landscape mode with
		lpr.  I haven't played with this as much, but basically have
		tried a few permutations of:
		dwrite System PrinterOrientation LandScape
		This seems like it would sort of be a nice thing to do
		for other reasons too.

	So, has anyone managed either of these two things?  Would you please
let me in on the secret.  And, could you please let me know with e-mail,
since I am sort of busy finishing things up for the end of the semester right
now, and missing out on news.

	Thank you.

[sorry if I sound a bit short here, but I am.  Pnews and the machine have
 been less than cooperative this evening.]


---------------------------------------------------------------------------
Richard Beach   @   Colorado School of Mines        Golden, Colorado   USA
I-Net and BitNet : rbeach@mines                     |     CS/CH
             or  : rbeach@slate.mines.colorado.edu  |
UUCP             : ...isis!csm9a!rbeach             |  

mdixon@parc.xerox.com (Mike Dixon) (04/27/91)

(a) to print your file with tabs every four characters, pipe it through
    expand -4

(b) to print it in landscape mode, use enscript -r

(to save paper, do both and use enscript's 2-column mode:
      expand -4 <your-file | enscript -2r
)

--

                                             .mike.

rbeach@slate.mines.colorado.edu (Richard Beach) (04/28/91)

In article <1991Apr26.181443.25559@slate.mines.colorado.edu> rbeach@slate.mines.colorado.edu (Richard Beach) writes:
>
>	I have source that was done up in vi with the tabs set to 4 spaces.
>	I want to print it.
>	It loses the ends of lines off the edge of the page.
>	
>	1)  getting lpr to set the tabstops to 4 characters instead of 8.
>
>	2)  Changing some sort of default so that I get landscape mode with
>		lpr.  
>

	I have gotten a number of responses, and have gotten the problem
solved.  Thank you very much to everyone who helped.

	Several people pointed me towards the expand(1) command, which I had
overlooked before.  Something to the effect of
	alias lpr "expand \!\!:1 | /usr/ucb/lpr"
was an ideal solution for my situation.

	The enscript(1) command was also sugested for obtaining landscape
mode prints.

	Using edit to print was also sugested, but that sort of seemed
a hassle to me, since I don't always work on the console, and even when
I do, do a lot of work in a terminal window.

	Thanks again for all the help. :)


---------------------------------------------------------------------------
Richard Beach   @   Colorado School of Mines        Golden, Colorado   USA
I-Net and BitNet : rbeach@mines                     |     CS/CH
             or  : rbeach@slate.mines.colorado.edu  |
UUCP             : ...isis!csm9a!rbeach             |