Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: [man-lug]PTX

  • To: man-lug@xxxxxxxxxxxxxxxxxxxxxx
  • Subject: Re: [man-lug]PTX
  • From: Roy Schestowitz <r@xxxxxxxxxxxxxxx>
  • Date: Mon, 23 Jan 2006 04:25:26 +0000
  • Delivery-date: Mon, 23 Jan 2006 04:26:32 +0000
  • Envelope-to: r@schestowitz.com
  • In-reply-to: <4537145D-EE89-483A-B839-DA9A270E30FD@manchester.ac.uk>
  • List-id: Manchester Linux Users Group <man-lug.lists.manchester.ac.uk>
  • References: <4537145D-EE89-483A-B839-DA9A270E30FD@manchester.ac.uk>
  • User-agent: Internet Messaging Program (IMP) H3 (4.0.3)
_____/ On Sun 22 Jan 2006 20:50:42 GMT, [John Heaton] wrote : \_____

After Saturday's talk, I had a play around with a few of the more obscure commands/options.

In the good old days, I remember playing around with a document processing system that had a 'KWIC' index. The 'ptx' command gives that kind of output. If you just use the command with a text file as an option the output isn't of much use, but add a few options...

	ptx -ARfw70 Oxford_Book_Of_English_Verse.txt

The document name and line numbers are added to each line and the index is made case-insensitive with the width set to 70 characters (minus the name/line field).

The output index is quite large - several times the size of the original file, which is why KWIC indexes used to skip certain common words like 'and; the; is' etc...

John

I could not attend Saturday's talk as I'm currently away, but if what you seek to achieve are fancy plain-text outputs, also consider paradj ( http://freshmeat.net/projects/paradj/ ) , which uses TeX libraries for indentation, hyphenation, and justification. I often use this tool to re-format E-mail/newsgroups messages. Also, be aware that LyX ( http://lyx.org ), a front-end to LaTeX, can produce nice-looking plain-text output. TOC's and indices should be included too.

Best wishes,

Roy


---------------------------------------------- http://lists.manchester.ac.uk/mailman/listinfo/man-lug

ManLUG WWW Pages: http://www.manlug.mcc.ac.uk/


[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index