Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

troff2rtf(1) [linux man page]

TROFF2RTF(1)						      General Commands Manual						      TROFF2RTF(1)

NAME
troff2rtf - convert troff documents to Rich Text Format SYNTAX
troff2rtf [ -mxx ] [ -S charset ] [ file ... ] DESCRIPTION
troff2rtf processes documents written to be formatted with troff (or nroff, or any of the other *roff variants) and converts them to Rich Text Format. RTF is a reasonably portable interchange standard; files in RTF format can be read by a variety of applications, e.g., Micro- soft Word, WordPerfect (Macintosh version 2.0 and up), WriteNow. The main use for troff2rtf is to make it easier to transport troff documents for use with microcomputers. First, convert your document to RTF: % troff2rtf [options] file > file.rtf The available options are described below. The one you'll most likely use is -mxx to specify a macro package like -me or -ms. If the doc- ument contains tables, the conversion can be done like this instead: % tblcvt file | troff2rtf [options] > file.rtf Then move the RTF file to your target machine and read it into your document processor. Optional flags may be given to modify the operation of troff2rtf, as follows: -mxx Specify macro package, usually -man, -me, -mm, or -ms. -S charset Specify the RTF character set. charset can be one of the following: ansi mac pc pca. The default is the Macintosh character set. For documents that you intend to use under Windows, -S ansi is a better choice. SEE ALSO
tblcvt(1), troffcvt(1) WHO-TO-BLAME Paul DuBois, dubois@primate.wisc.edu. BUGS
Table output generated when troff2rtf is used in concert with tblcvt has been known to crash Word outright; caution may be in order. In addition, you may need to read the resulting RTF document into a word processor and tweak column widths manually. Word97 adds support for vertically merging table cells (using the clvmgf and clvmrg control words). troff2rtf supports vertical spans using these controls, but earlier versions of Word don't yet understand them. Consequently, what you'll see for n-cell vertical spans is n individual cells, with all the text in the top cell and n-1 empty cells below it. TROFF2RTF(1)

Check Out this Related Man Page

UNROFF(1)						      General Commands Manual							 UNROFF(1)

NAME
unroff - convert troff documents to plain text SYNTAX
unroff [ -E ] [ -J ] [ -8 ] [ -mxx ] [ file ... ] DESCRIPTION
unroff processes documents written to be formatted with troff (or nroff, or any of the other *roff variants) and converts them to plain text. This is similar to what deroff does, but the result is sometimes better than deroff output. Optional flags may be given to modify the operation of unroff, as follows: -E Echo input tokens as they are read. Useful mainly for debugging. -J Join output lines that would be part of a single paragraph so they form a single output line. This is useful if you plan to move the resulting output into a document formatter that treats paragraphs as a single line. The default is to do line wrapping accord- ing to the line length specified in the input document. -8 Write 8-bit ISO Latin-1 (ISO 8859-1) characters. This option may be useful for producing output intended to be viewed on devices capable of 8-bit character display. Without this option, 8-bit Latin-1 characters will generall appear in the output as ``[[name]]'' where ``name'' is the troffcvt internal name for the character, e.g., ``[[Aacute]]''. For some of these characters, an ASCII approximation will be used if something reasonably close is available. -mxx Specify macro package, usually -man, -me, -mm, or -ms. DIAGNOSTICS
line length clipped to nnn chars. A very long line length was requested, so long that it would likely result in output line assembly buf- fer overflow. The length is clipped to prevent this. output buffer capacity exceeded. This means some line is so long that it couldn't be collected in the output line assembly buffer. Most likely this signals a bug in tc2text, since the length is supposed to be kept within reasonable bounds (see previous paragraph). SEE ALSO
troffcvt(1), tc2text(1) WHO-TO-BLAME Paul DuBois, dubois@primate.wisc.edu. BUGS
unroff doesn't do so well with tables, particularly tables with multiple-line cells. Table centering isn't handled. UNROFF(1)
Man Page