diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-18 20:17:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-18 20:17:36 +0000 |
commit | 37f30b7aab3bd7a4cbc59fd47a557a2bff830637 (patch) | |
tree | 0bbb41418e6b67ffdf31b74491dbd008d08ab827 /Master/texmf-dist/doc/luatex/luatexja/luatexja-ruby.tex | |
parent | df26ea121b9e796e96a97b34d37312c6be731e89 (diff) |
luatexja (18sep21)
git-svn-id: svn://tug.org/texlive/trunk@60541 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luatexja/luatexja-ruby.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/luatexja-ruby.tex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/luatex/luatexja/luatexja-ruby.tex b/Master/texmf-dist/doc/luatex/luatexja/luatexja-ruby.tex index a01994faa70..3148d1df9e9 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/luatexja-ruby.tex +++ b/Master/texmf-dist/doc/luatex/luatexja/luatexja-ruby.tex @@ -45,6 +45,31 @@ \DeclareFontShape{JY3}{mc}{mc}{n}{<-> [0.92487] HaranoAjiMincho-Regular:extend=0.67;jfm=ujisc33}{} +%%%% \ltjruby 内に \texorpdfstring + | 除去を仕込む +\RequirePackage{xparse} +\makeatletter +\def\removevert#1{\if\noexpand#1|% + \expandafter\expandafter\expandafter\@firstofone\expandafter{% + \else\ifnum0=1}\fi#1% + \ifx#1\relax\expandafter\@gobble% + \else\expandafter\@firstofone + \fi{\expandafter\@firstofone + \fi + \removevert}} +\makeatother +\ExplSyntaxOn +\cs_set_eq:NN \myorigltjruby \ltjruby +\DeclareExpandableDocumentCommand {\ltjruby} { O{} m m } {% + \texorpdfstring { + \exp_not:n { \myorigltjruby[#1]{#2}{#3} } + } { + \removevert #2 \relax + } +} +\cs_set_eq:NN \ruby \ltjruby +\ExplSyntaxOff +%%%% + \title{\textsf{luatexja-ruby}パッケージ} \author{\LuaTeX-jaプロジェクトチーム} \date{\texttt{\csname ver@luatexja-ruby.sty\endcsname}(\today)} |