diff options
author | Norbert Preining <norbert@preining.info> | 2023-04-20 03:01:20 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-04-20 03:01:20 +0000 |
commit | 4753a39245d0925a73cb20409999377eb9d2fd66 (patch) | |
tree | 2e19e9f381b805bc9ab96da2f6c3e733d7689e09 /graphics | |
parent | 10bb4d468226c290e5e87e3fa367dc6fd2dcb84b (diff) |
CTAN sync 202304200301
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.pdf | bin | 490717 -> 468164 bytes | |||
-rw-r--r-- | graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.tex | 79 | ||||
-rw-r--r-- | graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.pdf | bin | 501108 -> 503873 bytes | |||
-rw-r--r-- | graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.tex | 69 | ||||
-rw-r--r-- | graphics/pgf/contrib/pixelarttikz/tex/PixelArtTikz.sty | 3 |
5 files changed, 98 insertions, 53 deletions
diff --git a/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.pdf b/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.pdf Binary files differindex f694421de1..ecfa1dad49 100644 --- a/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.pdf +++ b/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.pdf diff --git a/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.tex b/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.tex index 000fddd55e..6558ad9b6a 100644 --- a/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-en.tex +++ b/graphics/pgf/contrib/pixelarttikz/doc/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/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.pdf b/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.pdf Binary files differindex 8865790e6d..b70f460265 100644 --- a/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.pdf +++ b/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.pdf diff --git a/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.tex b/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.tex index fec2cca271..b65adfa8e5 100644 --- a/graphics/pgf/contrib/pixelarttikz/doc/PixelArtTikz-doc-fr.tex +++ b/graphics/pgf/contrib/pixelarttikz/doc/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 diff --git a/graphics/pgf/contrib/pixelarttikz/tex/PixelArtTikz.sty b/graphics/pgf/contrib/pixelarttikz/tex/PixelArtTikz.sty index e5f9e9ccb8..e56b33d479 100644 --- a/graphics/pgf/contrib/pixelarttikz/tex/PixelArtTikz.sty +++ b/graphics/pgf/contrib/pixelarttikz/tex/PixelArtTikz.sty @@ -2,7 +2,8 @@ % licence........: Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txtf \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{PixelArtTikz}[2023/01/25 v0.1.0 PixelArts with csv and TikZ] +\ProvidesPackage{PixelArtTikz}[2023/09/04 v0.1.1 PixelArts with csv and TikZ] +% 0.1.1 Small bugfix with color % 0.1.0 Version initiale %------Option(s) |