Use a raw string by prefixing the string with an r character so it
doesn't interpret backslashes as escape sequences:

r'''\this string has a backslash at the start'''

'''\this string has a tab character at the start'''

In the second string, the \t is interpreted as a tab character. Not so
in the first string.

Cheers,
Carl.

On 1 October 2013 02:30, Thomas De Wolf <[email protected]> wrote:
> I tried this solution, but in the generated tex file, the \f and \t are
> converted replaced with some windows like characters (^L or ^M) or even
> empty.
> Any idea what can go wrong here?
>
> I use Sphinx 1.1.3 on Ubuntu 13.04 (64-bit)
>
>
> On Tuesday, July 20, 2010 5:57:13 PM UTC+2, slafs wrote:
>>
>> Hi there!
>>
>> Currently sphinx generates me a pretty pdf through
>>
>> > make latex
>> and
>> > make all-pdf
>>
>> What I'm looking for is a way of customizing the header which now is a
>> concatenation of
>> project_name + ", " + release
>>
>> Can I somehow declare my own header or footer in there?
>>
>> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to