/[groff]/groff/contrib/pdfmark/pdfmark.tmac
ViewVC logotype

Diff of /groff/contrib/pdfmark/pdfmark.tmac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by wl, Mon Feb 28 13:56:45 2005 UTC revision 1.3 by wl, Mon Apr 25 07:16:20 2005 UTC
# Line 272  inspiration has come from discussion on Line 272  inspiration has come from discussion on
272  .\"  .\"
273  .ds PDFBOOKMARK.VIEW /FitH \\n[PDFPAGE.Y] u  .ds PDFBOOKMARK.VIEW /FitH \\n[PDFPAGE.Y] u
274  .\"  .\"
275    .\" "PDFOUTLINE.FOLDLEVEL" controls how the document outline will be
276    .\" displayed.  It is a number, defining the maximum heading level
277    .\" which will be visible, without outline expansion by the user, in
278    .\" the initial view of the document outline.  Assuming that no sane
279    .\" document will ever extend to 10,000 levels of nested headings,
280    .\" this initial default value causes outlines to be fully expanded.
281    .\"
282    .nr PDFOUTLINE.FOLDLEVEL 10000
283    .\"
284  .\" The actual job of creating an outline reference  .\" The actual job of creating an outline reference
285  .\" is performed by the "pdfbookmark" macro.  .\" is performed by the "pdfbookmark" macro.
286  .\"  .\"
# Line 390  inspiration has come from discussion on Line 399  inspiration has come from discussion on
399  .nr pdf:bm.ic +1  .nr pdf:bm.ic +1
400  .nr pdf:bm.lc +1  .nr pdf:bm.lc +1
401  .pdf:pop nr pdf:bm.rc pdf:bm.c\\n[pdf:bm.lc]  .pdf:pop nr pdf:bm.rc pdf:bm.c\\n[pdf:bm.lc]
402  .if \\n[pdf:bm.rc] .as pdf:bm\\n[pdf:bm.ic] " /Count \\n[pdf:bm.rc]  .if \\n[pdf:bm.rc] \{\
403    .   ds pdf:bm.fold
404    .   if \\n[pdf:bm.lc]>\\n[PDFOUTLINE.FOLDLEVEL] .ds pdf:bm.fold -
405    .   as pdf:bm\\n[pdf:bm.ic] " /Count \\*[pdf:bm.fold]\\n[pdf:bm.rc]
406    .   rm pdf:bm.fold
407    .   \}
408  .pdfmark \\*[pdf:bm\\n[pdf:bm.ic]] /OUT  .pdfmark \\*[pdf:bm\\n[pdf:bm.ic]] /OUT
409  .rm pdf:bm\\n[pdf:bm.ic]  .rm pdf:bm\\n[pdf:bm.ic]
410  .\"  .\"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26