[BACK]Return to mdoc.7 CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mdoc.7 between version 1.203 and 1.210

version 1.203, 2011/08/19 10:19:55 version 1.210, 2011/09/18 07:57:16
Line 98  or a single one character sequence.
Line 98  or a single one character sequence.
 Examples:  Examples:
 .Bl -tag -width Ds -offset indent -compact  .Bl -tag -width Ds -offset indent -compact
 .It Li \e(em  .It Li \e(em
 em dash  Two-letter em dash escape.
 .It Li \ee  .It Li \ee
 backslash  One-letter backslash escape.
 .El  .El
 .Pp  .Pp
 See  See
Line 126  scope.
Line 126  scope.
 Examples:  Examples:
 .Bl -tag -width Ds -offset indent -compact  .Bl -tag -width Ds -offset indent -compact
 .It Li \efBbold\efR  .It Li \efBbold\efR
 write in bold, then switch to regular  Write in bold, then switch to regular font mode.
 .It Li \efIitalic\efP  .It Li \efIitalic\efP
 write in italic, then return to previous  Write in italic, then return to previous font mode.
 .El  .El
 .Pp  .Pp
 Text decoration is  Text decoration is
Line 152  and N-character
Line 152  and N-character
 Examples:  Examples:
 .Bl -tag -width Ds -offset indent -compact  .Bl -tag -width Ds -offset indent -compact
 .It Li \e*(Am  .It Li \e*(Am
 ampersand  Two-letter ampersand predefined string.
 .It Li \e*(Ba  .It Li \e*q
 vertical bar  One-letter double-quote predefined string.
 .El  .El
 .Pp  .Pp
 These strings are set using  These strings are set using
Line 176  In the rare case that a blank character is needed at t
Line 176  In the rare case that a blank character is needed at t
 input line, it may be forced by  input line, it may be forced by
 .Sq \e\ \e& .  .Sq \e\ \e& .
 .Pp  .Pp
 In general, space characters can be considered as non-whitespace  In general, space characters can be rendered as literal
 characters by using non-breaking space escapes or  characters by using non-breaking space escapes or
 .Sx Quotation .  .Sx Quotation .
 .Pp  .Pp
Line 197  terminates the literal, regardless of surrounding whit
Line 197  terminates the literal, regardless of surrounding whit
 Examples:  Examples:
 .Bl -tag -width Ds -offset indent -compact  .Bl -tag -width Ds -offset indent -compact
 .It Li .Fn strlen \(dqconst char *s\(dq  .It Li .Fn strlen \(dqconst char *s\(dq
 groups  Group arguments
 .Qq const char *s  .Qq const char *s
 into one term  into one function argument.
 .Pq see Sx \&Fn  If unspecified,
   .Qq const ,
   .Qq char ,
   and
   .Qq *s
   would be considered separate arguments.
   .Pq See Sx \&Fn .
 .It Li .Op \(dqFl a\(dq  .It Li .Op \(dqFl a\(dq
 considers  Consider
 .Qq \&Fl a  .Qq \&Fl a
 as literal text  as literal text instead of a flag macro.
 .Pq see Sx \&Op , \&Fl  .Pq Aee Sx \&Op , \&Fl .
 .El  .El
 .Ss Scaling Widths  .Ss Scaling Widths
 Many macros support scaled widths for their arguments.  Many macros support scaled widths for their arguments.
Line 683  contain a head.
Line 689  contain a head.
 \(lBbody...\(rB  \(lBbody...\(rB
 \&.Yc  \&.Yc
 .Ed  .Ed
 .Pp  .Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXX" -offset indent
 .Bl -column -compact -offset indent "MacroX" "CallableX" "ParsedX" "closed by XXX"  
 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope  .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
 .It Sx \&Bd  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Ed  .It Sx \&Bd  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Ed
 .It Sx \&Bf  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Ef  .It Sx \&Bf  Ta    \&No     Ta    \&No     Ta    closed by Sx \&Ef
Line 716  has multiple heads.
Line 721  has multiple heads.
 \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead... \(lBTa head...\(rB\(rB  \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead... \(lBTa head...\(rB\(rB
 \(lBbody...\(rB  \(lBbody...\(rB
 .Ed  .Ed
 .Pp  .Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXXXXXXXXX" -offset indent
 .Bl -column -compact -offset indent "MacroX" "CallableX" "ParsedX" "closed by XXXXXXXXXXX"  
 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope  .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
 .It Sx \&It Ta \&No Ta Yes  Ta closed by Sx \&It , Sx \&El  .It Sx \&It Ta \&No Ta Yes  Ta closed by Sx \&It , Sx \&El
 .It Sx \&Nd Ta \&No Ta \&No Ta closed by Sx \&Sh  .It Sx \&Nd Ta \&No Ta \&No Ta closed by Sx \&Sh
Line 752  and/or tail
Line 756  and/or tail
 \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB \  \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB \
 \(lBbody...\(rB \&Yc \(lBtail...\(rB  \(lBbody...\(rB \&Yc \(lBtail...\(rB
 .Ed  .Ed
 .Pp  .Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXX" -offset indent
 .Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXX" -compact -offset indent  
 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope  .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
 .It Sx \&Ac  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Ao  .It Sx \&Ac  Ta    Yes      Ta    Yes      Ta    opened by Sx \&Ao
 .It Sx \&Ao  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Ac  .It Sx \&Ao  Ta    Yes      Ta    Yes      Ta    closed by Sx \&Ac
Line 786  end of the line.
Line 789  end of the line.
 .Bd -literal -offset indent  .Bd -literal -offset indent
 \&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBbody...\(rB \(lBres...\(rB  \&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBbody...\(rB \(lBres...\(rB
 .Ed  .Ed
 .Pp  .Bl -column "MacroX" "CallableX" "ParsedX" -offset indent
 .Bl -column "MacroX" "CallableX" "ParsedX" -compact -offset indent  
 .It Em Macro Ta Em Callable Ta Em Parsed  .It Em Macro Ta Em Callable Ta Em Parsed
 .It Sx \&Aq  Ta    Yes      Ta    Yes  .It Sx \&Aq  Ta    Yes      Ta    Yes
 .It Sx \&Bq  Ta    Yes      Ta    Yes  .It Sx \&Bq  Ta    Yes      Ta    Yes
Line 822  in
Line 824  in
 lists.  lists.
 It delimits blocks representing table cells;  It delimits blocks representing table cells;
 these blocks have bodies, but no heads.  these blocks have bodies, but no heads.
 .Pp  .Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXX" -offset indent
 .Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXX" -compact -offset indent  
 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope  .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
 .It Sx \&Ta  Ta    Yes      Ta    Yes    Ta closed by Sx \&Ta , Sx \&It  .It Sx \&Ta  Ta    Yes      Ta    Yes    Ta closed by Sx \&Ta , Sx \&It
 .El  .El
Line 841  then the macro accepts an arbitrary number of argument
Line 842  then the macro accepts an arbitrary number of argument
   
 \&.Yo \(lB\-arg \(lBval...\(rB\(rB arg0 arg1 argN  \&.Yo \(lB\-arg \(lBval...\(rB\(rB arg0 arg1 argN
 .Ed  .Ed
 .Pp  .Bl -column "MacroX" "CallableX" "ParsedX" "Arguments" -offset indent
 .Bl -column "MacroX" "CallableX" "ParsedX" "Arguments" -compact -offset indent  
 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Arguments  .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Arguments
 .It Sx \&%A  Ta    \&No     Ta    \&No     Ta    >0  .It Sx \&%A  Ta    \&No     Ta    \&No     Ta    >0
 .It Sx \&%B  Ta    \&No     Ta    \&No     Ta    >0  .It Sx \&%B  Ta    \&No     Ta    \&No     Ta    >0
Line 1003  in the same way as a plain
Line 1003  in the same way as a plain
 .Sq \&|  .Sq \&|
 character.  character.
 Using this predefined string is not recommended in new manuals.  Using this predefined string is not recommended in new manuals.
   .Sh MACRO OVERVIEW
   This overview is sorted such that macros of similar purpose are listed
   together, to help find the best macro for any given purpose.
   Deprecated macros are not included in the overview, but can be found
   in the alphabetical reference below.
   .Ss Document preamble and NAME section macros
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Dd Ta document date: Cm $Mdocdate$ | Ar month day , year
   .It Sx \&Dt Ta document title: Ar TITLE section Op Ar volume | arch
   .It Sx \&Os Ta operating system version: Op Ar system Op Ar version
   .It Sx \&Nm Ta document name (one argument)
   .It Sx \&Nd Ta document description (one line)
   .El
   .Ss Sections and cross references
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Sh Ta section header (one line)
   .It Sx \&Ss Ta subsection header (one line)
   .It Sx \&Sx Ta internal cross reference to a section or subsection
   .It Sx \&Xr Ta cross reference to another manual page: Ar name section
   .It Sx \&Pp , \&Lp Ta start a text paragraph (no arguments)
   .El
   .Ss Displays and lists
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Bd , \&Ed Ta display block:
   .Fl Ar type
   .Op Fl offset Ar width
   .Op Fl compact
   .It Sx \&D1 Ta indented display (one line)
   .It Sx \&Dl Ta indented literal display (one line)
   .It Sx \&Bl , \&El Ta list block:
   .Fl Ar type
   .Op Fl width Ar val
   .Op Fl offset Ar val
   .Op Fl compact
   .It Sx \&It Ta list item (syntax depends on Fl Ar type )
   .It Sx \&Ta Ta table cell separator in Sx Bl Fl column No lists
   .It Sx \&Rs , \&%* , \&Re Ta bibliographic block (references)
   .El
   .Ss Spacing control
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Pf Ta prefix, no following horizontal space (one argument)
   .It Sx \&Ns Ta roman font, no preceding horizontal space (no arguments)
   .It Sx \&Ap Ta apostrophe without surrounding whitespace (no arguments)
   .It Sx \&Sm Ta switch horizontal spacing mode: Cm on | off
   .It Sx \&Bk , \&Ek Ta keep block: Fl words
   .It Sx \&br Ta force output line break in text mode (no arguments)
   .It Sx \&sp Ta force vertical space: Op Ar height
   .El
   .Ss Semantic markup for command line utilities:
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Nm Ta start a SYNOPSIS block with the name of a utility
   .It Sx \&Fl Ta command line options (flags) (>=0 arguments)
   .It Sx \&Cm Ta command modifier (>0 arguments)
   .It Sx \&Ar Ta command arguments (>=0 arguments)
   .It Sx \&Op , \&Oo , \&Oc Ta optional syntax elements (enclosure)
   .It Sx \&Ic Ta internal or interactive command (>0 arguments)
   .It Sx \&Ev Ta environmental variable (>0 arguments)
   .It Sx \&Pa Ta file system path (>=0 arguments)
   .El
   .Ss Semantic markup for function libraries:
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Lb Ta function library (one argument)
   .It Sx \&In Ta include file (one argument)
   .It Sx \&Ft Ta function type (>0 arguments)
   .It Sx \&Fo , \&Fc Ta function block: Ar funcname
   .It Sx \&Fn Ta function name:
   .Op Ar functype
   .Ar funcname
   .Oo
   .Op Ar argtype
   .Ar argname
   .Oc
   .It Sx \&Fa Ta function argument (>0 arguments)
   .It Sx \&Vt Ta variable type (>0 arguments)
   .It Sx \&Va Ta variable name (>0 arguments)
   .It Sx \&Dv Ta defined variable or preprocessor constant (>0 arguments)
   .It Sx \&Er Ta error constant (>0 arguments)
   .It Sx \&Ev Ta environmental variable (>0 arguments)
   .El
   .Ss Various semantic markup:
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&An Ta author name (>0 arguments)
   .It Sx \&Lk Ta hyperlink: Ar uri Op Ar name
   .It Sx \&Mt Ta Do mailto Dc hyperlink: Ar address
   .It Sx \&Cd Ta kernel configuration declaration (>0 arguments)
   .It Sx \&Ad Ta memory address (>0 arguments)
   .It Sx \&Ms Ta mathematical symbol (>0 arguments)
   .It Sx \&Tn Ta tradename (>0 arguments)
   .El
   .Ss Physical markup
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Em Ta italic font or underline (emphasis) (>0 arguments)
   .It Sx \&Sy Ta boldface font (symbolic) (>0 arguments)
   .It Sx \&Li Ta typewriter font (literal) (>0 arguments)
   .It Sx \&No Ta return to roman font (normal) (no arguments)
   .It Sx \&Bf , \&Ef Ta font block:
   .Op Fl Ar type | Cm \&Em | \&Li | \&Sy
   .El
   .Ss Physical enclosures
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Dq , \&Do , \&Dc Ta enclose in typographic double quotes: Dq text
   .It Sx \&Qq , \&Qo , \&Qc Ta enclose in typewriter double quotes: Qq text
   .It Sx \&Sq , \&So , \&Sc Ta enclose in single quotes: Sq text
   .It Sx \&Ql Ta single-quoted literal text: Ql text
   .It Sx \&Pq , \&Po , \&Pc Ta enclose in parentheses: Pq text
   .It Sx \&Bq , \&Bo , \&Bc Ta enclose in square brackets: Bq text
   .It Sx \&Brq , \&Bro , \&Brc Ta enclose in curly braces: Brq text
   .It Sx \&Aq , \&Ao , \&Ac Ta enclose in angle brackets: Aq text
   .It Sx \&Eo , \&Ec Ta generic enclosure
   .El
   .Ss Text production
   .Bl -column "Brq, Bro, Brc" description
   .It Sx \&Ex Fl std Ta standard command exit values: Op Ar utility ...
   .It Sx \&Rv Fl std Ta standard function return values: Op Ar function ...
   .It Sx \&St Ta reference to a standards document (one argument)
   .It Sx \&Ux Ta Ux
   .It Sx \&At Ta At
   .It Sx \&Bx Ta Bx
   .It Sx \&Bsx Ta Bsx
   .It Sx \&Nx Ta Nx
   .It Sx \&Fx Ta Fx
   .It Sx \&Ox Ta Ox
   .It Sx \&Dx Ta Dx
   .El
 .Sh REFERENCE  .Sh REFERENCE
 This section is a canonical reference of all macros, arranged  This section is a canonical reference of all macros, arranged
 alphabetically.  alphabetically.
Line 2302  line itself; on following lines, only the
Line 2426  line itself; on following lines, only the
 .Sx \&Ta  .Sx \&Ta
 macro can be used to delimit cells, and  macro can be used to delimit cells, and
 .Sx \&Ta  .Sx \&Ta
 is only recognized as a macro when called by other macros,  is only recognised as a macro when called by other macros,
 not as the first macro on a line.  not as the first macro on a line.
 .Pp  .Pp
 Note that quoted strings may span tab-delimited cells on an  Note that quoted strings may span tab-delimited cells on an
Line 2876  The following standards are recognised:
Line 3000  The following standards are recognised:
 .St -ieee754  .St -ieee754
 .It \-iso8802-3  .It \-iso8802-3
 .St -iso8802-3  .St -iso8802-3
   .It \-iso8601
   .St -iso8601
 .It \-ieee1275-94  .It \-ieee1275-94
 .St -ieee1275-94  .St -ieee1275-94
 .It \-xpg3  .It \-xpg3
Line 3094  Newer groff and mandoc print
Line 3220  Newer groff and mandoc print
 and the arguments.  and the arguments.
 .It  .It
 .Sx \&Bl Fl column  .Sx \&Bl Fl column
 does not recognize trailing punctuation characters when they immediately  does not recognise trailing punctuation characters when they immediately
 precede tabulator characters, but treats them as normal text and  precede tabulator characters, but treats them as normal text and
 outputs a space before them.  outputs a space before them.
 .It  .It
Line 3206  The following features are unimplemented in mandoc:
Line 3332  The following features are unimplemented in mandoc:
 .Fl offset Ar center  .Fl offset Ar center
 and  and
 .Fl offset Ar right .  .Fl offset Ar right .
 Groff does not implement centered and flush-right rendering either,  Groff does not implement centred and flush-right rendering either,
 but produces large indentations.  but produces large indentations.
 .It  .It
 The  The

Legend:
Removed from v.1.203  
changed lines
  Added in v.1.210

CVSweb