<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[%
fleqn,%
paper=a4paper,%
fontsize=10pt,%
open_bracket_pos=zenkakunibu_nibu,%
hanging_punctuation,%
]%
{jlreq}
\jlreqsetup{%
itemization_beforeafter_space=0pt,%
itemization_itemsep=0pt%
}
\makeatletter
\RequirePackage{luatexja}
\RequirePackage{luatexja-otf}
\RequirePackage{graphicx}
\RequirePackage{amsmath}
\DeclareRobustCommand{\metaphysicaicon}{\raisebox{-4.0pt}{\includegraphics[width=16pt]{metaphysicaicon.pdf}}}
\RequirePackage[normalem]{ulem}
\RequirePackage[explicit]{titlesec}
\titleformat{\section}[hang]{}{}{0pt}{\uuline{\raisebox{1pt}{\textsf{\thesection\quad #1}}}}[\vspace{0.35\baselineskip}]
\renewcommand{\thesection}{\S\,\arabic{section}}
\let\originalsection\section
\DeclareRobustCommand{\section}{\@ifstar{\@metaphysica@section@star}{\@metaphysica@section@nostar}}
\DeclareRobustCommand{\@metaphysica@section@star}[1]{\vspace{0.5\baselineskip}\originalsection{#1}\vspace*{-\baselineskip}}
\DeclareRobustCommand{\@metaphysica@section@nostar}[1]{\vspace{0.5\baselineskip}\originalsection{#1}}
\RequirePackage[%
truedimen,%
margin=30truemm,
includehead%
]{geometry}
\RequirePackage{lastpage}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\DeclareRobustCommand{\headertitle}[2][\metaphysicaicon]{%
\rhead[#2]{#1{}\quad\thepage{}/{}\pageref{LastPage}}%
\lhead[\thepage{}/{}\pageref{LastPage}\quad{}#1]{#2}%
\cfoot{}%
}
\RequirePackage{setspace}
\setstretch{1.155}
\DeclareRobustCommand{\linespace}{\@ifstar{\vspace{\baselineskip}}{\vspace{0.25\baselineskip}}}
\DeclareRobustCommand{\linesmash}{\@ifstar{\vspace{-\baselineskip}}{\vspace{-0.25\baselineskip}}}
\AtBeginDocument{%
\abovedisplayskip     =0.125\abovedisplayskip
\abovedisplayshortskip=0.125\abovedisplayshortskip
\belowdisplayskip     =0.125\belowdisplayskip
\belowdisplayshortskip=0.125\belowdisplayshortskip}
\setlength{\jot}{0pt}%
\setlength{\mathindent}{2\zw}%
\renewcommand{\floatpagefraction}{0.75}
\allowdisplaybreaks[2]
\RequirePackage[no-math]{fontspec}
\RequirePackage[no-math,deluxe,haranoaji]{luatexja-preset}
\RequirePackage{multicolpar}
\RequirePackage[style=iso]{datetime2}
\RequirePackage[unicode]{hyperref}
\RequirePackage{xparse}
\RequirePackage{dashbox}
\newcounter{psuedosectioncounter}
\setcounter{psuedosectioncounter}{1}
\newcounter{psuedocontentscounter}
\setcounter{psuedocontentscounter}{1}
\DeclareRobustCommand{\psuedosection}[3]{%
\hypertarget{#1}{\mbox{}}\begin{multicolpar}{2}%
\noindent\uuline{{\raisebox{1pt}{\textsf{\S\ \thepsuedosectioncounter\quad #2}}}}

\noindent\uuline{{\raisebox{1pt}{\textsf{\S\ \thepsuedosectioncounter\quad #3}}}}
\end{multicolpar}%
\stepcounter{psuedosectioncounter}%
\vspace{\baselineskip}%
}
\DeclareRobustCommand{\psuedocontents}[3]{%
\begin{multicolpar}{2}%
\noindent{\textsf{\hyperlink{#1}{\S\ \thepsuedocontentscounter\quad #2}}}

\noindent{\textsf{\hyperlink{#1}{\S\ \thepsuedocontentscounter\quad #3}}}\end{multicolpar}%
\stepcounter{psuedocontentscounter}%
}
\newenvironment{translateing}%
{\begin{multicolpar}{2}}
{\end{multicolpar}\vspace{\baselineskip}}
\DeclareRobustCommand{\maketitletranslating}%
{\maketitle\thispagestyle{fancy}
\vspace{\baselineskip}\begin{multicolpar}{2}
\textsf{English}

\noindent
\textsf{æ—¥æœ¬èªž (Japanese)}
\end{multicolpar}\vspace{\baselineskip}}
\NewDocumentCommand\macroexplanation{v}{%
\noindent\hspace*{\fill}{\texttt{#1}}\hspace*{\fill}\linespace%
}
\NewDocumentEnvironment{macroexample}{O{0.625} +b}{%
\noindent\hspace*{\fill}\dbox{\parbox{#1\textwidth}{%
#2%
}}\hspace*{\fill}}%
{\vspace{\baselineskip}}
\NewDocumentEnvironment{macroexample*}{O{0.625} m +b}{%
\noindent\hspace*{\fill}\dbox{\parbox{#1\textwidth}{%
\vspace{-0.5\baselineskip}\begin{#2}%
#3
\end{#2}%
}}\hspace*{\fill}}
{\vspace{\baselineskip}}
\let\code\texttt
\setlength{\fboxsep}{1em}
\setstretch{1.05}
\DeclareRobustCommand{\commandtojskip}{\hspace{2.40554pt plus 1.49994pt minus 0.59998pt}}
\RequirePackage{listings, jlisting}
\lstset{
  language=[LaTeX]TeX,
  basicstyle={\ttfamily},
  identifierstyle={\small},
  commentstyle={\small\itshape},
  keywordstyle={\small\bfseries},
  ndkeywordstyle={\small},
  stringstyle={\small\ttfamily},
  frame=single,
  breaklines=true,
  columns=[l]{fullflexible},
  stepnumber=1,
  xrightmargin=0.1709\textwidth,
  xleftmargin=0.1709\textwidth,
  lineskip=-0.5ex
}
\RequirePackage{bxtexlogo}
\RequirePackage{shortvrb}
\MakeShortVerb{\|}
\RequirePackage[luacircled]{inlinelabel}
\makeatother
%
\hypersetup{%
bookmarksnumbered=true,%
colorlinks=true,%
linkcolor=blue,%
urlcolor=blue,%
setpagesize=false,%
pdftitle={The inlinelabel package},%
pdfauthor={Yukoh KUSAKABE},%
pdfsubject={The inlinelabel package},%
pdfkeywords={TeX LaTeX inlinel label}}
\title{The \code{inlinelabel} package:\\[0.25\baselineskip]
assign equation numbers to inline equations}
\author{Yukoh KUSAKABE}
%\author{Y\=uk\=o KUSAKABE}
\date{\today}
\headertitle[Yukoh KUSAKABE\quad\metaphysicaicon]{The \code{inlinelabel} package}
%\headertitle[Y\=uk\=o KUSAKABE\quad\metaphysicaicon]{The \code{inlinelabel} package}
\begin{document}
\maketitletranslating

\begin{translateing}
This package can assign equation numbers to inline equations. When Japanese is supported, you can switch to circled equation numbers.

ã“ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¯ï¼Œã‚¤ãƒ³ãƒ©ã‚¤ãƒ³æ•°å¼ã«æ•°å¼ç•ªå·ã‚’æŒ¯ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ã¾ãŸï¼Œæ—¥æœ¬èªžã‚’æ‰±ãˆã‚‹ã¨ãã«ã¯ï¼Œä¸¸ã§å›²ã¾ã‚ŒãŸæ•°å¼ç•ªå·ã«åˆ‡ã‚Šæ›¿ãˆã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
\end{translateing}

%\psuedocontents{inlinelabel}
%{Package \code{inlinelabel}}
%{\code{inlinelabel} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸}

\psuedocontents{Requirements}{System Requirements}{å‰ææ¡ä»¶}

\psuedocontents{Installation}{Installation}{ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«}

\psuedocontents{Loading}{Loading}{èª­ã¿è¾¼ã¿}

\psuedocontents{Usage}{Usage}{ä½¿ç”¨æ–¹æ³•}

\psuedocontents{moreinfo}{For More Information}{å•ã„åˆã‚ã›ãƒ»è©³ã—ãã¯}

%\psuedosection{inlinelabel}{Package \code{inlinelabel}}{\code{inlinelabel} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸}
%
%\begin{translateing}
%This package can assign equation numbers to inline equations. When Japanese is supported, you can switch to circled equation numbers.
%
%ã“ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¯ï¼Œã‚¤ãƒ³ãƒ©ã‚¤ãƒ³æ•°å¼ã«æ•°å¼ç•ªå·ã‚’æŒ¯ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ã¾ãŸï¼Œæ—¥æœ¬èªžã‚’æ‰±ãˆã‚‹ã¨ãã«ã¯ï¼Œä¸¸ã§å›²ã¾ã‚ŒãŸæ•°å¼ç•ªå·ã«åˆ‡ã‚Šæ›¿ãˆã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
%\end{translateing}

\psuedosection{Requirements}{System Requirements}{å‰ææ¡ä»¶}

\begin{translateing}
\textbullet\ \LaTeXe\ format\\
\textbullet\ \code{amsmath} package\\
\textbullet\ \code{refcount} package\\
\textbullet\ \pTeX\ engine (\code{[circled]} only)\\
\textbullet\ \code{japanese-otf} package (\code{[circled]} only)\\
\textbullet\ \LuaTeX\ engine (\code{[luacircled]} only)\\
\textbullet\ \scalebox{0.95}[1]{\code{luatexja-otf} package (\code{[luacircled]} only)}

\noindent
\textbullet\ \LaTeXe ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ\\
\textbullet\ \code{amsmath} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸\\
\textbullet\ \code{refcount} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸\\
\textbullet\ \pTeX ã‚¨ãƒ³ã‚¸ãƒ³ï¼ˆ\code{[circled]}ä½¿ç”¨æ™‚ï¼‰\\
\textbullet\ \scalebox{0.9}[1]{\code{japanese-otf} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ï¼ˆ\code{[circled]}ä½¿ç”¨æ™‚ï¼‰}\\
%\textbullet\ \code{luatexja-otf} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸\\
%\hfill ï¼ˆ\code{[luacircled]}ä½¿ç”¨æ™‚ï¼‰
\textbullet\ \LuaTeX ã‚¨ãƒ³ã‚¸ãƒ³ï¼ˆ\code{[luacircled]}ä½¿ç”¨æ™‚ï¼‰\!\\
\textbullet\ \scalebox{0.8375}[1]{\code{luatexja-otf} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ï¼ˆ\code{[luacircled]}ä½¿ç”¨æ™‚ï¼‰}
\end{translateing}

\newpage
\psuedosection{Installation}{Installation}{ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«}

\begin{translateing}
If not available, move inlinelabel.sty file to\\\code{\$TEXMF/tex/latex/inlinelabel}.

ç›´ã¡ã«ä½¿ãˆãªã‘ã‚Œã°ï¼Œinlinelabel.sty ã‚’\\\code{\$TEXMF/tex/latex/inlinelabel}\\%ï¼ˆ\TeX ãŒè¦‹ã¤ã‘ã‚‰ã‚Œã‚‹å&nbsp;´æ‰€ï¼‰
ã«ç½®ã„ã¦ãã&nbsp;ã•ã„ã€‚
\end{translateing}

\psuedosection{Loading}{Loading}{èª­ã¿è¾¼ã¿}

\begin{translateing}
To use this package, load .sty file with |\usepackage{inlinelabel}| command in
preamble.

ã“ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’ä½¿ç”¨ã™ã‚‹ã«ã¯ï¼Œãƒ—ãƒªã‚¢ãƒ³ãƒ–ãƒ«ã«\commandtojskip|\usepackage{inlinelabel}|\commandtojskip ã¨æ›¸ã„ã¦ãã&nbsp;ã•ã„ã€‚
%\end{translateing}

%\begin{translateing}
There are three options:\\
\textbullet\ |[nospace]| swaps with no space command and with space command.\\
\textbullet\ |[circled]| switches to circled equation numbers on \pLaTeX, which is an engine for Japanese.\\
\textbullet\ |[luacircled]| switches to circled equation numbers on \LuaLaTeX\ (and Japanese environment required).

3ã¤ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ãŒã‚ã‚Šã¾ã™ã€‚\\
\textbullet\ |[nospace]|ã¯ã‚¹ãƒšãƒ¼ã‚¹ãªã—å‘½ä»¤ã¨ã‚¹ãƒšãƒ¼ã‚¹ã‚ã‚Šå‘½ä»¤ãŒå…¥ã‚Œæ›¿ãˆã¾ã™ã€‚\\
\textbullet\ |[circled]|ã¯ä¸¸ã§å›²ã¾ã‚ŒãŸæ•°å¼ç•ªå·ã«åˆ‡ã‚Šæ›¿ãˆã¾ã™ï¼ˆ\pLaTeX ç”¨ï¼‰ã€‚\\
\textbullet\ |[luacircled]|ã¯ä¸¸ã§å›²ã¾ã‚ŒãŸæ•°å¼ç•ªå·ã«åˆ‡ã‚Šæ›¿ãˆã¾ã™ï¼ˆ\LuaLaTeX ç”¨ï¼‰ã€‚
\end{translateing}



\psuedosection{Usage}{Usage}{ä½¿ç”¨æ–¹æ³•}

\macroexplanation{\inlinelabel{&lt;label&gt;}}

\begin{translateing}
This command puts the inline equation number. It takes the name of the label as an argument. Place it outside of the equation (outside of the \$--\$). It makes a small margin before and after the text to make it look natural (in Japanese). If you don't want margins, use |\inlinelabel*{&lt;label&gt;}|.

ã‚¤ãƒ³ãƒ©ã‚¤ãƒ³ã®æ•°å¼ç•ªå·ã‚’ç½®ãã¾ã™ã€‚å¼•æ•°ã«ãƒ©ãƒ™ãƒ«ã®åå‰ã‚’å–ã‚Šã¾ã™ã€‚æ•°å¼ï¼ˆ\$--\$ï¼‰ã®å¤–ã«ç½®ã„ã¦ãã&nbsp;ã•ã„ã€‚è‡ªç„¶ã«è¦‹ã›ã‚‹ãŸã‚ã«ï¼Œå‰å¾Œã«å°‘ã—ã®ä½™ç™½ã‚’å–ã‚Šã¾ã™ã€‚ä½™ç™½ãŒã„ã‚‰ãªã„ã¨ãã¯\commandtojskip|\inlinelabel*{&lt;label&gt;}|\commandtojskip ã‚’ä½¿ã£ã¦ãã&nbsp;ã•ã„ã€‚
%
%If you don't want margins (not in Japanese), use |\inlinelabel*{&lt;label&gt;}|.
%
%æ—¥æœ¬èªžçµ„ç‰ˆã‚’å¿µé&nbsp;­ã«ä½œã£ã¦ã„ã¾ã™ã®ã§ï¼Œè‹±èªžã§ã¯ |\inlinelabel*{&lt;label&gt;}| ã‚’ä½¿ã£ã¦åŽŸç¨¿ã§ã‚¹ãƒšãƒ¼ã‚¹ã‚’å…¥ã‚Œã‚‹ã®ãŒè‡ªç„¶ã§ã—ã‚‡ã†ã€‚

For inconvenience, there is the |[nospace]| option.
In this case, |\inlinelabel{&lt;label&gt;}| is swapped with no space and |\inlinelabel*{&lt;label&gt;}| has space.

ãã‚ŒãŒé¢å€’ãªã¨ãã®ãŸã‚ã«ï¼Œ|[nospace]|ã‚ªãƒ—ã‚·ãƒ§ãƒ³ãŒç”¨æ„ã•ã‚Œã¦ã„ã¾ã™ã€‚
ã“ã®ã¨ãï¼Œ|\inlinelabel{&lt;label&gt;}|\commandtojskip ãŒã‚¹ãƒšãƒ¼ã‚¹ãªã—ï¼Œ|\inlinelabel*{&lt;label&gt;}|\commandtojskip ãŒã‚¹ãƒšãƒ¼ã‚¹ã‚ã‚Šã«å…¥ã‚Œæ›¿ã‚ã‚Šã¾ã™ã€‚
\end{translateing}

\begin{lstlisting}
An inlinelabel makes 
$e^{i\theta}=\cos\theta+i\sin\theta$\inlinelabel{test1}.

An asterisked one makes 
$e^{i\pi}+1=0$\inlinelabel*{test2}.
\end{lstlisting}

\begin{macroexample}
An inlinelabel makes $e^{i\theta}=\cos\theta+i\sin\theta$\hspace{0.5em}(1)\hspace{0.5em}.

An asterisked one makes $e^{i\pi}+1=0$(2).
\end{macroexample}

\begin{translateing}
The |&lt;label&gt;| can be used for |\ref|.

|&lt;label&gt;|\commandtojskip ã‚’\commandtojskip|\ref|ã§ä½¿ã†ã“ã¨ãŒã§ãã¾ã™ã€‚
\end{translateing}

\begin{lstlisting}
Substituting $\theta=\pi$
for (\ref{test1}) yields (\ref{test2}).
\end{lstlisting}

\begin{macroexample}
Substituting $\theta=\pi$ for (\ref*{test1}) yields (\ref*{test2}).
\end{macroexample}

\macroexplanation{Options [circled] [luacircled]}

\begin{translateing}
Assuming you are using a Japanese environment. Switch to circled equation numbers. All equation numbers are rewritten, not just the inline equation numbers.

ã‚ãªãŸãŒæ—¥æœ¬èªžã®ç’°å¢ƒã‚’ä½¿ç”¨ã—ã¦ã„ã‚‹ã“ã¨ã‚’å‰æã¨ã—ã¾ã™ã€‚ä¸¸ã§å›²ã¾ã‚ŒãŸæ•°å¼ç•ªå·ã«åˆ‡ã‚Šæ›¿ãˆã¾ã™ã€‚ã‚¤ãƒ³ãƒ©ã‚¤ãƒ³ã®æ•°å¼ç•ªå·ã&nbsp;ã‘ã§ãªãï¼Œã™ã¹ã¦ã®æ•°å¼ç•ªå·ãŒæ›¸ãæ›ãˆã‚‰ã‚Œã¾ã™ã€‚

When using \pLaTeX\ with the \code{japanese-otf} package, specify \code{[circled]}; when using \LuaLaTeX\ with the \code{luatexja-otf} package, specify \code{[luacircled]}.

\pLaTeX ã‚’ä½¿ã£ã¦ã„ã‚‹ã¨ãã¯ï¼Œ\code{japanese-otf} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã®èª­ã¿è¾¼ã¿ã¨ã¨ã‚‚ã«\code{[circled]}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æŒ‡å®šã—ã¦ãã&nbsp;ã•ã„ã€‚
\LuaLaTeX ã‚’ä½¿ã£ã¦ã„ã‚‹ã¨ãã¯ï¼Œ\code{luatexja-otf} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã®èª­ã¿è¾¼ã¿ã¨ã¨ã‚‚ã«\code{[luacircled]}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æŒ‡å®šã—ã¦ãã&nbsp;ã•ã„ã€‚
\end{translateing}
%
%\begin{lstlisting}
%$e^{i\theta}=\cos\theta+i\sin\theta$\inlinelabel{test1}ã¯ãƒ†ã‚¹ãƒˆã§ã™ã€‚
%
%ã‚¢ã‚¹ã‚¿ãƒªã‚¹ã‚¯ã‚’ã¤ã‘ã‚‹ã¨$e^{i\pi}+1=0$\inlinelabel*{test2}ã§ã™ã€‚
%\end{lstlisting}

\begin{macroexample}
$e^{i\theta}=\cos\theta+i\sin\theta$\inlinelabel{test1}ã¯ãƒ†ã‚¹ãƒˆã§ã™ã€‚

ã‚¢ã‚¹ã‚¿ãƒªã‚¹ã‚¯ã‚’ã¤ã‘ã‚‹ã¨$e^{i\pi}+1=0$\inlinelabel*{test2}ã§ã™ã€‚
\end{macroexample}

\begin{translateing}
The following example is just an align environment.

æ¬¡ã®ä¾‹ã¯å˜ãªã‚‹ align ç’°å¢ƒã§ã™ã€‚
\end{translateing}

\begin{lstlisting}
\begin{align}
&amp;\phantom{=}\log_{3}x+\log_{3}(6-x)\\
&amp;=\log_{3}x(6-x)\\
&amp;=\log_{3}(-(x-3)^{2}+9)
\end{align}
\end{lstlisting}

%\equationreset
\begin{macroexample*}{align}
&amp;\phantom{=}\log_{3}x+\log_{3}(6-x)\\
&amp;=\log_{3}x(6-x)\\
&amp;=\log_{3}(-(x-3)^{2}+9)
\end{macroexample*}

\macroexplanation{\circledref{&lt;label&gt;}  \equationref{&lt;label&gt;}}

\begin{translateing}
These commands are only valid when \code{[circled]} or \code{[luacircled]} option is loaded.
They refer to the circled equation number.

\code{[circled]}ã¾ãŸã¯\code{[luacircled]}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’èª­ã¿è¾¼ã‚“ã§ã„ã‚‹ã¨ãã«ã®ã¿æœ‰åŠ¹ã§ã™ã€‚
ä¸¸ã§å›²ã¾ã‚ŒãŸæ•°å¼ç•ªå·ã‚’å‚ç…§ã—ã¾ã™ã€‚
\end{translateing}

\begin{translateing}
|\equationref| is synonym with |\circledref|.

|\equationref|ã¯\commandtojskip|\circledref|ã®åˆ¥åã§ã™ã€‚
\end{translateing}

\begin{lstlisting}
Substituting $\theta=\pi$
for \equationref{test1} yields \equationref{test2}.
\end{lstlisting}

\begin{macroexample}
Substituting $\theta=\pi$ for \equationref{test1} yields \equationref{test2}.
\end{macroexample}

\macroexplanation{\equationreset}

\begin{translateing}
Reset the equation number back to 1.

æ•°å¼ç•ªå·ã‚’1ã«æˆ»ã—ã¾ã™ã€‚
\end{translateing}

\psuedosection{moreinfo}{For More Information}{å•ã„åˆã‚ã›ãƒ»è©³ã—ãã¯}

\noindent\hspace*{\fill}\begin{tabular}{rl}
The inlinelabel package:&amp;\url{https://www.metaphysica.info/technote/package_inlinelabel/}\\
Yukoh KUSAKABE:&amp;\url{https://www.metaphysica.info/}\\
&amp;\url{https://twitter.com/metaphysicainfo}\\
&amp;(screen-name, æ—¥ä¸‹éƒ¨å¹½è€ƒ in Japanese)
\end{tabular}\hspace*{\fill}
\end{document}</pre></body></html>