summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/clefval/clefval.sty
blob: 11e3666431c11901cc63bfd1c4eef1c3325d1bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
%%
%% This is file `clefval.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% clefval.dtx  (with options: `package,packeng')
%% This is a generated file.
%% 
%% Copyright (C) 2004, 2020 Y. Henel, le TeXnicien de surface
%% <le.texnicien.de.surface@yvon-henel.fr>
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3c of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%%%% Copyright (C) 2004, 2020 by Josselin Noirel
%%%% and Yvon Henel aka Le TeXnicien de surface
%%%% --------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\def\fileversion{v0.1}
\def\filedate{2020/07/27}
\def\fileinfo{define and use pair of key/values}
\ProvidesPackage{clefval}
         [\filedate\space\fileversion\space\fileinfo]

\newcommand*{\@setTheValue}[2]{%
  \ifx#1\relax
  \protect\G@refundefinedtrue
  \nfss@text{\reset@font\bfseries[?? #2 ??]}%
\@latex@warning{Value of `#2' on page \thepage\space  undefined}%
  \else #1\null \fi}
\newcommand*{\TheValue}[1]{\expandafter\@setTheValue\csname
  V@#1\endcsname{#1}}
\newcommand*{\@newk@ey}[3]{{%
    \@ifundefined{#1@#2}%
    {\relax}%
    {\gdef \@multiplekeys {%
\@latex@warning@no@line{There were multiply-defined keys.}}%
\@latex@warning@no@line{Key `#2' multiply defined}}%
    \global\@namedef{#1@#2}{#3}}}
\def\newkey{\@newk@ey V}
\@onlypreamble\@newk@ey
\AtEndDocument{\let\@newk@ey=\@testdef}
\long\def \@protected@write#1{%
  \begingroup
  \let\protect\@unexpandable@protect
  \edef\reserved@a{%
    \write\@auxout{#1}}%
  \reserved@a \endgroup \if@nobreak\ifvmode\nobreak\fi\fi }
\let \@multiplekeys \relax
\def\TheKey#1#2{{\@bsphack
    \@protected@write{\string\newkey{#1}{#2}}%
    \@esphack}}
\endinput
%%
%% End of file `clefval.sty'.