Browse Source

Add color example

Martin Thoma 9 years ago
parent
commit
aeba3af3e5
2 changed files with 22 additions and 0 deletions
  1. 8 0
      documents/colors/Makefile
  2. 14 0
      documents/colors/colors.tex

+ 8 - 0
documents/colors/Makefile

@@ -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 - 0
documents/colors/colors.tex

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