troff

groff: can I embed images?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 10:23:35
问题 I'm generating some troff-style documentation. Is there a way to embed an image (jpg, etc) into a groff file? 回答1: Depends on the output format. If you are creating a PostScript file, you can use PSPIC which uses a PS file itself with a single image. For example: .PSPIC image.ps Alignment, etc is a bit limited. By default it is aligned to the center but you can put it at the left or the right corner using -L or -R. There are some other options, check the groff_tmac manpage for these (search

Text codepage in groff

喜欢而已 提交于 2019-12-13 00:43:10
问题 How to setup a correct codepage in groff ? For example to use a cyrillic language. Man page notes about -T switch. But troff -T utf8 -ms troff_file.txt gives: warning: invalid input character code 128` 回答1: -Tutf8 only selects the output device. If you want groff to accept Unicode input, use the -K switch. Another way to have Cyrillic is simply to use Tlatin1 to enable eight-bit character codes, and feed groff a source file in a single-byte encoding such as CP 1251 or KOI8-R . Don't forget to

What tools are available to edit manpages, i.e. GUI WYSIWYG editors (any platform)

蓝咒 提交于 2019-12-07 02:30:26
问题 Is there any decent GUI(Graphical User Interface) WYSIWYG(What You See is What You Get) editor (on any platform) that can be used for authoring/editing manpages? An app that can export to the troff format would also be fine. 回答1: NroffEdit was originally created for writing RFCs, but since they're, like man pages, in troff format, I guess you could use it for that. 回答2: You want ronn. Ronn builds manuals. It converts simple, human readable textfiles to roff for terminal display, and also to

What tools are available to edit manpages, i.e. GUI WYSIWYG editors (any platform)

吃可爱长大的小学妹 提交于 2019-12-05 05:50:42
Is there any decent GUI(Graphical User Interface) WYSIWYG(What You See is What You Get) editor (on any platform) that can be used for authoring/editing manpages? An app that can export to the troff format would also be fine. NroffEdit was originally created for writing RFCs, but since they're, like man pages, in troff format , I guess you could use it for that. You want ronn . Ronn builds manuals. It converts simple, human readable textfiles to roff for terminal display, and also to HTML for the web. It's not WYSIWYG, but it does let you export normal text files. Since nroff doesn't support