BookmarkSubscribeRSS Feed
luenhchang
Calcite | Level 5

Hi,

 

I am having two minor issues with TOC text length and the font setting.

 

Is there a length limitation in ODS RTF table of contents? I am using ODS PROCLABEL statement to create a TOC for multiple tables. 

Two of them show truncated text in the TOC. For example, Table S3-3 (line 😎 has complete TOC text in the TOC_column:

 

TableS3-3_TOC-SAS-dataset.png

 

But on the TOC page of the RTF file, Table S3-3 TOC is truncated at the third line (i.e. for females (F), mal) 

 

TOC_truncated.png

 

Is there any possibility to change the default length of the first node? I know this is a minor issue, as readers are still able to go to the table page with the hyper links. 

 

I am also wondering if it is possible to change the font face and font size for the TOC heading and the TOC body. Using the following SAS code, these two parts are shown in Courier New and 9.5 pt (heading) & 10 pt (body). I would like to apply the same font setting from my thesis files (created in MS Word) to the RTF TOC heading (15pt, Times New Roman, and Blue, Accent1) and body (12 pt, Times New Roman, and black). Sorry, I haven't had time to fully Google for these changes. 

 

 

ods rtf file=	"&report_dir.\PhD-thesis_supplementary-tables_%sysfunc(date(), yymmdd10.).rtf" 
		style=		Journal
		contents 
		toc_data /*contents toc_data:  show table of contents*/
		 ; 

 

 

1 REPLY 1
Cynthia_sas
Diamond | Level 26

Hi:

  I think this is a question for Tech Support. I do not know how to change the font style or font face for the Table of Contents text (to make it Courier, for example). I assume you need to do it in the Style template, but I don't know what style element controls that. Your bigger issue is that there does seem to be a limit to the text that you can pass in with ODS PROCLABEL It appears to me to be approximately 255 or 256 characters.

 

  If you can't work-around this limit, then I suspect you'll have to put less text into the table of contents. Word allows me to edit the TOC page, so you should be able to add your truncated text to the Table of Contents after the file is created.

 

  But to find out the definitive answer to these questions, you'll need to work with Tech Support.

 

Cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1195 views
  • 0 likes
  • 2 in conversation