texlive[63747] Master: inlinelabel (28jun22)

commits+karl at tug.org commits+karl at tug.org
Tue Jun 28 23:07:46 CEST 2022


Revision: 63747
          http://tug.org/svn/texlive?view=revision&revision=63747
Author:   karl
Date:     2022-06-28 23:07:45 +0200 (Tue, 28 Jun 2022)
Log Message:
-----------
inlinelabel (28jun22)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/inlinelabel/
    trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md
    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
    trunk/Master/texmf-dist/tex/latex/inlinelabel/
    trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty
    trunk/Master/tlpkg/tlpsrc/inlinelabel.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md	2022-06-28 21:07:45 UTC (rev 63747)
@@ -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


Property changes on: trunk/Master/texmf-dist/doc/latex/inlinelabel/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md	2022-06-28 21:07:45 UTC (rev 63747)
@@ -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


Property changes on: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-en.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md	2022-06-28 21:07:45 UTC (rev 63747)
@@ -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


Property changes on: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel-ja.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex	2022-06-28 21:07:45 UTC (rev 63747)
@@ -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


Property changes on: trunk/Master/texmf-dist/doc/latex/inlinelabel/inlinelabel_example.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty	2022-06-28 21:07:45 UTC (rev 63747)
@@ -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 at inlinelabel@circled
+\newif\if at inlinelabel@circled
+\@inlinelabel at circledfalse
+%
+%% [circled]
+\DeclareOption{circled}{\@inlinelabel at circledtrue}
+%
+\ExecuteOptions{}
+\ProcessOptions\relax
+%
+% for \tagform@ \maketag@@@
+\RequirePackage{amsmath}
+%
+%% When [circled]
+\if at 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


Property changes on: trunk/Master/texmf-dist/tex/latex/inlinelabel/inlinelabel.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2022-06-28 21:06:54 UTC (rev 63746)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2022-06-28 21:07:45 UTC (rev 63747)
@@ -412,7 +412,7 @@
     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

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2022-06-28 21:06:54 UTC (rev 63746)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2022-06-28 21:07:45 UTC (rev 63747)
@@ -673,6 +673,7 @@
 depend indextools
 depend inline-images
 depend inlinedef
+depend inlinelabel
 depend inputenx
 depend inputtrc
 depend interactiveworkbook

Added: trunk/Master/tlpkg/tlpsrc/inlinelabel.tlpsrc
===================================================================


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