You don't write how you create your pdf, but I would assume that will be OK when you escape the backslashes, when you want to print them literally. So when you want to see a \s in the pdf, type \\s in your source format. (If you have somewhere a escaped backslash you want to print like \\ then write \\\\).