BookmarkSubscribeRSS Feed
yy2018
Calcite | Level 5

When creating ods pdf files for an analysis, is there a way to generate bookmarks for a paragraph of texts (for example, objective of the analysis section) where there's no tables or graphs printed?

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:
  If you use PROC ODSTEXT to write your paragraph, then it will make a bookmark and there is a CONTENTS= option that allows you to modify the bookmark in the TOC.

Here's an example.
cynthia

 

ods pdf file='c:\temp\show_toc.pdf';
   
Title 'My Title';
ods proclabel 'Top Level Text';
proc odstext contents='Explanatory Paragraphs' pagebreak=yes;
p 'Some Explanatory Information' / style=systemtitle;
p 'The following paragraph is important information from Lewis Carroll about the Jabberwock.';
p 'Twas brillig and the slithy toves did gyre and gimble in the wabe. 
 All mimsy were the borogroves and the momeraths outgrabe.
 Beware the Jabberwock my son! The jaws that bite, the claws that snatch.
 Beware the Jubjub bird and shun the frumious Bandersnatch!';
run;
  
ods pdf close;

and it produced these results:

toc_paragraph_pdf.png

yy2018
Calcite | Level 5

Nice. Thank you for your great help! 

 

However here's an issue with bookmarks -- when I click on a bookmark, I am not taken immediately to that line (which is what I would have expected when I click on a bookmark).  I am taken close to the spot but not quite to the spot, which is a bit annoying.  Any insight on how to resolve it or it is just how these bookmarks are built to do?

Cynthia_sas
SAS Super FREQ
Hi,
My experience with bookmarks is that they do not take you to a spot inside the page, but usually take you to the top of the page.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 777 views
  • 1 like
  • 2 in conversation