summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/asternote/asternote.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-07-09 03:01:16 +0000
committerNorbert Preining <norbert@preining.info>2022-07-09 03:01:16 +0000
commit7891283a2f2fb8a8a884bb212c36da8082764a9b (patch)
tree98a050dec8439492144177997c6f66e4f9543d62 /macros/latex/contrib/asternote/asternote.sty
parentc600912bde983d6a04c7ce42321d50d4c7c1a50b (diff)
CTAN sync 202207090301
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]{%