summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-06-28 21:07:45 +0000
committerKarl Berry <karl@freefriends.org>2022-06-28 21:07:45 +0000
commitfc4bf0535ae249c697dd53176a29d21262f37dc0 (patch)
tree8519b05cb5478dd7119c968af69c8db270fecdf2
parent6f5428186a6ad3f0b941dc73971ae1209315b6cd (diff)
inlinelabel (28jun22)
git-svn-id: svn://tug.org/texlive/trunk@63747 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/inlinelabel/README.md31
-rw-r--r--Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md55
-rw-r--r--Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md55
-rw-r--r--Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex11
-rw-r--r--Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty55
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/inlinelabel.tlpsrc0
8 files changed, 209 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/inlinelabel/README.md b/Master/texmf-dist/doc/latex/inlinelabel/README.md
new file mode 100644
index 00000000000..e7acb7ca7e2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/inlinelabel/README.md
@@ -0,0 +1,31 @@
+# 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.
+
+
+## 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
diff --git a/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md b/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md
new file mode 100644
index 00000000000..dd726d5533f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md
@@ -0,0 +1,55 @@
+# 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
diff --git a/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md b/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md
new file mode 100644
index 00000000000..a0e14fe4031
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md
@@ -0,0 +1,55 @@
+# 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
diff --git a/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex b/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex
new file mode 100644
index 00000000000..bf70bcaf824
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex
@@ -0,0 +1,11 @@
+\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
diff --git a/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty b/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty
new file mode 100644
index 00000000000..93c4822c837
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty
@@ -0,0 +1,55 @@
+%%
+%% inlinelabel.sty
+%%
+%% Copyright (C) 2022 Yukoh KUSAKABE (screen-name)
+%% https://www.metaphysica.info/
+%% https://twitter.com/metaphysicainfo
+%%
+%% This package released under
+%% [the MIT license](https://ctan.org/license/mit).
+%%
+%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{inlinelabel}[2022/06/28 v1.0]
+%
+% When you meet ''Package pxufont Error: You must load this package
+% after 'otf'.'', move \usepackage{otf} to a forward row.
+%
+%% \if@inlinelabel@circled
+\newif\if@inlinelabel@circled
+\@inlinelabel@circledfalse
+%
+%% [circled]
+\DeclareOption{circled}{\@inlinelabel@circledtrue}
+%
+\ExecuteOptions{}
+\ProcessOptions\relax
+%
+% for \tagform@ \maketag@@@
+\RequirePackage{amsmath}
+%
+%% When [circled]
+\if@inlinelabel@circled
+%
+% for \ajMaru
+\RequirePackage{otf}
+% for \getrefnumber
+\RequirePackage{refcount}
+%
+% renew tagform
+\def\tagform@#1{\maketag@@@{\ldots\ignorespaces\ajMaru{#1}\unskip\@@italiccorr}}%
+%
+%% \circledref{<label>}
+%% \equationref{<label>}
+\DeclareRobustCommand{\circledref}[1]{\mbox{\ajMaru{\getrefnumber{#1}}}}
+\DeclareRobustCommand{\equationref}[1]{\mbox{\ajMaru{\getrefnumber{#1}}}}
+%
+\fi
+%%
+%
+%% \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}}
+%
+%% EOF \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index b32a3888859..3de5f2f3af8 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -412,7 +412,7 @@ my @TLP_working = qw(
imac image-gallery imakeidx impatient impatient-cn
imfellenglish impnattypo import imsproc imtekda
incgraph includernw inconsolata index indextools infwarerr
- initials inkpaper inline-images inlinebib inlinedef innerscript
+ initials inkpaper inline-images inlinebib inlinedef inlinelabel innerscript
inputenx inputnormalization inputtrc
inriafonts insbox install-latex-guide-zh-cn installfont
intcalc inter interactiveworkbook
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 6e903872077..e9502c9671c 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -673,6 +673,7 @@ depend incgraph
depend indextools
depend inline-images
depend inlinedef
+depend inlinelabel
depend inputenx
depend inputtrc
depend interactiveworkbook
diff --git a/Master/tlpkg/tlpsrc/inlinelabel.tlpsrc b/Master/tlpkg/tlpsrc/inlinelabel.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/inlinelabel.tlpsrc