groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: page reference , page foward reference


From: Marko Pesikan
Subject: Re: page reference , page foward reference
Date: Thu, 21 Nov 2019 18:20:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Good evening,
i realize if i add a cover page , that the page number does not exact work, i get a wrong page number.

.COVER .TL
...
.COVEND

Is any idea how i can't prevent this?

Best Marko


Am 21.11.19 um 15:12 schrieb Marko Pesikan:
Hi Ralph,

thx for your provide a good solution for me.
I'd needed some time to analyses your snippet because I'm not good in groff. anyway, it's work for me!
Thanks a lot

regards Marko

Am 21.11.19 um 13:13 schrieb Ralph Corderoy:
Good day Marko,

Unfortunately I struggle with cross reference in groff mm.
I want to link from one point to another point include page number...
Here's an example.

     $ cat ref.tr
     .nr H1dot 0
     .
     .INITR index
     .
     .H 1 Introduction
     .SETR intro
     .
     Chapter
     .GETHN epi
     \& on page
     .GETPN epi
     \& is well worth a peruse.
     .
     .H 2 Sub-introduction
     .SETR subintro
     .
     .SK
     .
     .H 1 Epilogue
     .SETR epi
     .
     .GETHN intro s
     Read fine chapter \*s,
     .GETHN subintro s
     including sub-chapter \*s.
     $
     $ mmroff -Tpdf ref.tr >ref.pdf
     $
     $ cat index.qrf
     .\" references
     .ds qrf*ref-intro-hn 1
     .ds qrf*ref-intro-pn 1
     .ds qrf*ref-subintro-hn 1.1
     .ds qrf*ref-subintro-pn 1
     .ds qrf*ref-epi-hn 2
     .ds qrf*ref-epi-pn 2
     $
     $ mmroff -Tascii ref.tr | grep .
                                        - 1 -
            1  Introduction
            Chapter 2 on page 2 is well worth a peruse.
            1.1  Sub-introduction
                                        - 2 -
            2  Epilogue
            Read fine chapter 1, including sub-chapter 1.1.
     $





reply via email to

[Prev in Thread] Current Thread [Next in Thread]