05-16-2008
Page feed in Troff
Hi, does anyone knows how to give the page feed command to Printer in troff.
Actually I want to implement the functionality where I'll print say 10 pages and I want user to stop printer at 5th page to do manual feed by user ....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I'm going write a small handbook. The typesetting software I'm going to use is troff. There are -ms -me -mm macros for troff. Which one is the most suitable? Thanks!
-Tony (2 Replies)
Discussion started by: tonyt
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I've a text file that has a formfeed character at the beginning.
I want to get rid of this formfeed character using sed.
But I don't know how to specify the formfeed character.
I've tried \014 (octal for formfeed), \f but still not works.
Regards,
Johnny (5 Replies)
Discussion started by: johnny_woo
5 Replies
3. Shell Programming and Scripting
hi all
i have file_1 which contains 66 pages and i want to print only page 1 to 3
i try to write like this
lp -d name_of_printer file_1 -P 1-7
this command does not work
any ideas ? (4 Replies)
Discussion started by: naamas03
4 Replies
4. Solaris
Hi,
Currently I'm experience very high page ins on my system running on solaris 10.
From vmstat, the page ins figure is very high, further drill down shows the page ins are from file system and occassional spike in executable page ins.
Details as follow:
oracle@perch:/files>> vmstat 5... (9 Replies)
Discussion started by: srage
9 Replies
5. Shell Programming and Scripting
Hi
I have a file with lots of line feeds and form feeds (page break). Need to replace last occurrence of form feed (created by - echo "\f" ) in the file with line feed.
Please advise how can i achieve this.
TIA
Prvn (5 Replies)
Discussion started by: prvnrk
5 Replies
6. UNIX for Dummies Questions & Answers
Good afternoon,
I wonder how i could use unix commands to ease the reading of long command result output ?
like the "php -i" or any other command that returns a long answer.
I could not find the right terms to Google it or search the forum. Therefore I bother you with this question.
... (3 Replies)
Discussion started by: Mat_k
3 Replies
7. Web Development
Hi
Is there a way to calculate the page load time, I am trying to calculate the load time of a page locally. I found tools to do this over http or https but none that work locally.
Any ideas?
Thanks. (4 Replies)
Discussion started by: jamie_123
4 Replies
8. Shell Programming and Scripting
Hi
I have a pdf file that is being generated using the rwrun command in the shell script.
I then have the lp command in the shell script to print the same pdf file.
Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies
9. Shell Programming and Scripting
Hi,
If there is an expert that can help:
I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C.
I want to add page numbers before each page break as in : Page XXXX
Regards antman (9 Replies)
Discussion started by: antman
9 Replies
10. Shell Programming and Scripting
Hello.
First happy new year to everybody.
I have a script that generate a text file ( /tmp/part_list.txt for example ).
This file can be edited using a kde graphical text editor like kate or kwrite
The file can be printed out from command line or within the text editor using the print... (5 Replies)
Discussion started by: jcdole
5 Replies
PROOF(1) General Commands Manual PROOF(1)
NAME
proof - troff output interpreter
SYNOPSIS
proof [ -mmag ] [ -/nview ] [ -F dir ] [ -d ] [ file ]
DESCRIPTION
Proof reads troff(1) intermediate language from file or standard input and simulates the resulting pages on the screen.
After a page of text is displayed, proof pauses for a command from the keyboard. The typed commands are:
newline Go on to next page of text.
- Go back to the previous page.
q Quit.
pn Print page n. An out-of-bounds page number means the end nearer to that number; a missing number means the current page; a
signed number means an offset to the current page.
n Same as pn.
c Clear the screen, then wait for another command.
mmag Change the magnification at which the output is printed. Normally it is printed with magnification .9; mag=.5 shrinks it to half
size; mag=2 doubles the size.
xval Move everything val screen pixels to the right (left, if val is negative).
yval Move everything val screen pixels down (up, if val is negative).
/nview Split the window into nview pieces. The current page goes into the rightmost, bottommost piece, and previous pages are shown in
the other pieces.
-F dir Use dir for fonts instead of /lib/font/bit.
d Toggle the debug flag.
These commands are also available, under slightly different form, from a menu on button 3. The pan menu item allows arbitrary positioning
of the page: after selecting pan, press the mouse button again and hold it down while moving the page to the desired location. The page
will be redisplayed in its entirety when the button is released.
The m, x, y, F, /, and d commands are also available as command line options.
FILES
/lib/font/bit/*
fonts
/lib/font/bit/MAP
how to convert troff output fonts and character names into screen fonts and character numbers
SOURCE
/sys/src/cmd/proof
SEE ALSO
lp(1), gs(1)
J. F. Ossanna and B. W. Kernighan, ``Troff User's Manual''
PROOF(1)