summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/writeongrid
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-08-10 03:01:21 +0000
committerNorbert Preining <norbert@preining.info>2023-08-10 03:01:21 +0000
commitf2278c4ebe48c174e43845ccfd838fffc3376514 (patch)
treefa8ae4a3eb80e79f3fcad8c0cb8d306ef28a823b /macros/latex/contrib/writeongrid
parent9c6ffed1253f7d203afb08f7fffc9c661c48567b (diff)
CTAN sync 202308100301
Diffstat (limited to 'macros/latex/contrib/writeongrid')
-rw-r--r--macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.pdfbin463835 -> 492397 bytes
-rw-r--r--macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.tex53
-rw-r--r--macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.pdfbin578577 -> 606805 bytes
-rw-r--r--macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.tex72
-rw-r--r--macros/latex/contrib/writeongrid/tex/WriteOnGrid.sty29
5 files changed, 99 insertions, 55 deletions
diff --git a/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.pdf b/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.pdf
index ea99e67782..8fd6d57bd4 100644
--- a/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.pdf
+++ b/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.pdf
Binary files differ
diff --git a/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.tex b/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.tex
index 43d5f7ec15..a4eb7773f4 100644
--- a/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.tex
+++ b/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-en.tex
@@ -45,8 +45,8 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.1.3}
-\def\TPdate{18/03/2023}
+\def\TPversion{0.1.4}
+\def\TPdate{09/08/2023}
\usepackage[most]{tcolorbox}
\tcbuselibrary{minted}
@@ -168,10 +168,14 @@ It’s mostly compatible with \textsf{latex}, \textsf{pdflatex}, \textsf{lualate
\medskip
+For a better compatibility, \texttt{xcolor} isn't charged anymore with options, so the usefull colors are directly defined within the package.
+
+\medskip
+
It loads the following packages and libraries :
\begin{itemize}
- \item \texttt{xcolor} with options \Cle{table,svgnames} ;
+ %\item \texttt{xcolor} with options \Cle{table,svgnames} ;
\item \texttt{tikz} with the librairies \Cle{calc} and \Cle{positionning} ;
\item \texttt{xstring}, \texttt{xparse} and \texttt{simplekv}.
\end{itemize}
@@ -202,7 +206,7 @@ For example, a $5\times5$ grid :
\item with a size 24x5 squares ;
\item with an overtaking by \textcolor{red}{2 squares at the left} and \textcolor{blue}{3 squares at the right} ;
\item with a global margin of \textcolor{orange}{1 square} ;
- \item with a \textcolor{ForestGreen}{\textit{border}} to show the \textit{basis} grid.
+ \item with a \textcolor{green!50!black}{\textit{border}} to show the \textit{basis} grid.
\end{itemize}
\medskip
@@ -215,16 +219,16 @@ For example, a $5\times5$ grid :
\draw[blue,thick,decorate,decoration={brace,amplitude=8pt,mirror}] ({0.5*24},{-0.5*5-0.25})--({0.5*24+3*0.5},{-0.5*5-0.25}) node[midway,below=8pt,font=\small\sffamily] {3C} ;
\draw[thick,decorate,decoration={brace,amplitude=8pt}] ({0.5*24+3*0.5+0.25},0)--({0.5*24+3*0.5+0.25},{-0.5*5}) node[midway,right=8pt,font=\small\sffamily] {5C} ;
\draw[very thick,orange,densely dashed] ({0.5*1},0)--({0.5*1},{-0.5*5}) ;
- \draw[ForestGreen,thick] (0,0) rectangle ({0.5*24},{-0.5*5}) ;
+ \draw[green!50!black,thick] (0,0) rectangle ({0.5*24},{-0.5*5}) ;
\end{tikzpicture}
\vspace{1.25cm}
-The \texttt{tikzpicture} is \textit{bounded} by the \textcolor{ForestGreen}{\textit{border}}, in order to specify overtakings or alignment.
+The \texttt{tikzpicture} is \textit{bounded} by the \textcolor{green!50!black}{\textit{border}}, in order to specify overtakings or alignment.
\smallskip
-Le left-border of the \textcolor{ForestGreen}{\textit{border}} is aligned on the left-margin of the page, so take care of the \texttt{\textbackslash parindent}.
+Le left-border of the \textcolor{green!50!black}{\textit{border}} is aligned on the left-margin of the page, so take care of the \texttt{\textbackslash parindent}.
\subsection{Predefined colors}
@@ -232,10 +236,20 @@ The package \textsf{WriteOnGrid} proposes "shortcuts" for classic colors !
\begin{PresentationCode}{listing only}
\definecolor{TyrianPurple}{rgb}{0.4,0.01,0.24}
+\definecolor{PapierRose}{HTML}{E6B8E6}
+\definecolor{PapierGris}{HTML}{D7E2EE}
%Colors for Seyes
-\def\ColSeyes{Plum!75/LightSteelBlue!50}
+\def\ColSeyes{PapierRose/PapierGris}
%Colors for Ruled
-\def\ColRuled{LightSteelBlue!50/TyrianPurple}
+\def\ColRuled{PapierGris/TyrianPurple}
+\end{PresentationCode}
+
+\begin{PresentationCode}{text only}
+{\tikz \filldraw[TyrianPurple] (0,0) rectangle++ (6,1) node[midway,font=\bfseries\large,text=white] {\verb+TyrianPurple+};}
+
+{\tikz \filldraw[PapierRose] (0,0) rectangle++ (6,1) node[midway,font=\bfseries\large,text=black] {\verb+PapierRose+};}
+
+{\tikz \filldraw[PapierGris] (0,0) rectangle++ (6,1) node[midway,font=\bfseries\large,text=black] {\verb+PapierGris+};}
\end{PresentationCode}
\pagebreak
@@ -275,8 +289,8 @@ The second argument, \textit{optional}, between \texttt{<...>} is the color(s) o
%18x4 big squares, w/o overtaking, Seyes colors, w/o margin/bar
\DispGrid[NumSquares=18x4,Grid=Seyes,DispBar=false]<\ColSeyes>
-%36x8 small squares, overtakings 3/3, LightSteelBlue color
-\DispGrid[NumSquares=36x8,Enlarge=3/3]<LightSteelBlue>
+%36x8 small squares, overtakings 3/3, PapierGris color
+\DispGrid[NumSquares=36x8,Enlarge=3/3]<PapierGris>
%12x3 lines "Ruled", w/o overtakins, Ruled colors, centered, with 2-margin
\begin{center}
@@ -290,7 +304,7 @@ The second argument, \textit{optional}, between \texttt{<...>} is the color(s) o
\medskip
-\DispGrid[NumSquares=36x8,Enlarge=3/3]<LightSteelBlue>
+\DispGrid[NumSquares=36x8,Enlarge=3/3]<PapierGris>
\smallskip
@@ -336,8 +350,8 @@ The second argument, \textit{optional}, between \texttt{<...>} is the color(s) o
\begin{EnvGrid}[NumSquares=18x4,Grid=Seyes,Margin=3]<\ColSeyes>
\end{EnvGrid}
-%36x8 small squares, overtakings 3/3, LightSteelBlue color
-\begin{EnvGrid}[NumSquares=36x8,Enlarge=3/3]<LightSteelBlue>
+%36x8 small squares, overtakings 3/3, PapierGris color
+\begin{EnvGrid}[NumSquares=36x8,Enlarge=3/3]<PapierGris>
\end{EnvGrid}
%12x3 lines "Ruled", w/o overtakins, Ruled colors, centered, with 2-margin
@@ -354,7 +368,7 @@ The second argument, \textit{optional}, between \texttt{<...>} is the color(s) o
\smallskip
-\begin{EnvGrid}[NumSquares=36x8,Enlarge=3/3]<LightSteelBlue>
+\begin{EnvGrid}[NumSquares=36x8,Enlarge=3/3]<PapierGris>
\end{EnvGrid}
\smallskip
@@ -393,7 +407,7 @@ The fisrt argument, \textit{optional}, between \texttt{[...]} give the \Cle{keys
\item \Cle{Scale} to specify the scale of the given text.\hfill~default : \Cle{1}
\end{itemize}
-the second argument, \textit{optional}, between \texttt{<...>} is the horizontal alignment (\Cle{left/center/right}) of the text in the basis \textcolor{ForestGreen}{\textit{border}}, \Cle{left} by default.
+the second argument, \textit{optional}, between \texttt{<...>} is the horizontal alignment (\Cle{left/center/right}) of the text in the basis \textcolor{green!50!black}{\textit{border}}, \Cle{left} by default.
\medskip
@@ -454,7 +468,7 @@ To sum up, they create full paper grid (by preference for \texttt{\textbf{a4pape
\LignePapierRuled[Echelle=1.25,Ligne=1]{C. PIERQUET \hfill LaTeX}
\LignePapierRuled[Echelle=1.25,Ligne=2,Couleur=red]<center>{\underline{\cursive\bfseries Evaluation 3}}
\CadreNoteRuled{3}
- \LignePapierRuled[Echelle=1.25,Ligne=8,Couleur=ForestGreen]{\sffamily\underline{Exercise 1 :}}
+ \LignePapierRuled[Echelle=1.25,Ligne=8,Couleur=green!50!black]{\sffamily\underline{Exercise 1 :}}
\ParagraphePapierRuled[Ligne=9]{\cursive\lipsum[1]}
\ParagraphePapierRuled[Ligne=22]
{%
@@ -473,7 +487,7 @@ To sum up, they create full paper grid (by preference for \texttt{\textbf{a4pape
\LignePapierRuled[Echelle=1.25,Ligne=1]{C. PIERQUET \hfill LaTeX}
\LignePapierRuled[Echelle=1.25,Ligne=2,Couleur=red]<center>{\underline{\cursive\bfseries Evaluation 3}}
\CadreNoteRuled{3}
- \LignePapierRuled[Echelle=1.25,Ligne=8,Couleur=ForestGreen]{\sffamily\underline{Exercise 1 :}}
+ \LignePapierRuled[Echelle=1.25,Ligne=8,Couleur=green!50!black]{\sffamily\underline{Exercise 1 :}}
\ParagraphePapierRuled[Ligne=9]{\cursive\lipsum[1]}
\ParagraphePapierRuled[Ligne=22]
{%
@@ -485,9 +499,10 @@ To sum up, they create full paper grid (by preference for \texttt{\textbf{a4pape
\pagebreak
-
\part*{History}
+\verb|v0.1.4|~:~~~~\texttt{xcolor} isn't loadeed with \textsf{[table,svgnames]})
+
\verb|v0.1.3|~:~~~~Command to display a grid (w/o writing on it)
\verb|v0.1.2|~:~~~~Shortcuts for default colors + small bugfixes
diff --git a/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.pdf b/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.pdf
index 192f3003b0..4d2e8e30a7 100644
--- a/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.pdf
+++ b/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.pdf
Binary files differ
diff --git a/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.tex b/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.tex
index 9de5e053b8..f8eb908f45 100644
--- a/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.tex
+++ b/macros/latex/contrib/writeongrid/doc/WriteOnGrid-doc-fr.tex
@@ -48,8 +48,8 @@
\setlength{\parindent}{0pt}
\definecolor{LightGray}{gray}{0.9}
-\def\TPversion{0.1.3}
-\def\TPdate{18 Mars 2023}
+\def\TPversion{0.1.4}
+\def\TPdate{09 août 2023}
\usepackage[most]{tcolorbox}
\tcbuselibrary{minted}
@@ -180,12 +180,16 @@ Il est compatible avec les compilations usuelles en \textsf{latex}, \textsf{pdfl
\medskip
+Pour des soucis de compatibilité, \texttt{xcolor} n'est pas chargé avec des options spécifiques, les couleurs utiles ont été définies directement dans le package.
+
+\medskip
+
Il charge les packages et librairies suivantes :
\begin{itemize}
- \item \texttt{xcolor} avec les options \Cle{table,svgnames} ;
+ %\item \texttt{xcolor} avec les options \Cle{table,svgnames} ;
\item \texttt{tikz} avec les librairies \Cle{calc} et \Cle{positionning} ;
- \item \texttt{xstring}, \texttt{xparse} et \texttt{simplekv}.
+ \item \texttt{xstring} et \texttt{simplekv}.
\end{itemize}
\subsection{\og Philosophie \fg{} du package}
@@ -214,7 +218,7 @@ Ci-dessous on représente une grille $5\times5$ :
\item de taille 24x5 ;
\item avec un élargissement de \textcolor{red}{2 carreaux à gauche} et \textcolor{blue}{3 carreaux à droite} ;
\item en commençant à écrire au niveau du \textcolor{orange}{1\up{er} carreau} ;
- \item un \textcolor{ForestGreen}{\textit{cadre}} est rajouté pour visualiser la grille \textit{de base}.
+ \item un \textcolor{green!50!black}{\textit{cadre}} est rajouté pour visualiser la grille \textit{de base}.
\end{itemize}
\medskip
@@ -227,16 +231,18 @@ Ci-dessous on représente une grille $5\times5$ :
\draw[blue,thick,decorate,decoration={brace,amplitude=8pt,mirror}] ({0.5*24},{-0.5*5-0.25})--({0.5*24+3*0.5},{-0.5*5-0.25}) node[midway,below=8pt,font=\small\sffamily] {3C} ;
\draw[thick,decorate,decoration={brace,amplitude=8pt}] ({0.5*24+3*0.5+0.25},0)--({0.5*24+3*0.5+0.25},{-0.5*5}) node[midway,right=8pt,font=\small\sffamily] {5C} ;
\draw[very thick,orange,densely dashed] ({0.5*1},0)--({0.5*1},{-0.5*5}) ;
- \draw[ForestGreen,thick] (0,0) rectangle ({0.5*24},{-0.5*5}) ;
+ \draw[green!50!black,thick] (0,0) rectangle ({0.5*24},{-0.5*5}) ;
\end{tikzpicture}
\vspace{1.5cm}
-Il est à noter que le figure \texttt{tikzpicture} est \textit{délimitée} par le \textcolor{ForestGreen}{\textit{cadre}}, afin de pouvoir gérer les débordements et l'alignement de l'environnement !
+Il est à noter que le figure \texttt{tikzpicture} est \textit{délimitée} par le \textcolor{green!50!black}{\textit{cadre}}, afin de pouvoir gérer les débordements et l'alignement de l'environnement !
\smallskip
-De plus, le bord gauche du \textcolor{ForestGreen}{\textit{cadre}} est aligné sur la marge gauche de la page, donc la position du quadrillage dépend en partie de la configuration de \texttt{\textbackslash parindent}.
+De plus, le bord gauche du \textcolor{green!50!black}{\textit{cadre}} est aligné sur la marge gauche de la page, donc la position du quadrillage dépend en partie de la configuration de \texttt{\textbackslash parindent}.
+
+\pagebreak
\subsection{Couleurs prédéfinies}
@@ -244,12 +250,24 @@ Le package \textsf{WriteOnGrid} définit également des couleurs pour une saisie
\begin{PresentationCode}{listing only}
\definecolor{TyrianPurple}{rgb}{0.4,0.01,0.24}
+\definecolor{PapierRose}{HTML}{E6B8E6}
+\definecolor{PapierGris}{HTML}{D7E2EE}
%Couleurs adaptées pour le Seyes
-\def\CoulSeyes{Plum!75/LightSteelBlue!50}
+\def\CoulSeyes{PapierRose/PapierGris}
%Couleurs adaptées pour le Ruled
-\def\CoulRuled{LightSteelBlue!50/TyrianPurple}
+\def\CoulRuled{PapierGris/TyrianPurple}
+\end{PresentationCode}
+
+\begin{PresentationCode}{text only}
+{\tikz \filldraw[TyrianPurple] (0,0) rectangle++ (6,1) node[midway,font=\bfseries\large,text=white] {\verb+TyrianPurple+};}
+
+{\tikz \filldraw[PapierRose] (0,0) rectangle++ (6,1) node[midway,font=\bfseries\large,text=black] {\verb+PapierRose+};}
+
+{\tikz \filldraw[PapierGris] (0,0) rectangle++ (6,1) node[midway,font=\bfseries\large,text=black] {\verb+PapierGris+};}
\end{PresentationCode}
+
+
\pagebreak
\section{Grilles individuelles}
@@ -290,8 +308,8 @@ Le second argument, \textit{optionnel}, entre \texttt{<...>} correspond quant à
%18x4 grands carreaux, sans dépassement, couleurs adaptées, sans marge/barre
\AffQuadrillage[NbCarreaux=18x4,Grille=Seyes,AffBarre=false]<\CoulSeyes>
-%36x8 petits carreaux, avec débordements 3/3, couleur LightSteelBlue!50
-\AffQuadrillage[NbCarreaux=36x8,Elargir=3/3]<LightSteelBlue!50>
+%36x8 petits carreaux, avec débordements 3/3, couleur PapierGris
+\AffQuadrillage[NbCarreaux=36x8,Elargir=3/3]<PapierGris>
%12x3 lignes "Ruled", sans débordements, couleur Ruled, centré, avec marge
\begin{center}
@@ -305,7 +323,7 @@ Le second argument, \textit{optionnel}, entre \texttt{<...>} correspond quant à
\medskip
-\AffQuadrillage[NbCarreaux=36x8,Elargir=3/3]<LightSteelBlue!50>
+\AffQuadrillage[NbCarreaux=36x8,Elargir=3/3]<PapierGris>
\begin{center}
\AffQuadrillage[NbCarreaux=12x3,Elargir=2/2,Grille=Ruled,Marge=2]<\CoulRuled>
@@ -352,8 +370,8 @@ Le second argument, \textit{optionnel}, entre \texttt{<...>} correspond quant à
\begin{EnvQuadrillage}[NbCarreaux=18x4,Grille=Seyes,Marge=3]<\CoulSeyes>
\end{EnvQuadrillage}
-%36x8 petits carreaux, avec débordements 3/3, couleur LightSteelBlue!50
-\begin{EnvQuadrillage}[NbCarreaux=36x8,Elargir=3/3]<LightSteelBlue!50>
+%36x8 petits carreaux, avec débordements 3/3, couleur PapierGris
+\begin{EnvQuadrillage}[NbCarreaux=36x8,Elargir=3/3]<PapierGris>
\end{EnvQuadrillage}
%12x3 lignes "Ruled", sans débordements, couleur Ruled, centré, avec marge
@@ -370,7 +388,7 @@ Le second argument, \textit{optionnel}, entre \texttt{<...>} correspond quant à
\smallskip
-\begin{EnvQuadrillage}[NbCarreaux=36x8,Elargir=3/3,Cadre]<LightSteelBlue!50>
+\begin{EnvQuadrillage}[NbCarreaux=36x8,Elargir=3/3,Cadre]<PapierGris>
\end{EnvQuadrillage}
\begin{center}
@@ -407,7 +425,7 @@ Le premier argument, entre \texttt{[...]} propose les \Cle{clés} :
\item \Cle{Echelle} pour spécifier l'échelle du texte à écrire.\hfill~défaut : \Cle{1}
\end{itemize}
-Le deuxième argument, \textit{optionnel}, entre \texttt{<...>} permet de spécifier l'alignement horizontal (parmi \Cle{left/center/right}) du texte dans le \textcolor{ForestGreen}{\textit{cadre}} de base, \Cle{left} par défaut.
+Le deuxième argument, \textit{optionnel}, entre \texttt{<...>} permet de spécifier l'alignement horizontal (parmi \Cle{left/center/right}) du texte dans le \textcolor{green!50!black}{\textit{cadre}} de base, \Cle{left} par défaut.
\medskip
@@ -484,8 +502,8 @@ Tout le placement est géré grâce à un point (fictif), nommé \texttt{(SeyesO
Pour l'environnement de création de la grille, l'argument, \textit{optionnel} et entre \texttt{[...]}, propose :
\begin{itemize}
- \item la clé \Cle{CouleurP} pour la couleur des \textit{gros traits} ;\hfill~défaut : \Cle{Plum!66}
- \item la clé \Cle{CouleurS} pour la couleur des \textit{petits traits} ;\hfill~défaut : \Cle{LightSteelBlue!33}
+ \item la clé \Cle{CouleurP} pour la couleur des \textit{gros traits} ;\hfill~défaut : \Cle{PapierRose}
+ \item la clé \Cle{CouleurS} pour la couleur des \textit{petits traits} ;\hfill~défaut : \Cle{PapierGris}
\item la clé \Cle{CouleurMarge} pour la couleur du trait de la marge ;\hfill~défaut : \Cle{red!75}
\item le booléen \Cle{NumLignes} pour afficher le numéro des lignes (pour aider !). \hfill~défaut : \Cle{false}
\end{itemize}
@@ -539,7 +557,7 @@ La commande \texttt{ParagraphePapierSeyes} permet de saisir des commandes \texti
\ParagraphePapierSeyes[options]<alignement>(ajustement){texte}
\end{PresentationCode}
-\faBomb{} Cet aspect \textit{multilignes} pourra sans doute être problématique pour un placement optimal, donc doit être utilisée avec précautions\ldots
+\faBomb{} Cet aspect \textit{multilignes} pourra sans doute être problématique pour un placement optimal, donc doit être utilisé avec précautions\ldots
\smallskip
@@ -577,7 +595,7 @@ Un exemple \textit{détaillé}, avec le rendu en page suivante, avec quelques co
%cadre de notes
\CadreNoteSeyes{3}
%ligne pour un petit titre
- \LignePapierSeyes[Echelle=1.5,Ligne=9,Couleur=ForestGreen]{\sffamily\underline{Exercice 1 :}}
+ \LignePapierSeyes[Echelle=1.5,Ligne=9,Couleur=green!50!black]{\sffamily\underline{Exercice 1 :}}
%un paragraphe de quelques lignes
\ParagraphePapierSeyes[Ligne=10]{\cursive\lipsum[1]}
%un paragraphe avec des maths
@@ -617,7 +635,7 @@ Un exemple \textit{détaillé}, avec le rendu en page suivante, avec quelques co
%cadre de notes
\CadreNoteSeyes{3}
%ligne pour un petit titre
- \LignePapierSeyes[Echelle=1.5,Ligne=9,Couleur=ForestGreen]{\sffamily\underline{Exercice 1 :}}
+ \LignePapierSeyes[Echelle=1.5,Ligne=9,Couleur=green!50!black]{\sffamily\underline{Exercice 1 :}}
%un paragraphe de quelques lignes
\ParagraphePapierSeyes[Ligne=10]{\cursive\lipsum[1]}
%un paragraphe avec des maths
@@ -687,7 +705,7 @@ Les exemples des pages suivantes ont été obtenus de la même manière que celu
\LignePapierCinqCinq[Echelle=1.25,Ligne=1]{C. PIERQUET \hfill LaTeX}
\LignePapierCinqCinq[Echelle=1.25,Ligne=3,Couleur=red]<center>{\underline{\cursive\bfseries Devoir 2}}
\CadreNoteCinqCinq{4}
- \LignePapierCinqCinq[Echelle=1.25,Ligne=9,Couleur=ForestGreen]{\sffamily\underline{Exercice 1 :}}
+ \LignePapierCinqCinq[Echelle=1.25,Ligne=9,Couleur=green!50!black]{\sffamily\underline{Exercice 1 :}}
\ParagraphePapierCinqCinq[Ligne=11]{\cursive\lipsum[1]}
\ParagraphePapierCinqCinq[Ligne=30]
{%
@@ -704,7 +722,7 @@ Les exemples des pages suivantes ont été obtenus de la même manière que celu
\LignePapierRuled[Echelle=1.25,Ligne=1]{C. PIERQUET \hfill LaTeX}
\LignePapierRuled[Echelle=1.25,Ligne=2,Couleur=red]<center>{\underline{\cursive\bfseries Devoir 3}}
\CadreNoteRuled{3}
- \LignePapierRuled[Echelle=1.25,Ligne=8,Couleur=ForestGreen]{\sffamily\underline{Exercice 1 :}}
+ \LignePapierRuled[Echelle=1.25,Ligne=8,Couleur=green!50!black]{\sffamily\underline{Exercice 1 :}}
\ParagraphePapierRuled[Ligne=9]{\cursive\lipsum[1]}
\ParagraphePapierRuled[Ligne=22]
{%
@@ -722,7 +740,7 @@ Les exemples des pages suivantes ont été obtenus de la même manière que celu
\LignePapierCinqCinq[Echelle=1.25,Ligne=1]{C. PIERQUET \hfill LaTeX}
\LignePapierCinqCinq[Echelle=1.25,Ligne=3,Couleur=red]<center>{\underline{\cursive\bfseries Devoir 2}}
\CadreNoteCinqCinq{4}
- \LignePapierCinqCinq[Echelle=1.25,Ligne=9,Couleur=ForestGreen]{\sffamily\underline{Exercice 1 :}}
+ \LignePapierCinqCinq[Echelle=1.25,Ligne=9,Couleur=green!50!black]{\sffamily\underline{Exercice 1 :}}
\ParagraphePapierCinqCinq[Ligne=11]{\cursive\lipsum[1]}
\ParagraphePapierCinqCinq[Ligne=30]
{%
@@ -739,7 +757,7 @@ Les exemples des pages suivantes ont été obtenus de la même manière que celu
\LignePapierRuled[Echelle=1.25,Ligne=1]{C. PIERQUET \hfill LaTeX}
\LignePapierRuled[Echelle=1.25,Ligne=2,Couleur=red]<center>{\underline{\cursive\bfseries Devoir 3}}
\CadreNoteRuled{3}
- \LignePapierRuled[Echelle=1.25,Ligne=8,Couleur=ForestGreen]{\sffamily\underline{Exercice 1 :}}
+ \LignePapierRuled[Echelle=1.25,Ligne=8,Couleur=green!50!black]{\sffamily\underline{Exercice 1 :}}
\ParagraphePapierRuled[Ligne=9]{\cursive\lipsum[1]}
\ParagraphePapierRuled[Ligne=22]
{%
@@ -752,6 +770,8 @@ Les exemples des pages suivantes ont été obtenus de la même manière que celu
\section{Historique}
+\verb|v0.1.4|~:~~~~Modification de la gestion des couleurs (\texttt{xcolor} n'est plus chargé avec \textsf{[table,svgnames]})
+
\verb|v0.1.3|~:~~~~Ajout d'une commande pour afficher (sans écrire dessus) une grille
\verb|v0.1.2|~:~~~~Ajustement au niveau des couleurs + raccourcis couleurs par défaut
diff --git a/macros/latex/contrib/writeongrid/tex/WriteOnGrid.sty b/macros/latex/contrib/writeongrid/tex/WriteOnGrid.sty
index 3936233bff..f5a6f6adf9 100644
--- a/macros/latex/contrib/writeongrid/tex/WriteOnGrid.sty
+++ b/macros/latex/contrib/writeongrid/tex/WriteOnGrid.sty
@@ -2,28 +2,37 @@
% licence : Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{WriteOnGrid}[2023/03/18 v0.1.3 package to write on grid lines]
+\ProvidesPackage{WriteOnGrid}[2023/08/09 v0.1.4 package to write on grid lines]
+% 0.1.4 Suppression des options de xcolor (définition manuelle des couleurs)
% 0.1.3 Ajout de commandes simples pour des mini-quadrillages autonomes, sans texte
% 0.1.2 Modification locale des couleurs + raccourcis couleurs Seyes / Ruled
% 0.1.1 Ajout de la couleur + modifications mineures + grille "Ruled" + grilles pleine page !
% 0.1.0 Version initiale [fr] & [en]
%------Packages utiles
-\RequirePackage[table,svgnames]{xcolor}
+%\RequirePackage[table,svgnames]{xcolor}
\RequirePackage{tikz}
\RequirePackage{simplekv}
\RequirePackage{xstring}
-\RequirePackage{xparse}
%librairies tikz
\usetikzlibrary{calc,positioning}
%------Variables
\newcounter{lgquadri}%compteur des lignes, qui sera incrémenté
+
+%-----Couleurs utiles
\definecolor{TyrianPurple}{rgb}{0.4,0.01,0.24}
-\def\CoulSeyes{Plum!75/LightSteelBlue!50}
-\def\CoulRuled{LightSteelBlue!50/TyrianPurple}
-\def\ColSeyes{Plum!75/LightSteelBlue!50}
-\def\ColRuled{LightSteelBlue!50/TyrianPurple}
+\definecolor{PapierRose}{HTML}{E6B8E6}
+\definecolor{PapierGris}{HTML}{D7E2EE}
+\def\CoulSeyes{PapierRose/PapierGris}
+\def\CoulRuled{PapierGris/TyrianPurple}
+\def\ColSeyes{PapierRose/PapierGris}
+\def\ColRuled{PapierGris/TyrianPurple}
+
+% \def\CoulSeyes{Plum!75/LightSteelBlue!50}
+% \def\CoulRuled{LightSteelBlue!50/TyrianPurple}
+% \def\ColSeyes{Plum!75/LightSteelBlue!50}
+% \def\ColRuled{LightSteelBlue!50/TyrianPurple}
%------Commandes [fr]
\newcommand\PasseLigne{\addtocounter{lgquadri}{1}}%passer une ligne
@@ -299,8 +308,8 @@
CouleurMarge=\xdef\SeyesFullCoulM{#1}
}
\setKVdefault[SeyesFull]{%
- CouleurP=Plum!66,%
- CouleurS=LightSteelBlue!33,%
+ CouleurP=PapierRose,%
+ CouleurS=PapierGris,%
CouleurMarge=red!75,
NumLignes=false
}
@@ -465,7 +474,7 @@
CouleurMarge=\xdef\RuledFullCoulMarge{#1}
}
\setKVdefault[RuledFull]{%
- Couleur=LightSteelBlue!50,%
+ Couleur=PapierGris,%
CouleurMarge=TyrianPurple,%
NumLignes=false
}