* [9fans] htmlroff -ms footnotes
@ 2023-10-06 16:45 a
2023-10-06 17:46 ` ori
0 siblings, 1 reply; 6+ messages in thread
From: a @ 2023-10-06 16:45 UTC (permalink / raw)
To: 9fans
Working on a little one-page report, I noticed htmlroff wasn't
outputing my footnotes. Looking at the papers in /sys/doc, it
seems htmlroff produces them properly when they're in the
abstract, but not in the main body.
Anybody looked at this or know why?
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T530822947a31ba06-Mc2fbfb757158b114260d99ac
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] htmlroff -ms footnotes
2023-10-06 16:45 [9fans] htmlroff -ms footnotes a
@ 2023-10-06 17:46 ` ori
2023-10-06 20:59 ` a
0 siblings, 1 reply; 6+ messages in thread
From: ori @ 2023-10-06 17:46 UTC (permalink / raw)
To: 9fans
Quoth a@9srv.net:
> Working on a little one-page report, I noticed htmlroff wasn't
> outputing my footnotes. Looking at the papers in /sys/doc, it
> seems htmlroff produces them properly when they're in the
> abstract, but not in the main body.
>
> Anybody looked at this or know why?
no, but do you have an example to reproduce it?
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T530822947a31ba06-M99ab62c023197f18c8a955a9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] htmlroff -ms footnotes
2023-10-06 17:46 ` ori
@ 2023-10-06 20:59 ` a
2023-10-07 1:59 ` umbraticus
0 siblings, 1 reply; 6+ messages in thread
From: a @ 2023-10-06 20:59 UTC (permalink / raw)
To: 9fans
see test.(html|ms) in http://a.9srv.net/htmlroff/
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T530822947a31ba06-M95035f63cbfc822d50ac389a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] htmlroff -ms footnotes
2023-10-06 20:59 ` a
@ 2023-10-07 1:59 ` umbraticus
2023-10-07 2:06 ` umbraticus
0 siblings, 1 reply; 6+ messages in thread
From: umbraticus @ 2023-10-07 1:59 UTC (permalink / raw)
To: 9fans
It isn't the Abstract, it's the .SH, which calls .RT, which somehow changes
the FS macro. If you replace .SH with .RT in test.ms nothing changes; if you
delete it altogether the missing footnotes appear.
If you put .pm above and below .SH (or .RT) and run:
; htmlroff -ms -mhtml test.ms >/dev/null |[2] grep FS
you can see that the FS macro is being messed with. I'll dig further...
umbraticus
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T530822947a31ba06-M34d92b1177885d8baf1d0ab6
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] htmlroff -ms footnotes
2023-10-07 1:59 ` umbraticus
@ 2023-10-07 2:06 ` umbraticus
2024-11-26 20:09 ` Anthony Sorace
0 siblings, 1 reply; 6+ messages in thread
From: umbraticus @ 2023-10-07 2:06 UTC (permalink / raw)
To: 9fans
okay, yeah, .SH calls .RT calls .BG calls .rn FJ FS
you could drop -ms but you probably don't want that either...
you could use ms2html :)
you could write your own macros :)))
umbraticus
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T530822947a31ba06-Mbe3ae7b1d9fa62fcf9a2f264
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] htmlroff -ms footnotes
2023-10-07 2:06 ` umbraticus
@ 2024-11-26 20:09 ` Anthony Sorace
0 siblings, 0 replies; 6+ messages in thread
From: Anthony Sorace @ 2024-11-26 20:09 UTC (permalink / raw)
To: 9fans
[Finally got back to this, after forgetting about it in my drafts for a year...]
> On Oct 6, 2023, at 19:06, umbraticus@prosimetrum.com wrote:
>
> okay, yeah, .SH calls .RT calls .BG calls .rn FJ FS
Yes, the .rn is the problem; specifically, the interaction between ms and mhtml. mhtml redefines .FS, which works fine for the footnotes in the abstract, but then ms clobbers mhtml's definition when .SH (or a few other things) is called. A simple almost-solution is to just duplicate the definiton of FS/FE as FJ/FK in tmac.html, and while the duplication isn't great, it's probably the lowest-impact change.
After the above sitting in drafts for most of a year, I'm back to looking at troff, and wondering if the right answer isn't just dropping a lot more "if h" into the actual macros.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T530822947a31ba06-Mfca840aa964668ed6b13a1e4
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-11-26 20:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-06 16:45 [9fans] htmlroff -ms footnotes a
2023-10-06 17:46 ` ori
2023-10-06 20:59 ` a
2023-10-07 1:59 ` umbraticus
2023-10-07 2:06 ` umbraticus
2024-11-26 20:09 ` Anthony Sorace
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).