[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] grohtml: macro error: RP is not allowed after the first page
From: |
Gaius Mulley |
Subject: |
Re: [Groff] grohtml: macro error: RP is not allowed after the first page has started |
Date: |
Thu, 14 Apr 2016 15:43:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Anton Shterenlikht <address@hidden> writes:
> I get this error:
>
> ./doc.1:4: macro error: RP is not allowed after the first page has started
>
> The command I invoke is:
>
> /usr/local/bin/groff -ept -ms -Thtml -P -Dhtmlimg -P -r -VV doc.ref > doc.html
>
> where doc.ref is the file after processing with soelim
> and refer.
> doc.ref has:
>
> .lf 1 doc.full
> .lf 1 ./doc.1
> .\"$Id: doc.1 57 2016-04-13 14:34:10Z mexas $
> .\" Copyright (c) 2016 Anton Shterenlikht, The University of Bristol
> .\" See LICENSE for licensing conditions
> .RP no
> .na
> .hy 0
> .EQ
> delim ##
> .EN
> .DA
> .TL
> Parallel programming with Fortran 2008 coarrays
> .AU
>
> and so on.
>
> What am I doing wrong?
>
> Thanks
>
> Anton
Hi Anton,
I wonder if it might be worth commenting out the .RP and see if html
generation works? It appears to be influencing the initial macros
which might be conflicting with html.
Ultimately the RP macro could be fixed to return early should html be
present. Or should be hack above work you could use:
.if !'\*(.T'html' .RP
regards,
Gaius