diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-05-11 17:11:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-05-16 07:44:05 -0400 |
commit | 2a054b5156cf3bbca31b5b34170df0b7ed065e12 (patch) | |
tree | 9ab8a81fab102ce90eafe1b1cd93052e735aadb2 /Documentation/conf.py | |
parent | 821c6df87761af9a56702f1dec61549ee1cf3109 (diff) |
conf.py: define a color for important markup on PDF output
As kdbg.rst uses the ".. important::" annotation, let's define a
color for PDF output.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r-- | Documentation/conf.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index 0ce8001a50b6..1774357150a3 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py | |||
@@ -281,6 +281,7 @@ latex_elements = { | |||
281 | \\definecolor{NoteColor}{RGB}{204,255,255} | 281 | \\definecolor{NoteColor}{RGB}{204,255,255} |
282 | \\definecolor{WarningColor}{RGB}{255,204,204} | 282 | \\definecolor{WarningColor}{RGB}{255,204,204} |
283 | \\definecolor{AttentionColor}{RGB}{255,255,204} | 283 | \\definecolor{AttentionColor}{RGB}{255,255,204} |
284 | \\definecolor{ImportantColor}{RGB}{192,255,204} | ||
284 | \\definecolor{OtherColor}{RGB}{204,204,204} | 285 | \\definecolor{OtherColor}{RGB}{204,204,204} |
285 | \\newlength{\\mynoticelength} | 286 | \\newlength{\\mynoticelength} |
286 | \\makeatletter\\newenvironment{coloredbox}[1]{% | 287 | \\makeatletter\\newenvironment{coloredbox}[1]{% |
@@ -301,7 +302,12 @@ latex_elements = { | |||
301 | \\ifthenelse% | 302 | \\ifthenelse% |
302 | {\\equal{\\py@noticetype}{attention}}% | 303 | {\\equal{\\py@noticetype}{attention}}% |
303 | {\\colorbox{AttentionColor}{\\usebox{\\@tempboxa}}}% | 304 | {\\colorbox{AttentionColor}{\\usebox{\\@tempboxa}}}% |
304 | {\\colorbox{OtherColor}{\\usebox{\\@tempboxa}}}% | 305 | {% |
306 | \\ifthenelse% | ||
307 | {\\equal{\\py@noticetype}{important}}% | ||
308 | {\\colorbox{ImportantColor}{\\usebox{\\@tempboxa}}}% | ||
309 | {\\colorbox{OtherColor}{\\usebox{\\@tempboxa}}}% | ||
310 | }% | ||
305 | }% | 311 | }% |
306 | }% | 312 | }% |
307 | }\\makeatother | 313 | }\\makeatother |