mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
821c6df877
commit
2a054b5156
1 changed files with 7 additions and 1 deletions
|
@ -281,6 +281,7 @@ latex_elements = {
|
||||||
\\definecolor{NoteColor}{RGB}{204,255,255}
|
\\definecolor{NoteColor}{RGB}{204,255,255}
|
||||||
\\definecolor{WarningColor}{RGB}{255,204,204}
|
\\definecolor{WarningColor}{RGB}{255,204,204}
|
||||||
\\definecolor{AttentionColor}{RGB}{255,255,204}
|
\\definecolor{AttentionColor}{RGB}{255,255,204}
|
||||||
|
\\definecolor{ImportantColor}{RGB}{192,255,204}
|
||||||
\\definecolor{OtherColor}{RGB}{204,204,204}
|
\\definecolor{OtherColor}{RGB}{204,204,204}
|
||||||
\\newlength{\\mynoticelength}
|
\\newlength{\\mynoticelength}
|
||||||
\\makeatletter\\newenvironment{coloredbox}[1]{%
|
\\makeatletter\\newenvironment{coloredbox}[1]{%
|
||||||
|
@ -301,7 +302,12 @@ latex_elements = {
|
||||||
\\ifthenelse%
|
\\ifthenelse%
|
||||||
{\\equal{\\py@noticetype}{attention}}%
|
{\\equal{\\py@noticetype}{attention}}%
|
||||||
{\\colorbox{AttentionColor}{\\usebox{\\@tempboxa}}}%
|
{\\colorbox{AttentionColor}{\\usebox{\\@tempboxa}}}%
|
||||||
{\\colorbox{OtherColor}{\\usebox{\\@tempboxa}}}%
|
{%
|
||||||
|
\\ifthenelse%
|
||||||
|
{\\equal{\\py@noticetype}{important}}%
|
||||||
|
{\\colorbox{ImportantColor}{\\usebox{\\@tempboxa}}}%
|
||||||
|
{\\colorbox{OtherColor}{\\usebox{\\@tempboxa}}}%
|
||||||
|
}%
|
||||||
}%
|
}%
|
||||||
}%
|
}%
|
||||||
}\\makeatother
|
}\\makeatother
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue