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

TBLCVT(1)						      General Commands Manual							 TBLCVT(1)

NAME
tblcvt - troffcvt preprocessor to convert tbl-format tables SYNTAX
tblcvt [ file ] ... DESCRIPTION
tblcvt examines troff input for tables that would normally be processed by the tbl program, i.e., for lines bracketed by the .TS table start and .TE table end requests. tblcvt parses table specifications and data and converts it to a form that troffcvt can more easily han- dle. This is useful for document processing commands that use troffcvt, since troffcvt has knowledge only of the troff input language, and knows nothing of the tbl input language. tblcvt is a direct replacement for tbl. Suppose you would normally process a document using tbl and troff (or groff, etc.) like this: % tbl file ... | troff ... To format the document using tblcvt and troffcvt, use a command like this: % tblcvt file ... | troffcvt ... Actually, it's more likely that you'll be using one of the troffcvt front ends such as troff2html than that you'll be using troffcvt directly. troffcvt in the preceding command may be replaced by the name of the front end: % tblcvt file ... | troff2html ... If it seems that troffcvt or a front end are not reading the output from tblcvt , specify - after the option list to explicitly tell them to read the standard input after processing their other options: % tblcvt file ... | troffcvt ... - % tblcvt file ... | troff2html ... - DIAGNOSTICS
Diagnostic messages are written in this format: tblcvt:line l (table t, section s): message... This indicates that a problem was detected at line number l, and that tblcvt considers the line to be part of table number t and section s within the table. Section numbers start at one and are incremented for each .T& request that occurs within a table specification. SEE ALSO
troffcvt(1) tblcvt - A troffcvt Preprocessor WHO-TO-BLAME Paul DuBois, dubois@primate.wisc.edu. BUGS
For the most part, tblcvt assumes your tables make sense, i.e., are legal according to the tbl input language. tblcvt may complain about malformed table constructs (if it detects them), but it may also get confused by them and generate garbage output. tblcvt generates troff output that uses long request names, so you can't use compatibility mode -C ( option) with troffcvt or a troffcvt front end. tblcvt doesn't support vertically-spanned lines. It prints a warning when it detects one, but the table output won't be correct. TBLCVT(1)
Man Page