• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Reference Documentation: PDF Publishing with GNU Troff


Commit MetaInfo

修訂8dd4f5977467b62ecd32cb3871757db1e23176c0 (tree)
時間2022-03-25 07:11:04
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Place outline references before generating TOC entries.

* tmac/spdf.tmac (spdf:XH.format, spdf:XN.format): Do not call...
(XH-UPDATE-TOC): ...this directly; instead, call it indirectly from...
(spdf:XH.finalize): ...here, whence call it after invoking...
(pdfhref O): ...this.

Change Summary

差異

diff -r aae8df304ce0 -r 8dd4f5977467 tmac/spdf.tmac
--- a/tmac/spdf.tmac Tue Mar 01 15:15:26 2022 +0000
+++ b/tmac/spdf.tmac Thu Mar 24 22:11:04 2022 +0000
@@ -5,7 +5,7 @@
55 Binding macros for use of "-m pdfmark" in conjunction with "-ms".
66
77
8-Copyright (C) 2004-2021 Free Software Foundation, Inc.
8+Copyright (C) 2004-2022 Free Software Foundation, Inc.
99 Written by Keith Marshall (keith.d.marshall@ntlworld.com)
1010
1111 This file is part of groff.
@@ -216,7 +216,6 @@
216216 .\" is specific to the XH implementation...
217217 .\"
218218 .de spdf:XH.format
219-. XH-UPDATE-TOC \\$@
220219 . ds spdf:bm.argv \\$1
221220 . shift \" finalization doesn't want the outline level in \$1
222221 . spdf:XH.finalize \\$@
@@ -225,7 +224,6 @@
225224 .\"
226225 .de spdf:XN.format
227226 . ds spdf:bm.argv \\n[.NH] \\*[SN]
228-. XH-UPDATE-TOC \\n[.NH] \\*[SN] \\$@
229227 . spdf:XH.finalize \\$@
230228 ..
231229 .\" ...before ultimately converging back into this finalization
@@ -235,7 +233,9 @@
235233 . spdf:bm.define spdf:bm.text "\\$*"
236234 . if d spdf:refname .pdfhref M -X -N \\*[spdf:refname] -- \\$@
237235 . pdfhref O \\*[spdf:bm.argv] \\*[spdf:bm.text]
238-. rm spdf:refname spdf:bm.argv spdf:bm.text
236+. XH-UPDATE-TOC \\*[spdf:bm.argv] \\$@
237+. rm spdf:bm.argv spdf:bm.text
238+. rm spdf:refname
239239 . nop \\$*
240240 ..
241241 .