On Tue Dec 3, 2024 at 11:37 PM CET, Oliver Corff wrote:
> thank you for your example! I'll try it during the next days.
>
> On 03/12/2024 23:26, onf wrote:
> >    .de loadvar \" $1 = string name, $2 = prompt
> >    . di \\$1
> >    . rd \\$2
> >    . br
> >    . di
> >    . unformat \\$1
> >    . chop \\$1
> >    ..
> >    .loadvar name Name
> >    .loadvar email Email
> >    Your name is \*[name]
> >    and your email is \*[email].

s/di/box/g

You might also have to play with filling or line length because
diversions store formatted text and I am not sure if unformat
removes automatic line breaks (past experience seems to indicate
it doesn't). Check the section about diversions in groff's Texinfo
manual[1]; I am not very knowledgeable in this area.

~ onf

[1] https://www.gnu.org/software/groff/manual/groff.html#Diversions
    and elsewhere...

Reply via email to