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;
@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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.