summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/asternote/asternote.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/asternote/asternote.sty')
-rw-r--r--macros/latex/contrib/asternote/asternote.sty62
1 files changed, 60 insertions, 2 deletions
diff --git a/macros/latex/contrib/asternote/asternote.sty b/macros/latex/contrib/asternote/asternote.sty
index bd6639f7ed..ee5b005184 100644
--- a/macros/latex/contrib/asternote/asternote.sty
+++ b/macros/latex/contrib/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]{%