[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Arbitrary Fractions - this time as strings
From: |
T. Kurt Bond |
Subject: |
Arbitrary Fractions - this time as strings |
Date: |
Fri, 16 Jul 2021 00:01:19 -0400 |
Returning to arbitrary fractions
<https://lists.gnu.org/archive/html/groff/2005-11/msg00029.html>, I'm
trying to make it work as a string invocation. (Is that the right
terminology?) Anyway, I'm trying this:
.po 1i
.ll 6.5i
.sp 1i
.ps 16
.vs 18
.de fracinline
\\R'n0 \\n[.s]'\#
\\R'n1 \\n[n0]*6/10'\#
\\R'dn (\\n[n0]-\\n[n1])*8/10'\#
\v'-\\n[dn]p'\s[\\n[n1]]\\$1\s0\v'\\n[dn]p'\[f/]\s[\\n[n1]]\\$2\s0\\$3
..
Trying 1/12 inline: \*[fracinline 1 12]. No newline after and with no
space before\*[fracinline 12 5 \c]or after.
.br
Trying 1/12 inline: \*[fracinline 1 12].
Newline after and with no
space before\*[fracinline 12 5 \c]or after.
.br
But the result I get is missing ithe words "No newline after and with no"
before "space before" . Here's a screenshot:
[image: image.png]
Any ideas what I can do to make this work?
Thanks!
--
T. Kurt Bond, tkurtbond@gmail.com, https://tkurtbond.github.io
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Arbitrary Fractions - this time as strings,
T. Kurt Bond <=