Search code examples
formattingmanpageformatted-textgroff

man – How can I make part of the word italic?


How can I make part of word italic in groff manpage?

When I write this:

.TH prog 1
normal
.I italic

Output is like this:

normal italic

How can I do this without inserting the space between words normal and italic?

normalitalic


Solution

  • You can wrap the text between \fI and \fP:

    normal\fIitalic\fP
    

    Bold is \fB.