В Sat, 21 Mar 2026 11:16:29 +0000 iagogv via R-help <[email protected]> пишет:
> If in the .Rnw file I include \\ in the name, it is (S)weaved to > $\backslash$. I I include \textbackslash, Sweave returns extbackslash. The good news is that it's print.xtable escaping the column names, so in order to sneak LaTeX-special characters into the document, you just need to print(xtable(table), sanitize.colnames.function = identity). The bad news is that inserting a line break into a table cell will take some effort: https://tex.stackexchange.com/questions/2441/how-to-add-a-forced-line-break-inside-a-table-cell https://stackoverflow.com/questions/3068555/how-to-insert-manual-line-breaks-inside-latex-tables I think the least cumbersome solution is to specify the width of the column in the 'align' argument and use '\\newline' for the line break. -- Best regards, Ivan ______________________________________________ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

