![這個拉普拉斯變換符號在 LaTeX 中可用嗎?](https://rvso.com/image/309850/%E9%80%99%E5%80%8B%E6%8B%89%E6%99%AE%E6%8B%89%E6%96%AF%E8%AE%8A%E6%8F%9B%E7%AC%A6%E8%99%9F%E5%9C%A8%20LaTeX%20%E4%B8%AD%E5%8F%AF%E7%94%A8%E5%97%8E%EF%BC%9F%20.png)
我想使用 unicode 中出現的拉普拉斯轉換符號 (SCRIPT CAPITAL LU+2112)
然而,我只能找到以下兩個符號可以用於拉普拉斯變換:
還有其他符號由math-unicode
,但似乎不起作用pdflatex
。
如果有類似 unicode 的符號可用,有什麼建議嗎?
答案1
在這裡,我使用布魯諾\slantbox
的剪切變換“盒子”和這個結合\mathscr
。
編輯使用 John K 的\slantbox
at變體下標使用時調整客製化的直立希臘字母以實現更好的水平定位\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}}