BookmarkSubscribeRSS Feed
monday89
Fluorite | Level 6

I have the following code . I would like to do is add BOLD headers for LATEX output. I am not getting the same results in LateX

 

Group

Body System

Rate

 

 

 

 

 

 

 

ods tagsets.simplelatex file="file_destination\file_name.tex" (notop nobot)

stylesheet="sas.sty" (url="sas"); options linesize=256;

 

proc report data=work.SAE  nowindows headline headskip ;

column group body_system_soc rate_percent _rate ;

define group / group "Treatment" width =14 style(header)={font_weight=bold};

define system _soc / display "Body Systems" width =14 style(header)={font_weight=bold};

define rate_percent/ display "Rate" width =14 style(header)={font_weight=bold};

run;

ods tagsets.simplelatex

close;

1 REPLY 1
ballardw
Super User

@monday89 wrote:

I have the following code . I would like to do is add BOLD headers for LATEX output. I am not getting the same results in LateX

 

Group

Body System

Rate

 

 

 

 

 

 

 

ods tagsets.simplelatex file="file_destination\file_name.tex" (notop nobot)

stylesheet="sas.sty" (url="sas"); options linesize=256;

 

proc report data=work.SAE  nowindows headline headskip ;

column group body_system_soc rate_percent _rate ;

define group / group "Treatment" width =14 style(header)={font_weight=bold};

define system _soc / display "Body Systems" width =14 style(header)={font_weight=bold};

define rate_percent/ display "Rate" width =14 style(header)={font_weight=bold};

run;

ods tagsets.simplelatex

close;


Did you try:

 

proc report data=work.SAE  nowindows headline headskip 
   style(header)={font_weight=bold}
;
   column group body_system_soc rate_percent _rate ;
   define group / group "Treatment" width =14 ;
   define system _soc / display "Body Systems" width =14 ;
   define rate_percent/ display "Rate" width =14 ;
run;

If you want to set an override for the entire table, such as all headers, then that goes into the Proc Report statement with Style(location) and the overrides.

 

I suggest using a unit with any size item such as cell width as sometimes you may be surprised on the rendered result depending on ODS destination.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 915 views
  • 1 like
  • 2 in conversation