This paper suggest that the \raw functionality is supported by LaTex files.
https://support.sas.com/resources/papers/proceedings09/222-2009.pdf
However, when I try the following code:
ods latex file="&xxdemo./reporting/test.tex";
ods escapechar='^';
title 'Line 1'
'^{raw \\} Line 2'
"^{raw \break{}} Line 3";
proc print data=sashelp.class;
run;
ods latex close;
I get the following line
\sassystemtitle[c]{Line 1\^\{raw {\textbackslash}{\textbackslash}\} Line 2\^\{raw {\textbackslash}break\{\}\} Line 3}
instead of
\sassystemtitle[c]{Line 1 \\ Line 2 \break{} Line 3}
It might help to describe what you are attempting.
The text "Line 2" makes me suspect that you are trying to insert line breaks in some form. I might try the ODS ESCAPECHAR function NEWLINE if that is the case.
I don't have any experience with LaTex and it may help others to describe is some detail what you expect.
It might also help to turn of ODS HTML prior to generating the output. I have seen a couple of unexpected results for specific ODS destinations when both HTML and another destination are open.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.