| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2024 Aliaume LOPEZ |
| 4 |
% -------------------------------- |
| 5 |
% |
| 6 |
% This file may be distributed and/or modified under the |
| 7 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 8 |
% of this license or (at your option) any later version. |
| 9 |
% The latest version of this license is in: |
| 10 |
% |
| 11 |
% http://www.latex-project.org/lppl.txt |
| 12 |
% |
| 13 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 14 |
% version 2008-05-04 or later. |
| 15 |
% |
| 16 |
% \fi |
| 17 |
% |
| 18 |
% \iffalse |
| 19 |
%<ensps>\NeedsTeXFormat{LaTeX2e}[2023-11-01] |
| 20 |
%<ensps>\ProvidesPackage{ensps-colorscheme} |
| 21 |
%<ensps> [2024-05-03 v0.0.1 ENS Paris-Saclay Colors and Theme] |
| 22 |
%<ensps>\RequirePackage{xcolor} |
| 23 |
%<ensps>\RequirePackage{tikz} |
| 24 |
% |
| 25 |
%<*driver> |
| 26 |
\documentclass{ltxdoc} |
| 27 |
\usepackage{xcolor} |
| 28 |
\usepackage{tikz} |
| 29 |
\usepackage{ensps-colorscheme} |
| 30 |
\EnableCrossrefs |
| 31 |
\CodelineIndex |
| 32 |
\RecordChanges |
| 33 |
\begin{document} |
| 34 |
\DocInput{ensps-colorscheme.dtx} |
| 35 |
\end{document} |
| 36 |
%</driver> |
| 37 |
% \fi |
| 38 |
% |
| 39 |
% |
| 40 |
% \changes{v0.0.1}{2024-05-28}{Initial version} |
| 41 |
% \GetFileInfo{ensps-colorscheme.sty} |
| 42 |
% \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ } |
| 43 |
% \DoNotIndex{\@ne} |
| 44 |
% \DoNotIndex{\advance,\begingroup,\catcode,\closein} |
| 45 |
% \DoNotIndex{\closeout,\day,\def,\edef,\else,\empty,\endgroup} |
| 46 |
% \DoNotIndex{\foreach,\subitem,\hue,\letter,\hdclindex} |
| 47 |
% \DoNotIndex{\begin,\colorlet,\definecolor,\intensity,\end,\shade} |
| 48 |
% \DoNotIndex{\y,\x,\xglobal,\newcommand,\name,\node,\variant} |
| 49 |
% \title{The \textsf{ensps-colorscheme} package |
| 50 |
% \thanks{This document corresponds to \textsf{ensps-colorscheme}~\fileversion, |
| 51 |
% dated \filedate.} |
| 52 |
%} |
| 53 |
%\author{Aliaume Lopez \\ \texttt{[email protected]}} |
| 54 |
% |
| 55 |
% \maketitle |
| 56 |
% \begin{abstract} |
| 57 |
% A simple package to provide the ENS Paris-Saclay colors and theme. |
| 58 |
% It has been reversed engineered from the official Université Paris-Saclay |
| 59 |
% ``Charte Graphique". |
| 60 |
% \end{abstract} |
| 61 |
% |
| 62 |
% \section{Introduction} |
| 63 |
% |
| 64 |
% This package provides the ENS Paris-Saclay colors and theme. |
| 65 |
% It can be used in PhD theses, presentations and other documents |
| 66 |
% to ensure a consistent look and feel. |
| 67 |
% The package is loosely based on the following document |
| 68 |
% \texttt{Charte Graphique}\footnote{\url{https://www.universite-paris-saclay.fr/sites/default/files/2020-06/Charte-graphique-UniversiteParisSaclay.pdf}.}. |
| 69 |
% |
| 70 |
% For now, the package only provides colors and a way to visualize them. |
| 71 |
% |
| 72 |
% \section{Usage} |
| 73 |
% \DescribeMacro{\enspscolordefs} |
| 74 |
% The package defines the following colors: |
| 75 |
% \begin{itemize} |
| 76 |
% \foreach \name in {A,B,C,D} { |
| 77 |
% \foreach \hue in {1,2,3,4,5} { |
| 78 |
% \item \texttt{\name\hue}: |
| 79 |
% \textcolor{\name\hue}{\rule{0.5em}{0.5em}} |
| 80 |
% (\texttt{\textbackslash\name\hue bg} |
| 81 |
% \textcolor{\name\hue bg}{\rule{0.5em}{0.5em}} and |
| 82 |
% \texttt{\textbackslash\name\hue hint} |
| 83 |
% \textcolor{\name\hue hint}{\rule{0.5em}{0.5em}}) |
| 84 |
% } |
| 85 |
% } |
| 86 |
% \item \texttt{Prune}: |
| 87 |
% \textcolor{Prune}{Prune} |
| 88 |
% \end{itemize} |
| 89 |
% |
| 90 |
% \DescribeMacro{\enspscolors} |
| 91 |
% The \cs{enspscolors} command creates a small tikzpicture with the ENS Paris-Saclay colors. |
| 92 |
% Producing the following output: |
| 93 |
% \begin{center} |
| 94 |
% \enspscolors |
| 95 |
% \end{center} |
| 96 |
% |
| 97 |
% \PrintIndex |
| 98 |
% \PrintChanges |
| 99 |
% |
| 100 |
% \section{Implementation} |
| 101 |
% |
| 102 |
% \begin{macro}{\enspscolordefs} |
| 103 |
% Here we define the colors for the ENS Paris-Saclay theme. |
| 104 |
% The main colors are hard coded, and the \texttt{bg} and \texttt{hint} colors |
| 105 |
% are then computed from the main colors. |
| 106 |
% \begin{macrocode} |
| 107 |
\definecolor{Prune}{RGB}{99,0,60} |
| 108 |
\definecolor{A1}{HTML}{000000} |
| 109 |
\definecolor{B1}{RGB}{49,62,72} |
| 110 |
\definecolor{C1}{RGB}{124,135,143} |
| 111 |
\definecolor{D1}{RGB}{213,218,223} |
| 112 |
\definecolor{A2}{RGB}{198,11,70} |
| 113 |
\definecolor{B2}{RGB}{237,20,91} |
| 114 |
\definecolor{C2}{RGB}{238,52,35} |
| 115 |
\definecolor{D2}{RGB}{243,115,32} |
| 116 |
\definecolor{A3}{RGB}{124,42,144} |
| 117 |
\definecolor{B3}{RGB}{125,106,175} |
| 118 |
\definecolor{C3}{RGB}{198,103,29} |
| 119 |
\definecolor{D3}{RGB}{254,188,24} |
| 120 |
\definecolor{A4}{RGB}{0,78,125} |
| 121 |
\definecolor{B4}{RGB}{14,135,201} |
| 122 |
\definecolor{C4}{RGB}{0,148,181} |
| 123 |
\definecolor{D4}{RGB}{70,195,210} |
| 124 |
\definecolor{A5}{RGB}{0,128,122} |
| 125 |
\definecolor{B5}{RGB}{64,183,105} |
| 126 |
\definecolor{C5}{RGB}{140,198,62} |
| 127 |
\definecolor{D5}{RGB}{213,223,61} |
| 128 |
\foreach \name in {A,B,C,D} { |
| 129 |
\foreach \hue in {1,2,3,4,5} { |
| 130 |
\foreach \shade/\intensity in {hint/20,bg/50} { |
| 131 |
\xglobal\colorlet{\name\hue\shade}{\name\hue!\intensity!white} |
| 132 |
} |
| 133 |
} |
| 134 |
} |
| 135 |
% \end{macrocode} |
| 136 |
% \end{macro} |
| 137 |
% |
| 138 |
% \begin{macro}{\enspscolors} |
| 139 |
% Create a small tikzpicture with the ENS Paris-Saclay colors. |
| 140 |
% \begin{macrocode} |
| 141 |
\newcommand{\enspscolors}{ |
| 142 |
\begin{tikzpicture} |
| 143 |
\foreach \letter/\x in {A/0,B/1,C/2,D/3} { |
| 144 |
\foreach \y/\variant in {0/1,1/2,2/3,3/4,4/5} { |
| 145 |
\node[color=\letter\variant] |
| 146 |
(\letter\variant) at (\x,\y) |
| 147 |
{\letter\variant}; |
| 148 |
\node[color=\letter\variant bg] |
| 149 |
(BG\letter\variant) at ({\x - 0.2}, {\y - 0.2}) |
| 150 |
{\letter\variant}; |
| 151 |
\node[color=\letter\variant hint] |
| 152 |
(HT\letter\variant) at ({\x - 0.4}, {\y - 0.4}) |
| 153 |
{\letter\variant}; |
| 154 |
} |
| 155 |
} |
| 156 |
\begin{scope}[xshift=2cm] |
| 157 |
\foreach \name/\x/\y in { |
| 158 |
Prune/3/4 |
| 159 |
} { |
| 160 |
\node[color=\name] (\name) at (\x,\y) |
| 161 |
{\name}; |
| 162 |
} |
| 163 |
|
| 164 |
\end{scope} |
| 165 |
\end{tikzpicture} |
| 166 |
} |
| 167 |
% \end{macrocode} |
| 168 |
% \end{macro} |
| 169 |
% |
| 170 |
% \Finale |
| 171 |
\endinput |