Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给出一个可以工作的 c 代码,如何使用groff它来生成 pdf 格式的手册页。它是可以自动生成的,还是需要手动 创建文件?我唯一的指示是使用groff with the “man” macro package
groff
groff with the “man” macro package
Groff(使用手册页的宏)以适当的方式格式化文本。您仍然需要编写文本。或更少的man宏会迫使您以正确的格式编写页面。
man
您无法从 C 程序自动生成手册页。程序告诉计算机该做什么,手册页告诉用户该做什么。这些是完全不同的概念。