Skip to content

Commit

Permalink
added LaTeX
Browse files Browse the repository at this point in the history
  • Loading branch information
douden committed Dec 24, 2024
1 parent 291c08f commit fa21fa6
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
15 changes: 14 additions & 1 deletion book/_ext/tudelftstyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,17 @@ body.custom-style-enabled .logo__title {
color: #FFFFFF !important;
background-color: var(--black) !important;
border-color: var(--black) !important;
}
}

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);}
1 change: 1 addition & 0 deletions book/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
45 changes: 45 additions & 0 deletions book/content/latex.md
Original file line number Diff line number Diff line change
@@ -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{<color>}{<math>}
```

to obtain $\LaTeX$ that is rendered in the color `<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.

0 comments on commit fa21fa6

Please sign in to comment.