texlive[67895] Master/texmf-dist: xkcdcolors (11aug23)

commits+karl at tug.org commits+karl at tug.org
Fri Aug 11 23:15:48 CEST 2023


Revision: 67895
          http://tug.org/svn/texlive?view=revision&revision=67895
Author:   karl
Date:     2023-08-11 23:15:48 +0200 (Fri, 11 Aug 2023)
Log Message:
-----------
xkcdcolors (11aug23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/xkcdcolors/README.md
    trunk/Master/texmf-dist/doc/latex/xkcdcolors/xkcdcolors-manual.pdf
    trunk/Master/texmf-dist/doc/latex/xkcdcolors/xkcdcolors-manual.tex
    trunk/Master/texmf-dist/tex/latex/xkcdcolors/xkcdcolors.sty

Modified: trunk/Master/texmf-dist/doc/latex/xkcdcolors/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xkcdcolors/README.md	2023-08-11 21:15:37 UTC (rev 67894)
+++ trunk/Master/texmf-dist/doc/latex/xkcdcolors/README.md	2023-08-11 21:15:48 UTC (rev 67895)
@@ -1,6 +1,6 @@
 ## Package `xkcdcolors` for LaTeX
 
-In the year 2010, Randall Munroe on [posted a really fun and nice article](https://blog.xkcd.com/2010/05/03/color-survey-results/)  on the iconic web of [xkcd](https://xkcd.com/). 
+In the year 2010, Randall Munroe on [posted a really fun and nice article](https://blog.xkcd.com/2010/05/03/color-survey-results/)  on the iconic web of [xkcd](https://xkcd.com/).
 He did a very curious experiment: showing colors to a lot of people and asking to name each one.
 
 Afterward, he processed the data and sorted the names for each color by popularity --- that means, how many people gave the same name to the same color (no guidance here! Read the post linked above for details).
@@ -7,6 +7,36 @@
 
 He obtained a nice list of around 950 color names. It's not at all surprising that a lot of people forged `CloudyBlue`, but some color is really surprising, like for example `BabyPoopGreen` or `DullPink`...
 
+### DOCUMENTATION
+
+See the included file `xkcdcolors-manual.tex`; you can compile it running (twice) `pdflatex` on it. If you want to have a look, you can find a compiled copy on the [release page](https://github.com/Rmano/xkcdcolors/releases) or on [CTAN](https://www.ctan.org/pkg/xkcdcolors).
+
+If you have already installed the package in your TeX distribution, use `texdoc xkcdcolors`; it should show you the manual of the installed version of the package.
+
+To search for a color in a fast way, at least on Unix or on a compatible `bash` shell, you can use the following command:
+
+```bash
+[romano:~] % grep -i duck  $(kpsewhich xkcdcolors.sty)
+    DuckEggBlue,C3FBF4;%
+```
+
+### Links
+
+A very interesting link about "ordering" the 900+ colors here is [this one on Wolfram Community](https://community.wolfram.com/groups/-/m/t/434022?sortMsg=Flat); well worth a look.
+
+### AUTHOR
+
+Romano Giannetti `romano.giannetti at gmail.com`
+
 ### LICENSE
 
 This package use Randall Munroe's file [rgb.txt](https://xkcd.com/color/rgb.txt) which is distributed under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/). You can use that license or [LPPL 1.3c](https://www.latex-project.org/lppl/lppl-1-3c/)
+
+### SOURCE REPO
+
+The source is hosted on [GitHub](https://github.com/Rmano/xkcdcolors).
+If you clone the repository, you can use
+
+    make local-install
+
+to install the package on [your local TEXMF tree](https://tex.stackexchange.com/questions/1137/where-do-i-place-my-own-sty-or-cls-files-to-make-them-available-to-all-my-te).

Modified: trunk/Master/texmf-dist/doc/latex/xkcdcolors/xkcdcolors-manual.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xkcdcolors/xkcdcolors-manual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xkcdcolors/xkcdcolors-manual.tex	2023-08-11 21:15:37 UTC (rev 67894)
+++ trunk/Master/texmf-dist/doc/latex/xkcdcolors/xkcdcolors-manual.tex	2023-08-11 21:15:48 UTC (rev 67895)
@@ -1,7 +1,7 @@
 \documentclass[12pt]{article}
 %
 % Manual for the package `xkcdcolors`
-% Copyright (c) Romano Giannetti 2019
+% Copyright (c) Romano Giannetti 2019-2023
 % License: LPPL 1.3c (https://ctan.org/license/lppl1.3c)
 %
 % The colors are created using
@@ -21,7 +21,7 @@
         \def\ancho{3.5cm}
         \coordinate (top) at (\ancho,1);
         \draw[thick, draw=black, fill=#1] (0,0) rectangle (top);
-        \node[align=center, anchor=north west, text width=\ancho] at (0,0) {\strut\hspace{0pt}\relax #1};
+        \node[align=center, anchor=north west, text width=\ancho, inner xsep=0pt] at (0,0) {\strut\hspace{0pt}\relax #1};
     \end{tikzpicture}
 }
 \title{\texttt{xkcdcolors} package}
@@ -49,7 +49,7 @@
     \textcolor{xkcdPinkyPurple}{this is Pinky Purple}
 \end{verbatim}
 
-\noindent will render as \textcolor{xkcdPinkyPurple}{this is Pinky Purple}.
+\noindent will render as \textcolor{xkcdPinkyPurple}{this is Pinky Purple}. This manual refers to version \texttt{\xkcdcolorsversion} of the package.
 
 \bigskip
 
@@ -1009,7 +1009,7 @@
 xkcdDust,
 xkcdDarkPastelGreen,
 xkcdCloudyBlue}
-{\colorblock{\xkcdcol}\ }
+{\colorblock{\xkcdcol}\quad}
 }
 
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/xkcdcolors/xkcdcolors.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xkcdcolors/xkcdcolors.sty	2023-08-11 21:15:37 UTC (rev 67894)
+++ trunk/Master/texmf-dist/tex/latex/xkcdcolors/xkcdcolors.sty	2023-08-11 21:15:48 UTC (rev 67895)
@@ -1,6 +1,6 @@
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}[1996/06/01]
-\ProvidesPackage{xkcdcolors}[2019/10/21 v1.0.1 Provide names for xkcd colors]
+\ProvidesPackage{xkcdcolors}[2023/08/11 v1.0.2 Provide names for xkcd colors]
 \RequirePackage{xcolor}
 %    \end{macrocode}
 %
@@ -10,7 +10,7 @@
 % https://creativecommons.org/publicdomain/zero/1.0/
 %
 % This file is distributable under the same CC0 1.0 license, OR
-% Copyright (c) Romano Giannetti 2019
+% Copyright (c) Romano Giannetti 2019-2023
 % License: LPPL 1.3c (https://ctan.org/license/lppl1.3c)
 %
 % Original color set by Randall Munroe
@@ -18,6 +18,7 @@
 %
 %    \begin{macrocode}
 %
+\newcommand\xkcdcolorsversion{1.0.2}%
 \definecolorset{HTML}{xkcd}{}{%
     CloudyBlue,ACC2D9;%
     DarkPastelGreen,56AE57;%



More information about the tex-live-commits mailing list.