Debian Codegraph @

texmf-dist/tex/latex-dev/tools/somedefs.sty

raw
1 %%
2 %% This is file `somedefs.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% somedefs.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% The source is maintained by the LaTeX Project team and bug
12 %% reports for it can be opened at https://latex-project.org/bugs/
13 %% (but please observe conditions on bug reports sent to that address!)
14 %%
15 %%
16 %% Copyright (C) 1993-2026
17 %% The LaTeX Project and any individual authors listed elsewhere
18 %% in this file.
19 %%
20 %% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
21 %% --------------------------------------------------------------------------
22 %%
23 %% It may be distributed and/or modified under the
24 %% conditions of the LaTeX Project Public License, either version 1.3c
25 %% of this license or (at your option) any later version.
26 %% The latest version of this license is in
27 %% https://www.latex-project.org/lppl.txt
28 %% and version 1.3c or later is part of all distributions of LaTeX
29 %% version 2005/12/01 or later.
30 %%
31 %% This file may only be distributed together with a copy of the LaTeX
32 %% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
33 %% without such generated files.
34 %%
35 %% The list of all files belonging to the LaTeX `Tools Bundle' is
36 %% given in the file `manifest.txt'.
37 %%
38 \NeedsTeXFormat{LaTeX2e}
39 \ProvidesPackage{somedefs}[1994/06/01 v0.03 Toolkit for optional definitions]
40 \def\UseSomeDefinitions{%
41 \let\ProvidesDefinition\@providesdefinition
42 }
43 \def\UseAllDefinitions{%
44 \let\ProvidesDefinition\@firstofone
45 }
46 \def\UseDefinition#1{%
47 \expandafter\let\csname#1\endcsname\@unprovided@definition
48 }
49 \def\ProvidesDefinition#1{%
50 \PackageError{somedefs}%
51 {No \noexpand\UseSomeDefinitions or \string\UseAllDefinitions}%
52 {The package which used the `somedefs' package has an error.}%
53 }
54 \def\@providesdefinition#1{\@provides@definition#1\relax
55 \@provides@definition}
56 \def\@provides@definition#1#2#3\@provides@definition{%
57 \ifx#2\@unprovided@definition
58 #1#2#3%
59 \fi
60 }
61 \def\@unprovided@definition{%
62 \PackageError{somedefs}%
63 {Package `somedefs' error: this command was never defined}%
64 {You have requested a command which does not exist.}%
65 }
66 \@onlypreamble\UseSomeDefinitions
67 \@onlypreamble\UseAllDefinitions
68 \@onlypreamble\UseDefinition
69 \@onlypreamble\ProvidesDefinition
70 \@onlypreamble\@providesdefinition
71 \@onlypreamble\@provides@definition
72 \endinput
73 %%
74 %% End of file `somedefs.sty'.