texlive[63831] Master/texmf-dist: inlinelabel (7jul22)

commits+karl at tug.org commits+karl at tug.org
Thu Jul 7 21:55:41 CEST 2022


Revision: 63831
          http://tug.org/svn/texlive?view=revision&revision=63831
Author:   karl
Date:     2022-07-07 21:55:41 +0200 (Thu, 07 Jul 2022)
Log Message:
-----------
inlinelabel (7jul22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md
    trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel.pdf

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md
    trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md
    trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex

Modified: trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md	2022-07-07 19:55:14 UTC (rev 63830)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md	2022-07-07 19:55:41 UTC (rev 63831)
@@ -1,29 +1,31 @@
-# Inlinelabel Package
+# inlinelabel
 
 This package can assign equation numbers to inline equations. When Japanese is supported, you can switch to circled equation numbers.
 
 
-## System Requirements
+## Documents
 
-+ TeX format: LaTeX
-+ Prerequisite package: amsmath and refcount
-+ Prerequisite package with [circled] option: japanese-otf
+Documents for this pacakge are available in English and Japanese.
 
 
-## Installation
-
-Move inlinelabel.sty file to $TEXMF/tex/latex/hideanswer.
-
-
 ## License
 
 This package released under [the MIT license](https://ctan.org/license/mit).
 
+(C) 2022 Yukoh KUSAKABE
 
+
 ## Revision History
 
++ Version 1.2 2022-07-08
+  + Add the \equationreset.
+  + Improve the documentation.
++ Version 1.1 2022-07-07
+  + Rewrite README.
+  + Add the document (inlinelabel.pdf).
+  + Add the [luacircled] option.
 + Version 1.0 2022-06-28
-    + The first public version.
+  + The first public version.
 
 
 ---

Deleted: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md	2022-07-07 19:55:14 UTC (rev 63830)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md	2022-07-07 19:55:41 UTC (rev 63831)
@@ -1,55 +0,0 @@
-# Inlinelabel Package
-
-This package can assign equation numbers to inline equations. When Japanese is supported, you can switch to circled equation numbers.
-
-
-## System Requirements
-
-+ TeX format: LaTeX
-+ Prerequisite package: amsmath and refcount
-+ Prerequisite package with [circled] option: japanese-otf
-
-
-## Installation
-
-Move inlinelabel.sty file to $TEXMF/tex/latex/hideanswer.
-
-
-## Usage
-
-### \inlinelabel{<label>}
-
-Put the inline equation number. Place it outside of the equation (outside of the $--$). Take the name of the label as an argument. Take a small margin before and after the text to make it look natural. If you don't want margins, use \inlinelabel*{<label>}.
-
-
-### Option [circled]
-
-Assuming you are using a Japanese environment. Switch to circled equation numbers. All equation numbers are rewritten, not just the inline equation numbers.
-
-
-### \circledref{<label>}
-
-Only valid when [circled] option is loaded.
-Refer to the circled equation number.
-
-
-### \equationref{<label>}
-
-Only valid when [circled] option is loaded.
-This macro is the same as \circledref{<label>}.
-
-
-## License
-
-This package released under [the MIT license](https://ctan.org/license/mit).
-
-
-## Revision History
-
-+ Version 1.0 2022-06-28
-    + The first public version.
-
-
----
-
-[Yukoh KUSAKABE](https://twitter.com/metaphysicainfo) (screen-name) at [metaphysica.info](https://www.metaphysica.info/)
\ No newline at end of file

Deleted: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md	2022-07-07 19:55:14 UTC (rev 63830)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md	2022-07-07 19:55:41 UTC (rev 63831)
@@ -1,55 +0,0 @@
-# Inlinelabel パッケージ
-
-このパッケージは,インライン数式に数式番号を振ることができます。また,日本語を扱えるときには,丸で囲まれた数式番号に切り替えることができます。
-
-
-## 前提条件
-
-+ TeX format: LaTeX
-+ Prerequisite package: amsmath and refcount
-+ Prerequisite package with [circled] option: japanese-otf
-
-
-## インストール
-
-inlinelabel.sty を $TEXMF/tex/latex/hideanswer (TeXが見つけられる場所)に置いてください。
-
-
-## 使用方法
-
-### \inlinelabel{<label>}
-
-インラインの数式番号を置きます。数式の外($--$の外)に置いてください。引数にラベルの名前を取ります。文章を自然に見せるために,前後に少しの余白を取ります。余白がいらないときは,\inlinelabel*{<label>} を使ってください。
-
-
-### Option [circled]
-
-あなたが日本語の環境を使用していることを前提とします。丸で囲まれた数式番号に切り替えます。インラインの数式番号だけでなく,すべての数式番号が書き換えられます。
-
-
-### \circledref{<label>}
-
-[circled] オプションを読み込んでいるときにのみ有効です。
-丸で囲まれた数式番号を参照します。
-
-
-### \equationref{<label>}
-
-[circled] オプションを読み込んでいるときにのみ有効です。
-\circledref{<label>} と同じです。
-
-
-## ライセンス
-
-このパッケージは[MITライセンス](https://ctan.org/license/mit)のもとで配布しています。
-
-
-## 更新履歴
-
-+ Version 1.0 2022-06-28
-    + The first public version.
-
-
----
-
-[Yukoh KUSAKABE](https://twitter.com/metaphysicainfo) (screen-name) at [metaphysica.info](https://www.metaphysica.info/)
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel.pdf	2022-07-07 19:55:14 UTC (rev 63830)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel.pdf	2022-07-07 19:55:41 UTC (rev 63831)

Property changes on: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex	2022-07-07 19:55:14 UTC (rev 63830)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex	2022-07-07 19:55:41 UTC (rev 63831)
@@ -1,11 +0,0 @@
-\documentclass[uplatex]{article}
-\usepackage{inlinelabel}
-\begin{document}
-$1=2$\inlinelabel{a}
-
-$1=2$\inlinelabel*{b}
-
-\ref{a}
-
-\ref{b}
-\end{document}
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty	2022-07-07 19:55:14 UTC (rev 63830)
+++ trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty	2022-07-07 19:55:41 UTC (rev 63831)
@@ -10,11 +10,18 @@
 %%
 %
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{inlinelabel}[2022/06/28 v1.0]
+\ProvidesPackage{inlinelabel}[2022/07/08 v1.2]
 %
 % When you meet ''Package pxufont Error: You must load this package
 % after 'otf'.'', move \usepackage{otf} to a forward row.
 %
+%% \if at inlinelabel@nospace
+\newif\if at inlinelabel@nospace
+\@inlinelabel at nospacefalse
+%
+%% [nospace]
+\DeclareOption{nospace}{\@inlinelabel at nospacetrue}
+%
 %% \if at inlinelabel@circled
 \newif\if at inlinelabel@circled
 \@inlinelabel at circledfalse
@@ -22,6 +29,14 @@
 %% [circled]
 \DeclareOption{circled}{\@inlinelabel at circledtrue}
 %
+%% \if at inlinelabel@luacircled
+\newif\if at inlinelabel@luacircled
+\@inlinelabel at luacircledfalse
+%
+%% [luacircled]
+\DeclareOption{luacircled}{\@inlinelabel at luacircledtrue}
+%
+%
 \ExecuteOptions{}
 \ProcessOptions\relax
 %
@@ -47,9 +62,41 @@
 \fi
 %%
 %
+%% When [luacircled]
+\if at inlinelabel@luacircled
+%
+% for \ajMaru
+\RequirePackage{luatexja-otf}
+% for \getrefnumber
+\RequirePackage{refcount}
+%
+% renew tagform
+\def\tagform@#1{\maketag@@@{$\ldots\hspace*{-0.075em}$\ignorespaces\ajMaru{#1}\unskip\@@italiccorr}}%
+%
+%% \circledref{<label>}
+%% \equationref{<label>}
+\DeclareRobustCommand{\circledref}[1]{\mbox{\ajMaru{\getrefnumber{#1}}}}
+\DeclareRobustCommand{\equationref}[1]{\mbox{\ajMaru{\getrefnumber{#1}}}}
+%
+\fi
+%
+\if at inlinelabel@nospace
+%
+%% [nospace]\inlinelabel{<label>}
+\DeclareRobustCommand{\inlinelabel}{\@ifstar{\@inlinelabelstar}{\@inlinelabelnostar}}
+\DeclareRobustCommand{\@inlinelabelnostar}[1]{\refstepcounter{equation}\tagform@\theequation\expandafter\label{#1}}
+\DeclareRobustCommand{\@inlinelabelstar}[1]{\hspace{0.5em}\refstepcounter{equation}\tagform@\theequation\expandafter\label{#1}\hspace{0.5em}}
+%
+\else
+%
 %% \inlinelabel{<label>}
 \DeclareRobustCommand{\inlinelabel}{\@ifstar{\@inlinelabelstar}{\@inlinelabelnostar}}
 \DeclareRobustCommand{\@inlinelabelstar}[1]{\refstepcounter{equation}\tagform@\theequation\expandafter\label{#1}}
 \DeclareRobustCommand{\@inlinelabelnostar}[1]{\hspace{0.5em}\refstepcounter{equation}\tagform@\theequation\expandafter\label{#1}\hspace{0.5em}}
 %
+\fi
+%
+%% \equationreset
+\DeclareRobustCommand{\equationreset}{\setcounter{equation}{0}}
+%
 %% EOF
\ No newline at end of file



More information about the tex-live-commits mailing list.