mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
Add color example
This commit is contained in:
parent
d113a4df49
commit
aeba3af3e5
2 changed files with 22 additions and 0 deletions
8
documents/colors/Makefile
Normal file
8
documents/colors/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
SOURCE = colors
|
||||||
|
|
||||||
|
make:
|
||||||
|
pdflatex $(SOURCE).tex -output-format=pdf
|
||||||
|
make clean
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(TARGET) *.class *.html *.log *.aux *.out
|
14
documents/colors/colors.tex
Normal file
14
documents/colors/colors.tex
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
\documentclass[a4paper]{scrartcl}
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
|
||||||
|
\usepackage{xcolor}
|
||||||
|
|
||||||
|
\definecolor{foo}{HTML}{EFF5F9}
|
||||||
|
\definecolor{magenta}{HTML}{FF00FF}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
This is the \textcolor{foo}{foo color}. And here is an
|
||||||
|
\textcolor[HTML]{DFECF7}{inline example}.
|
||||||
|
|
||||||
|
I like \textcolor{magenta}{\textbf{Magenta}}.
|
||||||
|
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue