From 7906a77ebda2adc7930af8ba8844c3745b3e389c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 19 Apr 2023 20:09:23 +0000 Subject: pixelarttikz (19apr23) git-svn-id: svn://tug.org/texlive/trunk@66893 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/pixelarttikz/PixelArtTikz-doc-en.pdf | Bin 490717 -> 468164 bytes .../doc/latex/pixelarttikz/PixelArtTikz-doc-en.tex | 79 ++++++++++++--------- .../doc/latex/pixelarttikz/PixelArtTikz-doc-fr.pdf | Bin 501108 -> 503873 bytes .../doc/latex/pixelarttikz/PixelArtTikz-doc-fr.tex | 69 +++++++++++++----- 4 files changed, 96 insertions(+), 52 deletions(-) (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-en.pdf b/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-en.pdf index f694421de18..ecfa1dad49e 100644 Binary files a/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-en.pdf and b/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-en.pdf differ diff --git a/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-en.tex b/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-en.tex index 000fddd55e3..6558ad9b6a9 100644 --- a/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-en.tex +++ b/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-en.tex @@ -3,10 +3,8 @@ % arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)') \documentclass{article} -\usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} -\usepackage[table,svgnames]{xcolor} \usepackage{amsmath,amssymb} \usepackage{PixelArtTikz} \usepackage{fontawesome5} @@ -45,10 +43,9 @@ \hypersetup{pdfborder=0 0 0} \usepackage[margin=1.5cm]{geometry} \setlength{\parindent}{0pt} -\definecolor{LightGray}{gray}{0.9} -\def\TPversion{0.1.0} -\def\TPdate{23/01/2023} +\def\TPversion{0.1.1} +\def\TPdate{19/04/2023} \usepackage[most]{tcolorbox} \tcbuselibrary{minted} @@ -65,7 +62,7 @@ minted language=tex,minted options={tabsize=4,fontsize=\footnotesize,autogobble}, #2 } - +\usepackage[english]{babel} \newcommand\Cle[1]{{\bfseries\sffamily\textlangle #1\textrangle}} \begin{document} @@ -149,7 +146,7 @@ ~~ \PixlArtTikz[Codes=123469,Symbols={A,B,C,D,E,F},Symb,Style=\ttfamily,Unit=0.35]{test1.csv} ~~ -\PixlArtTikz[Codes=123469,Colors={Red,Brown,Yellow,Black,Blue,White},Correction,Unit=0.35]{test1.csv} +\PixlArtTikz[Codes=123469,Colors={red,brown,yellow,black,blue,white},Correction,Unit=0.35]{test1.csv} \end{center} \vspace{0.5cm} @@ -269,24 +266,38 @@ There's two ways to create PixelArt : \end{EnvPixlArtTikz} \end{PresentationCode} -For the colors, its depending from the loaded packages. +\section{Colors} + +Concerning colors, the user can use the colors loaded by the loaded packages ! \smallskip -This documentation was compiled with \textsf{xcolor}, with \Cle{[table,svgnames]} options. - -%%\section{Petit aparté sur les fichiers csv} -%% -%%\textsf{CSV} désigne un format de fichiers dont le rôle est de présenter des données séparées par des virgules. Il s'agit d'une manière simplifiée d'afficher des données afin de les rendre transmissibles d'un programme à un autre. -%% -%%\smallskip -%% -%%Dans notre cas, le fichier \textsf{csv} contiendra les \textit{codes} qui seront analysés un par un et ligne par ligne pour avoir le rendu par \textit{code}, \textit{symbole} ou \textit{couleur}. -%% -%%\medskip -%% -%%Il \underline{doit} être préparé avec des caractères (codes) \textit{simples} pour que le code de \textsf{PixelArtTikz} puisse fonctionner. -% +Without extra package, avalaibles colors are : + +\smallskip + +\begin{tblr}{width=\linewidth,colspec={*{10}{X[m,c]}},cells={font=\small\ttfamily}} + \SetCell{bg=magenta} magenta & + \SetCell{bg=cyan} cyan & + \SetCell{bg=blue,fg=white} blue & + \SetCell{bg=green} green & + \SetCell{bg=red} red & + \SetCell{bg=darkgray,fg=white} darkgray & + \SetCell{bg=olive,fg=white} olive & + \SetCell{bg=lime} lime & + \SetCell{bg=brown} brown & + \SetCell{bg=lightgray} lightgray \\ + \SetCell{bg=white} white & + \SetCell{bg=gray,fg=white} gray & + \SetCell{bg=black,fg=white} black & + \SetCell{bg=yellow} yellow & + \SetCell{bg=violet,fg=white} violet & + \SetCell{bg=teal,fg=white} teal & + \SetCell{bg=purple,fg=white} purple & + \SetCell{bg=pink} pink & + \SetCell{bg=orange} orange & \\ +\end{tblr} + \pagebreak \part{Macros and environment} @@ -397,9 +408,9 @@ The third argument, \textit{mandatory}, is the filename of the \textsf{csv}. %empty case with - \PixlArtTikz[Codes=123469,Style=\ttfamily,Unit=0.35]{test1.csv} ~~ -\PixlArtTikz[Codes=123469,Colors={Red,Brown,Yellow,Black,Blue,White},Correction,Unit=0.35]{test1.csv} +\PixlArtTikz[Codes=123469,Colors={red,brown,yellow,black,blue,white},Correction,Unit=0.35]{test1.csv} ~~ -\PixlArtTikz[Codes=123469,Colors={Red,Brown,Yellow,Black,Blue,White},Correction,Unit=0.35,Border=false]{test1.csv} +\PixlArtTikz[Codes=123469,Colors={red,brown,yellow,black,blue,white},Correction,Unit=0.35,Border=false]{test1.csv} \end{PresentationCode} \pagebreak @@ -436,7 +447,7 @@ In the following example, les \textit{symbols} to print can't be used for the \t \PixlArtTikz[Codes=ABCDFJ,Symbols={1,2,3,4,6,10},Symb,Style=\tiny\sffamily,Unit=0.35]{cap.csv} ~~ -\PixlArtTikz[Codes=ABCDFJ,Colors={Red,Brown,Yellow,Black,Blue,Gray},Correction,Unit=0.35]{cap.csv} +\PixlArtTikz[Codes=ABCDFJ,Colors={red,brown,yellow,black,blue,gray},Correction,Unit=0.35]{cap.csv} \end{PresentationCode} \pagebreak @@ -464,11 +475,11 @@ In this case : \foreach \y in {0,-1,...,-24} \draw[very thin,gray] (3pt,\y)--(-3pt,\y)% node[left,font=\scriptsize\sffamily] {\y} ; %le PixelArt - \PixlArtTikz*[Codes=123469,Colors={Red,Brown,Yellow,Black,Blue,White},Correction]{test1.csv} + \PixlArtTikz*[Codes=123469,Colors={red,brown,yellow,black,blue,white},Correction]{test1.csv} %added code - \filldraw[Blue] (14,-1) circle[radius=1] ; - \filldraw[Yellow] (14,-1) circle[radius=0.8] ; - \draw[ForestGreen,very thick,<-,>=latex] (15,-1) to[bend left=30] (18,-2)% + \filldraw[blue] (14,-1) circle[radius=1] ; + \filldraw[yellow] (14,-1) circle[radius=0.8] ; + \draw[green,very thick,<-,>=latex] (15,-1) to[bend left=30] (18,-2)% node[right,font=\scriptsize\sffamily] {Code Ti\textit{k}Z} ; \end{tikzpicture} \end{center} @@ -518,11 +529,11 @@ The symbols are at the nodes $(c\,;\,-l)$ where $l$ and $c$ are the row and colu \begin{PresentationCode}{} \begin{center} \begin{EnvPixlArtTikz}% - [Codes=123469,Colors={Red,Brown,Yellow,Black,Blue,White},Correction,Unit=0.25] + [Codes=123469,Colors={red,brown,yellow,black,blue,white},Correction,Unit=0.25] {test1.csv} - \filldraw[Blue] (14,-1) circle[radius=1] ; - \filldraw[Yellow] (14,-1) circle[radius=0.8] ; - \draw[ForestGreen,very thick,<-,>=latex] (15,-1) to[bend left=30] (18,-2)% + \filldraw[blue] (14,-1) circle[radius=1] ; + \filldraw[yellow] (14,-1) circle[radius=0.8] ; + \draw[green,very thick,<-,>=latex] (15,-1) to[bend left=30] (18,-2)% node[right,font=\scriptsize\sffamily] {Ti\textit{k}Z code} ; \end{EnvPixlArtTikz} \end{center} @@ -532,6 +543,8 @@ The symbols are at the nodes $(c\,;\,-l)$ where $l$ and $c$ are the row and colu \part{Historique} +\verb|v0.1.1|~:~~~~Bugfix with color + \verb|v0.1.0|~:~~~~Initial version \end{document} \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-fr.pdf b/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-fr.pdf index 8865790e6d7..b70f4602650 100644 Binary files a/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-fr.pdf and b/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-fr.pdf differ diff --git a/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-fr.tex b/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-fr.tex index fec2cca2716..b65adfa8e5b 100644 --- a/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-fr.tex +++ b/Master/texmf-dist/doc/latex/pixelarttikz/PixelArtTikz-doc-fr.tex @@ -3,10 +3,9 @@ % arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)') \documentclass{article} -\usepackage[french]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} -\usepackage[table,svgnames]{xcolor} +%\usepackage[table,svgnames]{xcolor} \usepackage{amsmath,amssymb} \usepackage{PixelArtTikz} \usepackage{fontawesome5} @@ -21,7 +20,6 @@ \cfoot{\sffamily\small - \thepage{} -} \rfoot{\hyperlink{matoc}{\small\faArrowAltCircleUp[regular]}} -%\usepackage{hvlogos} \usepackage{hologo} \providecommand\tikzlogo{Ti\textit{k}Z} \providecommand\TeXLive{\TeX{}Live\xspace} @@ -44,10 +42,9 @@ \hypersetup{pdfborder=0 0 0} \usepackage[margin=1.5cm]{geometry} \setlength{\parindent}{0pt} -\definecolor{LightGray}{gray}{0.9} -\def\TPversion{0.1.0} -\def\TPdate{23 Janvier 2023} +\def\TPversion{0.1.1} +\def\TPdate{19 avril 2023} \usepackage[most]{tcolorbox} \tcbuselibrary{minted} @@ -65,6 +62,8 @@ #2 } +\usepackage[french]{babel} + \newcommand\Cle[1]{{\bfseries\sffamily\textlangle #1\textrangle}} \begin{document} @@ -148,7 +147,7 @@ ~~ \PixelArtTikz[Codes=123469,Symboles={A,B,C,D,E,F},Symb,Style=\ttfamily,Unite=0.35]{test1.csv} ~~ -\PixelArtTikz[Codes=123469,Couleurs={Red,Brown,Yellow,Black,Blue,White},Correction,Unite=0.35]{test1.csv} +\PixelArtTikz[Codes=123469,Couleurs={red,brown,yellow,black,blue,white},Correction,Unite=0.35]{test1.csv} \end{center} \vspace{0.5cm} @@ -270,11 +269,41 @@ Il existe deux manières de représenter un PixelArt : \end{EnvPixelArtTikz} \end{PresentationCode} +\section{Les couleurs} + Concernant les couleurs, l'utilisateur utilisera celles disponibles avec les packages chargés. +%\smallskip + +%La présente documentation a été compilée avec le package \textsf{xcolor}, chargé avec les options \Cle{[table,svgnames]}. + \smallskip -La présente documentation a été compilée avec le package \textsf{xcolor}, chargé avec les options \Cle{[table,svgnames]}. +Les couleurs disponibles sans autre package sont donc : + +\smallskip + +\begin{tblr}{width=\linewidth,colspec={*{10}{X[m,c]}},cells={font=\small\ttfamily}} + \SetCell{bg=magenta} magenta & + \SetCell{bg=cyan} cyan & + \SetCell{bg=blue,fg=white} blue & + \SetCell{bg=green} green & + \SetCell{bg=red} red & + \SetCell{bg=darkgray,fg=white} darkgray & + \SetCell{bg=olive,fg=white} olive & + \SetCell{bg=lime} lime & + \SetCell{bg=brown} brown & + \SetCell{bg=lightgray} lightgray \\ + \SetCell{bg=white} white & + \SetCell{bg=gray,fg=white} gray & + \SetCell{bg=black,fg=white} black & + \SetCell{bg=yellow} yellow & + \SetCell{bg=violet,fg=white} violet & + \SetCell{bg=teal,fg=white} teal & + \SetCell{bg=purple,fg=white} purple & + \SetCell{bg=pink} pink & + \SetCell{bg=orange} orange & \\ +\end{tblr} \section{Petit aparté sur les fichiers csv} @@ -401,9 +430,9 @@ On rappelle que le fichier peut être créé au préalable, et placé dans le r %une case vide sera codée par - \PixelArtTikz[Codes=123469,Style=\ttfamily,Unite=0.35]{test1.csv} ~~ -\PixelArtTikz[Codes=123469,Couleurs={Red,Brown,Yellow,Black,Blue,White},Correction,Unite=0.35]{test1.csv} +\PixelArtTikz[Codes=123469,Couleurs={red,brown,yellow,black,blue,white},Correction,Unite=0.35]{test1.csv} ~~ -\PixelArtTikz[Codes=123469,Couleurs={Red,Brown,Yellow,Black,Blue,White},Correction,Unite=0.35,BordCases=false]% +\PixelArtTikz[Codes=123469,Couleurs={red,brown,yellow,black,blue,white},Correction,Unite=0.35,BordCases=false]% {test1.csv} \end{PresentationCode} @@ -441,7 +470,7 @@ Dans l'exemple suivant, les \textit{symboles} à afficher ne peuvent pas servir \PixelArtTikz[Codes=ABCDFJ,Symboles={1,2,3,4,6,10},Symb,Style=\tiny\sffamily,Unite=0.35]{cap.csv} ~~ -\PixelArtTikz[Codes=ABCDFJ,Couleurs={Red,Brown,Yellow,Black,Blue,Gray},Correction,Unite=0.35]{cap.csv} +\PixelArtTikz[Codes=ABCDFJ,Couleurs={red,brown,yellow,black,blue,gray},Correction,Unite=0.35]{cap.csv} \end{PresentationCode} \pagebreak @@ -469,11 +498,11 @@ Il est à noter que, dans ce cas : \foreach \y in {0,-1,...,-24} \draw[very thin,gray] (3pt,\y)--(-3pt,\y)% node[left,font=\scriptsize\sffamily] {\y} ; %le PixelArt - \PixelArtTikz*[Codes=123469,Couleurs={Red,Brown,Yellow,Black,Blue,White},Correction]{test1.csv} + \PixelArtTikz*[Codes=123469,Couleurs={red,brown,yellow,black,blue,white},Correction]{test1.csv} %du code rajouté - \filldraw[Blue] (14,-1) circle[radius=1] ; - \filldraw[Yellow] (14,-1) circle[radius=0.8] ; - \draw[ForestGreen,very thick,<-,>=latex] (15,-1) to[bend left=30] (18,-2)% + \filldraw[blue] (14,-1) circle[radius=1] ; + \filldraw[yellow] (14,-1) circle[radius=0.8] ; + \draw[green,very thick,<-,>=latex] (15,-1) to[bend left=30] (18,-2)% node[right,font=\scriptsize\sffamily] {rajouté en Ti\textit{k}Z} ; \end{tikzpicture} \end{center} @@ -525,11 +554,11 @@ Les symboles affichés dans les cases sont situés aux nœuds de coordonnées $( \begin{PresentationCode}{} \begin{center} \begin{EnvPixelArtTikz}% - [Codes=123469,Couleurs={Red,Brown,Yellow,Black,Blue,White},Correction,Unite=0.25] + [Codes=123469,Couleurs={red,brown,yellow,black,blue,white},Correction,Unite=0.25] {test1.csv} - \filldraw[Blue] (14,-1) circle[radius=1] ; - \filldraw[Yellow] (14,-1) circle[radius=0.8] ; - \draw[ForestGreen,very thick,<-,>=latex] (15,-1) to[bend left=30] (18,-2)% + \filldraw[blue] (14,-1) circle[radius=1] ; + \filldraw[yellow] (14,-1) circle[radius=0.8] ; + \draw[green,very thick,<-,>=latex] (15,-1) to[bend left=30] (18,-2)% node[right,font=\scriptsize\sffamily] {rajouté en Ti\textit{k}Z} ; \end{EnvPixelArtTikz} \end{center} @@ -539,6 +568,8 @@ Les symboles affichés dans les cases sont situés aux nœuds de coordonnées $( \part{Historique} +\verb|v0.1.1|~:~~~~Correction d'un bug avec les couleurs + \verb|v0.1.0|~:~~~~Version initiale \end{document} \ No newline at end of file -- cgit v1.2.3