Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.unix.programmer > #633

Re: man page syntax for multiple Bold lines with no spaces between them?

From scott@slp53.sl.home (Scott Lurndal)
Subject Re: man page syntax for multiple Bold lines with no spaces between them?
Newsgroups comp.unix.programmer
References <d7400684-a1a9-40fc-8128-74494b241242@k3g2000prl.googlegroups.com> <sEAAp.9364$716.6717@news.usenetserver.com> <652a518e-ed09-4dc9-b493-80b57773238c@k15g2000pri.googlegroups.com> <5q3ia8-ml9.ln1@leafnode-msgid.gclare.org.uk> <d545a697-d21c-4e70-a0f0-242cce1e1095@s41g2000prb.googlegroups.com>
Organization
Organization UseNetServer - www.usenetserver.com
Message-ID <HHBBp.2298$Ah2.2093@news.usenetserver.com> (permalink)
Date 2011-05-20 22:12 +0000

Show all headers | View raw


David Mathog <dmathog@gmail.com> writes:
>On May 20, 5:35=A0am, Geoff Clare <ge...@clare.See-My-Signature.invalid>
>wrote:
>> David Mathog wrote:
>> > On May 17, 1:12=A0pm, sc...@slp53.sl.home (Scott Lurndal) wrote:
>>
>> >> \fBBoldText\fP =A0\fIItalicText\fP =A0\f(CWConstant-Width Text\fP
>>
>> > The string
>>
>> > \fBBold \fIItalic \fPNormal
>>
>> > Shows text
>> > =A0 Bold (in bold) Italic (in italic) Normal (in normal)
>>
>> > in my testing.
>>
>> Really? =A0It should show "Normal" in bold.
>
>I ran that test by checking output from ManServer 1.07.  There are a
>few inconsistencies between man and manserver, so I just went back and
>tested it directly with man and the two were different.  The former
>reverts to normal after the \fP, the latter goes to bold.  So I guess
>the answer is to stick with
>
>  \fBxxxx\fP\fIyyyy\fP
>
>Interestingly this string:
>
>normal \fBBold \fIItalic \fPnormal1 \fPnormal2 \fPnormal3 \fPnormal4
>\fPnormal5
>
>shows alternating bold and italic (as underlines) in man.  So \fP
>picks up "last" only one level deep, where ManServer shows fonts

nroff(1) which is used by the man(1) command to format the manual page
will use overstriking for bold fonts and will understrike italics
(see nroff/troff technical discussion, section 2.2 in Documenters Workbench
Technical Discussion).

You can always use (on linux, YMMV):

  troff -man manual-page-source | ps2pdf - manpage.pdf

or

  tbl manual-page-source-with-tables | troff -man | ps2pdf - manpage.pdf


Then use xpdf, acroread or evince to examine the typeset manpage.

The documentation doesn't explicitly discuss the depth of the \fP stack, but
the implication is that it is only one level deep (and in the hundreds of
troff documents I've written over the last 30 years, I've never assumed that
\fP nests).

scott

Back to comp.unix.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

man page syntax for multiple Bold lines with no spaces between them? David Mathog <dmathog@gmail.com> - 2011-05-17 12:09 -0700
  Re: man page syntax for multiple Bold lines with no spaces between them? scott@slp53.sl.home (Scott Lurndal) - 2011-05-17 20:12 +0000
    Re: man page syntax for multiple Bold lines with no spaces between them? David Mathog <dmathog@gmail.com> - 2011-05-17 13:22 -0700
    Re: man page syntax for multiple Bold lines with no spaces between them? David Mathog <dmathog@gmail.com> - 2011-05-19 14:21 -0700
      Re: man page syntax for multiple Bold lines with no spaces between them? loozadroog <mijoryx@yahoo.com> - 2011-05-19 22:30 -0700
      Re: man page syntax for multiple Bold lines with no spaces between them? Geoff Clare <geoff@clare.See-My-Signature.invalid> - 2011-05-20 13:35 +0100
        Re: man page syntax for multiple Bold lines with no spaces between them? David Mathog <dmathog@gmail.com> - 2011-05-20 08:55 -0700
          Re: man page syntax for multiple Bold lines with no spaces between them? scott@slp53.sl.home (Scott Lurndal) - 2011-05-20 22:12 +0000
  Re: man page syntax for multiple Bold lines with no spaces between them? loozadroog <mijoryx@yahoo.com> - 2011-05-17 14:50 -0700
    Re: man page syntax for multiple Bold lines with no spaces between them? David Mathog <dmathog@gmail.com> - 2011-05-17 15:32 -0700
      Re: man page syntax for multiple Bold lines with no spaces between them? loozadroog <mijoryx@yahoo.com> - 2011-05-17 19:36 -0700

csiph-web