1. NAME

. soelim - interpret .so requests in groff input . .

2. SYNOPSIS

. .SY soelim .OP -Crtv .OP -I dir [ files  . . . ] .YS .

It is possible to have whitespace between the

-I command line option and its parameter. . .

3. DESCRIPTION

.

soelim reads files and replaces lines of the form

.so\~ file

by the contents of file . It is useful if files included with

.so need to be preprocessed. Normally,

soelim should be invoked with the

-s option of

R groff . .

To embed `\[rs]' in the file name, write `\[rs]\[rs]' or `\[rs]e'. To embed a space, write `\[rs] '. Any other escape sequence in file makes

soelim ignore the whole line. .

Note that there must be no whitespace between the leading dot and the two characters `s' and `o'. Otherwise, only

groff interprets the

.so request (and

soelim ignores it). . .

4. OPTIONS

.

-C

    Recognize

.so even when followed by a character other than space or newline. .

  • -I dir
        This option may be used to add a directory to the search path for files (both those on the command line and those named in

.so requests). The search path is initialized with the current directory. This option may be specified more than once; the directories are then searched in the order specified (but before the current directory). If you want to make the current directory be read before other directories, add

-I. at the appropriate place.

No directory search is performed for files with an absolute file name. .

-r

    Do not add

.lf requests (for general use, with non-groff files). .

-t

    Don't emit

.lf requests but TeX comment lines (starting with `%') giving the current file and line number. .

-v

    Print the version number. . .

5. USAGE

. The normal processing sequence of groff is this: .

.ie t \ .PS .ps 10 .vs 12 box invisible width 0.5 height 0.4 "input" "file"; move to last box .bottom; down; arrow 0.3; box invisible width 0.8 height 0.2 "preprocessor"; move to last box .right right; arrow 0.3; A: box invisible width 0.35 height 0.2 "troff"; move to last box .top; up; move 0.3; box invisible width 0.6 height 0.4 "sourced" "file"; line <- up 0.3 from A.top; move to A.right; right; arrow 0.3; box invisible width 0.85 height 0.2 "postprocessor"; move to last box .bottom; down; arrow 0.3; box invisible width 0.5 height 0.4 "output" "file" .ps .vs .PE .

 
Sélectionnez
         input        sourced
          file          file
            |             |
            v             v
        preprocessor -> troff -> postprocessor
                                      |
                                      v
                                   output
                                    file

.

. That is, files sourced with

.so are normally read only by

troff (the actual formatter).

soelim is not required for

troff to source files. .

If a file to be sourced should also be preprocessed, it must already be read before the input file passes through the preprocessor. This is handled by

R soelim : .

.ie t \ .PS .ps 10 .vs 12 box invisible width 0.5 height 0.4 "input" "file"; move to last box .bottom; down; arrow 0.3; A: box invisible width 0.5 height 0.2 "soelim"; line <- 0.3; box invisible width 0.5 height 0.4 "sourced" "file"; move to A.right; right; arrow 0.3; box invisible width 0.8 height 0.2 "preprocessor"; arrow 0.3; box invisible width 0.35 height 0.2 "troff"; arrow 0.3 box invisible width 0.85 height 0.2 "postprocessor"; move to last box .bottom; down; arrow 0.3; box invisible width 0.5 height 0.4 "output" "file" .ps .vs .PE .

 
Sélectionnez
         input
          file
            |
            v
          soelim -> preprocessor -> troff -> postprocessor
            ^                                     |
            |                                     v
         sourced                               output
          file                                  file

. . .

6. SEE ALSO

.

R groff (1) .