Skip to content

Commit

Permalink
BUG: Make the documentation config file latex_preamble be a literal
Browse files Browse the repository at this point in the history
Make the documentation config file `latex_preamble` be a literal string:
add the `r` prefix.

Fixes:
```
  File "/home/runner/work/tract_querier/tract_querier/doc/conf.py", line 229
    """
       ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 1-2: truncated \uXXXX escape
```

raised for example at:
https://github.com/demianw/tract_querier/actions/runs/12170692299/job/33946161700#step:4:15
  • Loading branch information
jhlegarreta committed Dec 5, 2024
1 parent c444f69 commit 00d9412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
#latex_use_parts = False

# Additional stuff for the LaTeX preamble.
latex_preamble = """
latex_preamble = r"""
\usepackage{amsmath}\usepackage{amsfonts}\usepackage{bm}\usepackage{morefloats}
\usepackage{enumitem} \setlistdepth{10} \renewcommand{\Re}{\ensuremath{\mathbb R}}
"""
Expand Down

0 comments on commit 00d9412

Please sign in to comment.