diff options
author | Karl Berry <karl@freefriends.org> | 2022-07-08 21:49:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-07-08 21:49:06 +0000 |
commit | 3012f5562bc580ca182da417dad1bea13372aa27 (patch) | |
tree | 46f78eb8202af0748d170f427b1f04f049dad266 /Master/texmf-dist/tex/latex | |
parent | cdd17a780a7a462e47780cbb4027f0ef9ca8d193 (diff) |
asternote (8jul22)
git-svn-id: svn://tug.org/texlive/trunk@63838 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/asternote/asternote.sty | 62 |
1 files changed, 60 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/asternote/asternote.sty b/Master/texmf-dist/tex/latex/asternote/asternote.sty index bd6639f7ed7..ee5b0051848 100644 --- a/Master/texmf-dist/tex/latex/asternote/asternote.sty +++ b/Master/texmf-dist/tex/latex/asternote/asternote.sty @@ -9,8 +9,26 @@ %% [the MIT license](https://ctan.org/license/mit). %% % -\NeedsTeXFormat{pLaTeX2e} -\ProvidesPackage{asternote}[2022/06/28 v1.0] +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{asternote}[2022/07/08 v1.1] +% +%% \if@asternote@japanese +\newif\if@asternote@japanese +\@asternote@japanesefalse +% +%% [japanese] +\DeclareOption{japanese}{\@asternote@japanesetrue} +% +%% \if@asternote@luajapanese +\newif\if@asternote@luajapanese +\@asternote@luajapanesefalse +% +%% [luajapanese] +\DeclareOption{luajapanese}{\@asternote@luajapanesetrue} +% +% +\ExecuteOptions{} +\ProcessOptions\relax % %% \@astnt@noindent@switch \newif\if@astnt@noindent@switch @@ -57,8 +75,26 @@ % %% \asternotetext{<LABEL>} %% \asternotesuperscript{<LABEL>} +%%% NO OPTIONS +\DeclareRobustCommand{\asternotetext}[1]{\refstepcounter{asternotecounter}\textsf{[*\theasternotecounter ]}\expandafter\label{#1}} +%%% [japanese] +\if@asternote@japanese +\DeclareRobustCommand{\asternotetext}[1]{\refstepcounter{asternotecounter}\textsf{[*\theasternotecounter ]}\expandafter\label{#1}} +\fi +%%% [luajapanese] +\if@asternote@luajapanese \DeclareRobustCommand{\asternotetext}[1]{\refstepcounter{asternotecounter}\textsf{[*\theasternotecounter ]}\expandafter\label{#1}} +\fi +%%% NO OPTIONS +\DeclareRobustCommand{\asternotesuperscript}[1]{\refstepcounter{asternotecounter}\makebox{\@textsuperscript{\scriptsize\textsf{[*\theasternotecounter ]}}\expandafter\label{#1}}} +%%% [japanese] +\if@asternote@japanese \DeclareRobustCommand{\asternotesuperscript}[1]{\refstepcounter{asternotecounter}\makebox[2zw]{\@textsuperscript{\scriptsize\!\!\textsf{[*\theasternotecounter ]}}\expandafter\label{#1}}} +\fi +%%% [luajapanese] +\if@asternote@luajapanese +\DeclareRobustCommand{\asternotesuperscript}[1]{\refstepcounter{asternotecounter}\makebox[2\zw]{\@textsuperscript{\scriptsize\!\!\textsf{[*\theasternotecounter ]}}\expandafter\label{#1}}} +\fi % %% \asternote{<LABEL>} \DeclareRobustCommand{\asternote}[1]{% @@ -85,8 +121,19 @@ % %% \asterreftext{<LABEL>} %% \asterrefsuperscript{<LABEL>} +%%% NO OPTIONS +\DeclareRobustCommand{\asterreftext}[1]{{\textsf{[*\ref{#1}]}}} +\DeclareRobustCommand{\asterrefsuperscript}[1]{\@textsuperscript{\scriptsize\textsf{[*\ref{#1}]}}} +%%% [japanese] +\if@asternote@japanese \DeclareRobustCommand{\asterreftext}[1]{{\textsf{[*\ref{#1}]}}} \DeclareRobustCommand{\asterrefsuperscript}[1]{\@textsuperscript{\scriptsize\!\!\textsf{[*\ref{#1}]}}} +\fi +%%% [luajapanese] +\if@asternote@luajapanese +\DeclareRobustCommand{\asterreftext}[1]{{\textsf{[*\ref{#1}]}}} +\DeclareRobustCommand{\asterrefsuperscript}[1]{\@textsuperscript{\scriptsize\!\!\textsf{[*\ref{#1}]}}} +\fi % %% \asterref{<LABEL>} \DeclareRobustCommand{\asterref}[1]{% @@ -114,8 +161,19 @@ %% \asternumbertext{<LABEL>} %% \asternumbersuperscript{<LABEL>} % +%%% NO OPTIONS +\DeclareRobustCommand{\asternumbertext}[1]{{\textsf{[*{#1}]}}} +\DeclareRobustCommand{\asternumbersuperscript}[1]{\@textsuperscript{\scriptsize\textsf{[*{#1}]}}} +%%% [japanese] +\if@asternote@japanese \DeclareRobustCommand{\asternumbertext}[1]{{\textsf{[*{#1}]}}} \DeclareRobustCommand{\asternumbersuperscript}[1]{\@textsuperscript{\scriptsize\!\!\textsf{[*{#1}]}}} +\fi +%%% [luajapanese] +\if@asternote@luajapanese +\DeclareRobustCommand{\asternumbertext}[1]{{\textsf{[*{#1}]}}} +\DeclareRobustCommand{\asternumbersuperscript}[1]{\@textsuperscript{\scriptsize\!\!\textsf{[*{#1}]}}} +\fi % %% \asternumber{<LABEL>} \DeclareRobustCommand{\asternumber}[1]{% |