-\documentclass[a4paper, 11pt]{article}
+\documentclass[a4paper, 11pt]{ltxdoc}
+\usepackage{a4wide}
+\usepackage{parskip}
+\usepackage{creatdtx}
\PassOptionsToPackage{table}{xcolor}
\usepackage{guitarsections}
-\usepackage{parskip}
\usepackage{array}
\usepackage{multirow}
\usepackage{rotating}
\begin{document}
\maketitle
-Overview of colour schema for musical annotations in the package {\em guitarsections}:
+Figure \ref{t:model} provides an overview of colour schema for musical annotations in the package {\em guitarsections}.
\newcommand\hlines{\noalign{\medskip}\hline\noalign{\medskip}}
\newcommand\clines[1]{\noalign{\medskip}\cline{#1}\noalign{\medskip}}
-\begin{table}[htb]
+\begin{figure}[htb]
\label{t:model}
\centering
- \caption{Abstract model of a colour schema for musical annotation}\vspace{\baselineskip}
-
\begin{tabular}{c c c}
\hlines
\(r\) &
& People and division of responsibility &
\begin{tabular}{c} Blue \\ Purple \end{tabular} \\\hlines
\end{tabular}
-\end{table}
+ \caption{Abstract model of a colour schema for musical annotation}
+\end{figure}
-The colour wheel (within {\em xcolor} base set of colors and some additions) goes as follows:
+The colour wheel (within {\em xcolor} base set of colors and some additions) goes as described in Table \ref{t:xcolors}.
-\rotatebox{90}{
- \begin{tabular}{p{4em}l}
- \cellcolor{black} & black \\
- \cellcolor{blackgray} & blackgray \\
- \cellcolor{darkgray} & darkgray \\
- \cellcolor{gray} & gray \\
- \cellcolor{lightgray} & lightgray \\
- \cellcolor{white} & white \\\hlines
- \cellcolor{red} & red \\
- \cellcolor{brown} & brown \\
- \cellcolor{orange} & orange \\
- \cellcolor{yellow} & yellow \\
- \cellcolor{olive} & olive \\
- \cellcolor{lime} & lime \\
- \cellcolor{green} & green \\
- \cellcolor{cyan} & cyan \\
- \cellcolor{teal} & teal \\
- \cellcolor{blue} & blue \\
- \cellcolor{violet} & violet \\
- \cellcolor{magenta} & magenta \\
- \cellcolor{purple} & purple \\
- \cellcolor{pink} & pink \\
-\end{tabular}}
+\begin{table}[htbp]
+ \label{t:xcolors}
+ \centering
+ \caption{Reference for the {\em xcolor} colour names}
+ \rotatebox{90}{
+ \begin{tabular}{p{4em}l}
+ \cellcolor{black} & black \\
+ \cellcolor{blackgray} & blackgray \\
+ \cellcolor{darkgray} & darkgray \\
+ \cellcolor{gray} & gray \\
+ \cellcolor{lightgray} & lightgray \\
+ \cellcolor{white} & white \\\hlines
+ \cellcolor{red} & red \\
+ \cellcolor{brown} & brown \\
+ \cellcolor{orange} & orange \\
+ \cellcolor{yellow} & yellow \\
+ \cellcolor{olive} & olive \\
+ \cellcolor{lime} & lime \\
+ \cellcolor{green} & green \\
+ \cellcolor{cyan} & cyan \\
+ \cellcolor{teal} & teal \\
+ \cellcolor{blue} & blue \\
+ \cellcolor{violet} & violet \\
+ \cellcolor{magenta} & magenta \\
+ \cellcolor{purple} & purple \\
+ \cellcolor{pink} & pink \\
+ \end{tabular}}
+\end{table}
\begin{table}[htb]
\centering
\label{t:inter}
- \caption{The concrete interpretations from Table \ref{t:model}}\vspace{\baselineskip}
+ \caption{The concrete interpretations from Figure \ref{t:model}}\vspace{\baselineskip}
\begin{tabular}{l l p{3em} r@{~}l}
\multicolumn{2}{l}{Song content} & \cellcolor{gtr@let@black} & & black \\\hline
\multicolumn{2}{l}{Chord annotations} & \cellcolor{gtr@let@heavy-red} & heavy & red \\