mirror of
https://github.com/tiyn/wiki.git
synced 2026-01-11 00:59:46 +01:00
markup/latex: setup background color
This commit is contained in:
@@ -40,3 +40,20 @@ The following list contains some examples of it.
|
||||
|
||||
- [ZUGFeRD](https://ctan.org/pkg/zugferd) is a package for creating invoices.
|
||||
- [Awesome-CV](https://github.com/posquit0/Awesome-CV) is a package for creating job applications.
|
||||
|
||||
#### Usage
|
||||
|
||||
This section addresses the usage of LaTeX.
|
||||
|
||||
##### Set Background Color
|
||||
|
||||
The background color can be set using the `xcolor` package and the `\pagecolor` command.
|
||||
The following lines show a working example where the background color is set to the hexadecimal
|
||||
color `<hexcol>`.
|
||||
This needs to be changed (for example to `E0D6C0` for a parchment like color).
|
||||
|
||||
```tex
|
||||
\usepackage{xcolor}
|
||||
\definecolor{background}{HTML}{<hexcol>}
|
||||
\pagecolor{background}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user