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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.