Correct man page formatting in RST output
[ric-plt/lib/rmr.git] / doc / src / rtd / setup.im
1 .** vim: ts=4 sw=4 noet:
2 .if false
3 ==================================================================================
4         Copyright (c) 2019 Nokia
5         Copyright (c) 2018-2019 AT&T Intellectual Property.
6
7    Licensed under the Apache License, Version 2.0 (the "License");
8    you may not use this file except in compliance with the License.
9    You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18 ==================================================================================
19 .fi
20
21 .if false
22         Mnemonic:       setup.im
23         Abstract:       Look at environment variables and pull in the correct setup prep
24                                 imbed file based on the desired output type (when running tfm).
25                                 Obviously, when running pfm we are always generating postscirpt
26                                 so this isn't really doing much.
27         Date:           6 November 2019
28 .fi
29
30 .if  ! _setup_im
31
32 .** if LIB is in the environment we expect it to point at our parent
33 .gv e LIB lib
34 .if ! lib
35         .dv lib ..
36 .fi
37
38 .hn off
39
40 .** CAUTION:  xfm comparisons are reverse polish so  "a b ="  is true if a == b.
41 .if pfm
42         .dv ot postscript
43         .im &{lib}/generic_ps.im
44 .ei
45         .gv e OUTPUT_TYPE ot
46         .if "&ot" "txt" =
47                 .im &{lib}/txt.im
48         .fi
49         .if "&ot" "rst" =
50                 .im &{lib}/rst.im
51         .fi
52         .if "&ot" "markdown" =
53                 .im &{lib}/markdown.im
54         .fi
55         .if "&ot" "troff" =
56                 .im &{lib}/roff.im
57         .fi
58         .if "&ot" "html" =
59                 .im &{lib}/html.im
60         .fi
61 .fi
62
63 .** if we can set a license into the output, do it early
64 .cd 1 11i
65 &line_len(10i)
66 .im license.im
67 .cd 1 6.5i m=0 i=0
68 &line_len( 6i)
69
70 .if ! textsize
71         .dv textsize 10
72 .fi
73 .if ! textfont
74         .dv textfont Helvetica
75 .fi
76
77 .if doc_title
78         .im &{lib}/library/front_junk.im
79 .fi
80
81 .dv _setup_im 1
82 .fi