如何像 Linux 手册页中的 table 那样分两栏书写?
How to write in two columns like a table in Linux man pages?
我正在为我的 C 库创建一个自定义手册页,我想做这样的事情
LIST OF FUNCTIONS |<--- terminal window side
|
Function Description |
function1 function1's description |
function2 function2's description |
which is longer than the |<--- here if the text
first one | overlaps out of the window,
function3 function3's description | it auto-aligns to Description
... ... |
我该怎么做?
我认为它是 https://tldp.org/HOWTO/Man-Page/q3.html and then use GROFF - https://www.linuxjournal.com/article/1158
的组合
.SH DESCRIPTION
.B foo
frobnicates the bar library by tweaking internal
symbol tables. By default it parses all baz segments
and rearranges them in reverse order by time for the
.BR xyzzy (1)
linker to find them. The symdef entry is then compressed
using the WBG (Whiz-Bang-Gizmo) algorithm.
All files are processed in the order specified.
在 linuxjournal 站点上有一个命令如下:
$ groff -Tascii -man coffee.man | more
groff 手册页开头如下:
The man macro package for groff is used to produce manual pages
(“man pages”) like the one you are reading.
我正在为我的 C 库创建一个自定义手册页,我想做这样的事情
LIST OF FUNCTIONS |<--- terminal window side
|
Function Description |
function1 function1's description |
function2 function2's description |
which is longer than the |<--- here if the text
first one | overlaps out of the window,
function3 function3's description | it auto-aligns to Description
... ... |
我该怎么做?
我认为它是 https://tldp.org/HOWTO/Man-Page/q3.html and then use GROFF - https://www.linuxjournal.com/article/1158
的组合.SH DESCRIPTION
.B foo
frobnicates the bar library by tweaking internal
symbol tables. By default it parses all baz segments
and rearranges them in reverse order by time for the
.BR xyzzy (1)
linker to find them. The symdef entry is then compressed
using the WBG (Whiz-Bang-Gizmo) algorithm.
All files are processed in the order specified.
在 linuxjournal 站点上有一个命令如下:
$ groff -Tascii -man coffee.man | more
groff 手册页开头如下:
The man macro package for groff is used to produce manual pages
(“man pages”) like the one you are reading.