| 1 |
%% |
| 2 |
%% This is file `lwarp-chemnum.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `chemnum') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
\LWR@ProvidesPackagePass{chemnum}[2016/04/14] |
| 20 |
|
| 21 |
\ExplSyntaxOn |
| 22 |
|
| 23 |
\VerifyCommand[lwarp][chemnum]{\chemnum_compound_write:n} |
| 24 |
{E47ACDCCC4D90FAC40B75B53721EC218} |
| 25 |
|
| 26 |
\cs_gset_protected:Npn \chemnum_compound_write:n #1 |
| 27 |
{ |
| 28 |
\chemnum_get_compound_property:nn {#1} {pre-main-label-code} |
| 29 |
\group_begin: |
| 30 |
\bool_if:NTF \l__chemnum_compound_local_bool |
| 31 |
{ \l__chemnum_local_label_format_tl } |
| 32 |
{ \chemnum_get_compound_property:nn {#1} {label-format} } |
| 33 |
{ |
| 34 |
\LWR@textcurrentfont{ |
| 35 |
\chemnum_get_compound_property:nn {#1} {counter-representation} |
| 36 |
} |
| 37 |
} |
| 38 |
\group_end: |
| 39 |
\chemnum_get_compound_property:nn {#1} {post-main-label-code} |
| 40 |
} |
| 41 |
|
| 42 |
\VerifyCommand[lwarp][chemnum]{\chemnum_subcompound_write:nn} |
| 43 |
{F6BB883B91A1FA330EF3B89924BF3679} |
| 44 |
|
| 45 |
\cs_gset_protected:Npn \chemnum_subcompound_write:nn #1#2 |
| 46 |
{ |
| 47 |
\group_begin: |
| 48 |
\bool_if:NTF \l__chemnum_compound_local_bool |
| 49 |
{ \l__chemnum_local_label_format_tl } |
| 50 |
{ \chemnum_get_compound_property:nn {#1} {label-format} } |
| 51 |
{ |
| 52 |
\LWR@textcurrentfont{ |
| 53 |
\chemnum_get_subcompound_property:nnn {#1} {#2} |
| 54 |
{counter-representation} |
| 55 |
} |
| 56 |
} |
| 57 |
\group_end: |
| 58 |
} |
| 59 |
|
| 60 |
\ExplSyntaxOff |
| 61 |
|
| 62 |
|
| 63 |
\endinput |
| 64 |
%% |
| 65 |
%% End of file `lwarp-chemnum.sty'. |