| 1 |
%% |
| 2 |
%% This is file `lwarp-lltjp-siunitx.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `lltjp-siunitx') |
| 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 |
\LWR@ProvidesPackagePass{lltjp-siunitx}% 2022-12-14, no date assigned in file |
| 19 |
\ExplSyntaxOn |
| 20 |
|
| 21 |
\VerifyCommand[lwarp][lltjp-siunitx]{\siunitx_print_text:n} |
| 22 |
{A248D4314D135CB0AC3E6678F331CFF2} |
| 23 |
|
| 24 |
\cs_set_protected:Npn \siunitx_print_text:n #1 |
| 25 |
{ |
| 26 |
\text |
| 27 |
{ |
| 28 |
\ltj@allalchar % <--- LuaTeX-ja |
| 29 |
\bool_if:NT \l__siunitx_print_text_family_bool |
| 30 |
{ \fontfamily { \familydefault } } |
| 31 |
\bool_if:NT \l__siunitx_print_text_series_bool |
| 32 |
{ \fontseries { \seriesdefault } } |
| 33 |
\bool_if:NT \l__siunitx_print_text_shape_bool |
| 34 |
{ \fontshape { \shapedefault } } |
| 35 |
\bool_lazy_any:nT% lwarp: factors for a single \selectfont |
| 36 |
{% lwarp |
| 37 |
{ \l__siunitx_print_text_family_bool }% lwarp |
| 38 |
{ \l__siunitx_print_text_series_bool }% lwarp |
| 39 |
{ \l__siunitx_print_text_shape_bool }% lwarp |
| 40 |
}% lwarp |
| 41 |
{ \selectfont }% lwarp |
| 42 |
\tl_use:N \l__siunitx_print_text_font_tl% lwarp |
| 43 |
\exp_args:NnV \tl_if_head_eq_meaning:nNTF {#1} \l_siunitx_unit_fraction_tl% lwarp |
| 44 |
{% lwarp |
| 45 |
\__siunitx_print_text_fraction:Nnn #1% lwarp |
| 46 |
}% lwarp |
| 47 |
{% lwarp |
| 48 |
\__siunitx_print_text_replace:n {#1}% ORIGINAL |
| 49 |
}% lwarp |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
\ExplSyntaxOff |
| 54 |
|
| 55 |
\endinput |
| 56 |
%% |
| 57 |
%% End of file `lwarp-lltjp-siunitx.sty'. |