diff --git a/book/_ext/tudelftstyle.css b/book/_ext/tudelftstyle.css index aa36268..4d64ef2 100644 --- a/book/_ext/tudelftstyle.css +++ b/book/_ext/tudelftstyle.css @@ -620,4 +620,17 @@ body.custom-style-enabled .logo__title { color: #FFFFFF !important; background-color: var(--black) !important; border-color: var(--black) !important; - } \ No newline at end of file + } + +body.custom-style-enabled .red {color: var(--red);} +body.custom-style-enabled .blue {color: var(--blue);} +body.custom-style-enabled .green {color: var(--green);} +body.custom-style-enabled .raspberry {color: var(--raspberry);} +body.custom-style-enabled .yellow {color: var(--yellow);} +body.custom-style-enabled .darkGreen {color: var(--darkGreen);} +body.custom-style-enabled .orange {color: var(--orange);} +body.custom-style-enabled .cyan {color: var(--cyan);} +body.custom-style-enabled .gray {color: var(--gray);} +body.custom-style-enabled .purple {color: var(--purple);} +body.custom-style-enabled .pink {color: var(--pink);} +body.custom-style-enabled .darkBlue {color: var(--darkBlue);} \ No newline at end of file diff --git a/book/_toc.yml b/book/_toc.yml index 556e47d..e11f663 100644 --- a/book/_toc.yml +++ b/book/_toc.yml @@ -10,4 +10,5 @@ parts: - file: content/custom.md - file: content/badges.md - file: content/buttons.md + - file: content/latex.md - file: content/credits.md diff --git a/book/content/latex.md b/book/content/latex.md new file mode 100644 index 0000000..183867a --- /dev/null +++ b/book/content/latex.md @@ -0,0 +1,45 @@ +(latex)= +# $\LaTeX$ colors + +To obtain pretty colors in $\LaTeX$ we define several color classes, being + +- red +- blue +- green +- raspberry +- yellow +- darkGreen +- orange +- cyan +- gray +- purple +- pink +- darkBlue + +so that in $\LaTeX$ we can use the code + +``` +\class{}{} +``` + +to obtain $\LaTeX$ that is rendered in the color ``. + +## Example + +```text +:::::{math} + +\class{raspberry}{\LaTeX} + +::::: +```` + +renders as + +:::::{math} + +\class{raspberry}{\LaTeX} + +::::: + +Note that without applying the TU Delft theme the default text color is chosen. \ No newline at end of file