Groff -ms .R macro not working; Can't format heading
0
votes
2
answers
111
views
groff version: 1.22.4
My style guide insists on formatting headings following way:
- Level 1 **UPPERCASE BOLD 12pt**
- Level 2 ***Bold italic letters 10pt***
- Level 3 *Italic letters 10pt*
According to reference for groff **.R** macro is supposed to
behave as **.B**, but makes font regular instead of bold, but every time i use it I get blank line, although **.BI** and **.I** works. How am to supposed to manipulate text format for headings when even if **.I** works but not for **.NH** for which it makes only text italic but not number.
example ms file:
Commands that I use to generate pdf:
..NH 1
.LG
Heading 1
.PP
Text 1
.NH 2
.I
.LG
Heading 2
.PP
text 2
.NH 3
.R Heading 3
.PP
Text 3
Output:

preconv -e utf-8 rest.ms | refer -P -p ./bibliography | groff -wall -b -mec -Tdvi -ms > rest.dvi
dvipdfm -cz 9 rest.dvi
I use these commands bc of this: What's the simplest way to process files with UTF-8 characters in groff on macOS?
Asked by p4wos8000
(1 rep)
Dec 27, 2023, 02:46 PM
Last activity: Dec 27, 2023, 10:45 PM
Last activity: Dec 27, 2023, 10:45 PM