[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] Creating a numbered list without macros
From: |
Yves Cloutier |
Subject: |
[groff] Creating a numbered list without macros |
Date: |
Fri, 10 Aug 2018 20:00:17 -0400 |
Hello,
I'm working on a typesetting tool that provides a layer of abstraction over
groff. Basically it's a groff generator.
For this tool I'd like as much as possible to not use any existing macro
package, but rather use basic primitive commands to generate pure groff.
So far so good, but I'm having trouble wrapping my head around how to make
a numbered list and the math behind it.
For example what would I need to do, using vanilla groff to output a number
followed by suffix, a space, followed by text, and make it so that text
which overflows to the next line gets aligned with the first character of
the text of the lis item.
for example:
...1).This is where the text begins sdfsdfsdfsdfdfdfdfds
.......This is where the line wraps over to.
Where "." = the width of a character (or space).
What approach would I take? Is this something that can be done with tabs? a
combination of indents?
Much appreciated,
yc
- [groff] Creating a numbered list without macros,
Yves Cloutier <=
- Re: [groff] Creating a numbered list without macros, Ingo Schwarze, 2018/08/10
- Re: [groff] Creating a numbered list without macros, Peter Schaffter, 2018/08/10
- Re: [groff] Creating a numbered list without macros, Ralph Corderoy, 2018/08/11
- Re: [groff] Creating a numbered list without macros, Yves Cloutier, 2018/08/11
- Re: [groff] Creating a numbered list without macros, Ingo Schwarze, 2018/08/11
- Re: [groff] Creating a numbered list without macros, Holger Herrlich, 2018/08/16
- Re: [groff] Creating a numbered list without macros, Holger Herrlich, 2018/08/20
- Re: [groff] Creating a numbered list without macros, Peter Schaffter, 2018/08/20
- Re: [groff] Creating a numbered list without macros, Tadziu Hoffmann, 2018/08/20
- Re: [groff] Creating a numbered list without macros, Ingo Schwarze, 2018/08/20