From owner-freebsd-doc Sun Jul 16 16: 0:49 2000 Delivered-To: freebsd-doc@freebsd.org Received: from nothing-going-on.demon.co.uk (unknown [206.79.44.65]) by hub.freebsd.org (Postfix) with ESMTP id EC36937BF2D; Sun, 16 Jul 2000 15:59:59 -0700 (PDT) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.9.3/8.9.3) id DAA20473; Sat, 15 Jul 2000 03:10:36 GMT (envelope-from nik) Date: Sat, 15 Jul 2000 03:10:36 +0000 From: Nik Clayton To: Neil Blakey-Milner Cc: Ben Smithurst , Nik Clayton , freebsd-doc@freebsd.org Subject: Re: FAQ addition Message-ID: <20000715031036.A20004@kilt.nothing-going-on.org> References: <396A79E9.F3AD3D1@home.com> <20000713011414.B11472@kilt.nothing-going-on.org> <20000713213435.M48641@strontium.scientia.demon.co.uk> <20000714102522.A61949@mithrandr.moria.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000714102522.A61949@mithrandr.moria.org>; from nbm@mithrandr.moria.org on Fri, Jul 14, 2000 at 10:25:22AM +0200 Organization: FreeBSD Project Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Jul 14, 2000 at 10:25:22AM +0200, Neil Blakey-Milner wrote: > Also instead of . My (limited) understanding is > when you're talking about a program or group of programs, it's > , and if you're talking about a somewhat specific command > (like "rm -rf /"), it's . You could just skip that, and use > &man.top.1; *grin*. > > Nik, can you give me a refresher? (: S'in the primer. N == 4.2.5.2. Applications, commands, options, and cites You will frequently want to refer to both applications and commands when writing for the Handbook. The distinction between them is simple: an application is the name for a suite (or possibly just 1) of programs that fulfil a particular task. A command is the name of a program that the user can run. In addition, you will occasionally need to list one or more of the options that a command might take. Finally, you will often want to list a command with its manual section number, in the ``command(number)'' format so common in Unix manuals. Mark up application names with . When you want to list a command with its manual section number (which should be most of the time) the DocBook element is . This will contain a further two elements, and . The content of is the name of the command, and the content of is the manual page section. This can be cumbersome to write, and so a series of general entities have been created to make this easier. Each entity takes the form &man.manual-page.manual-section;. The file that contains these entities is in doc/share/sgml/man-refs.ent, and can be referred to using this FPI: PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN" Therefore, the introduction to your documentation will probably look like this: %man; ... ]> Use when you want to include a command name ``in-line'' but present it as something the user should type in. Use