![このラプラス変換記号は LaTeX で使用できますか?](https://rvso.com/image/309850/%E3%81%93%E3%81%AE%E3%83%A9%E3%83%97%E3%83%A9%E3%82%B9%E5%A4%89%E6%8F%9B%E8%A8%98%E5%8F%B7%E3%81%AF%20LaTeX%20%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%81%8B%3F%20.png)
ユニコードに表示されるラプラス変換記号(SCRIPT CAPITAL L U+2112)を使用したいと思います。
しかし、ラプラス変換に使用できるのは次の 2 つの記号だけであることがわかりました。
他にも、math-unicode
ですが、 では動作しないようですpdflatex
。
Unicode のようなシンボルが利用できる場合、何か提案はありますか?
答え1
ここでは、ブルーノ\slantbox
の「ボックス」をせん断変形すると組み合わせて\mathscr
。
John Kの変形を使用するように編集しまし\slantbox
た下付き文字で使用する場合、カスタムメイドの直立ギリシャ文字を調整します内でより適切な水平方向の位置決めを実現するためです\slantbox
。
\documentclass{article}
\usepackage{mathrsfs}
\newsavebox\foobox
\newlength{\foodim}
\newcommand{\slantbox}[2][0]{\mbox{%
\sbox{\foobox}{#2}%
\foodim=#1\wd\foobox
\hskip \wd\foobox
\hskip -0.5\foodim
\pdfsave
\pdfsetmatrix{1 0 #1 1}%
\llap{\usebox{\foobox}}%
\pdfrestore
\hskip 0.5\foodim
}}
\def\Laplace{\slantbox[-.45]{$\mathscr{L}$}}
\begin{document}
\begin{equation}
\Laplace\{\sin(t)\} = \frac{1}{s^2 + 1}
\end{equation}
\end{document}
までスケールダウンする必要がある場合は\scriptscriptstyle
、このアプローチが有効です。
\documentclass{article}
\usepackage{mathrsfs,scalerel}
\newsavebox\foobox
\newlength{\foodim}
\newcommand{\slantbox}[2][0]{\mbox{%
\sbox{\foobox}{#2}%
\foodim=#1\wd\foobox
\hskip \wd\foobox
\hskip -0.5\foodim
\pdfsave
\pdfsetmatrix{1 0 #1 1}%
\llap{\usebox{\foobox}}%
\pdfrestore
\hskip 0.5\foodim
}}
\def\Laplace{\ThisStyle{\slantbox[-.45]{$\SavedStyle\mathscr{L}$}}}
\begin{document}
\begin{equation}
\Laplace\{\sin(t)\} = \frac{1}{s^2 + 1} \quad\scriptscriptstyle
\Laplace\{\sin(t)\} = \frac{1}{s^2 + 1}
\end{equation}
\end{document}
答え2
次のパッケージを使用できますrsfso
:
\documentclass{article}
\usepackage[scr]{rsfso}
\newcommand{\Laplace}{\mathscr{L}}
\begin{document}
\begin{equation}
\Laplace\{\sin(t)\} = \frac{1}{s^2 + 1}
\end{equation}
\end{document}
必要に応じて、バリアントのプリアンブルも使用しますmathrsfs
(ただし、その場合は、 が提供するスクリプト L を単に使用します\mathscr{L}
)。
\usepackage{mathrsfs}
\let\RSFSmathscr\mathscr % save the meaning of \mathscr
\usepackage[scr]{rsfso}
\let\RSFSOmathscr\mathscr % save the new meaning of \mathscr
\let\mathscr\RSFSmathscr % restore the previous meaning
\newcommand{\Laplace}{\RSFSOmathscr{L}}