2
0
Fork 0
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:
Martin Thoma 2016-02-29 12:40:20 +01:00
parent d113a4df49
commit aeba3af3e5
2 changed files with 22 additions and 0 deletions

View 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

View 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}