diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-16 12:25:39 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2016-08-18 18:41:52 -0400 |
commit | a682ec4ba10c88231cdbb8bb9823b2cc749d6364 (patch) | |
tree | 845f73dc0efe65187f6ba64fa4bbc05fe4d6c7e5 /Documentation/conf.py | |
parent | 60459774659267569b4d944fcecb372ad0c48629 (diff) |
docs-rst: Don't mangle with UTF-8 chars on LaTeX/PDF output
pdflatex doesn't accept using some UTF-8 chars, like
"equal or less than" or "equal or greater than" chars. However,
the media documents use them. So, we need to use XeLaTeX for
conversion, and a font that accepts such characters.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r-- | Documentation/conf.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index 429183a03b92..06e6db916d2f 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py | |||
@@ -254,6 +254,10 @@ latex_elements = { | |||
254 | # Latex figure (float) alignment | 254 | # Latex figure (float) alignment |
255 | #'figure_align': 'htbp', | 255 | #'figure_align': 'htbp', |
256 | 256 | ||
257 | # Don't mangle with UTF-8 chars | ||
258 | 'inputenc': '', | ||
259 | 'utf8extra': '', | ||
260 | |||
257 | # Additional stuff for the LaTeX preamble. | 261 | # Additional stuff for the LaTeX preamble. |
258 | 'preamble': ''' | 262 | 'preamble': ''' |
259 | % Allow generate some pages in landscape | 263 | % Allow generate some pages in landscape |
@@ -281,6 +285,13 @@ latex_elements = { | |||
281 | \\end{graybox} | 285 | \\end{graybox} |
282 | } | 286 | } |
283 | \\makeatother | 287 | \\makeatother |
288 | |||
289 | % Use some font with UTF-8 support with XeLaTeX | ||
290 | \\usepackage{fontspec} | ||
291 | \\setsansfont{DejaVu Serif} | ||
292 | \\setromanfont{DejaVu Sans} | ||
293 | \\setmonofont{DejaVu Sans Mono} | ||
294 | |||
284 | ''' | 295 | ''' |
285 | } | 296 | } |
286 | 297 | ||