8

This question already has an answer here:

I would like to use the Laplace transform symbol that appears in unicode (SCRIPT CAPITAL L U+2112)

Laplace Unicode

However, I could only find the following two symbols can be used for Laplace transforms:

mathcal and mathscr

There are other symbols provided by the math-unicode, but it seems that it does not work with pdflatex.

Any suggestions if a unicode-like symbol is available?

marked as duplicate by Mico, egreg symbols Apr 21 '15 at 15:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

7

Here, I use Bruno's \slantbox from Shear transform a "box" in conjunction with \mathscr.

EDITED to use John K's variant of \slantbox at Adjust custom made upright greek letters when used in subscripts in order to achieve better horizontal positioning within the \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} 

enter image description here

If one needs it to be able to scale down to \scriptscriptstyle, then this approach will work.

\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} 

enter image description here

8

You can use the rsfso package:

\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}

enter image description here

Variant preamble if you need also mathrsfs (but in that case I'd simply use the script L provided by \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}}
  • For some reason this did not work for me. Maybe package conflicts. – jak123 Apr 22 '15 at 8:23
  • @jak123 Are you loading mathrsfs or similar? – egreg Apr 22 '15 at 8:46
  • Yes I'm loading mathrsfs. – jak123 Apr 22 '15 at 8:57
  • @jak123 Added. But you shouldn't use two different script alphabets. – egreg Apr 22 '15 at 9:19
  • There seems to be another problem. When I used your MWE's, I'm getting: PK font rrsfso10 could not be created. BTW, why is the @egreg tagging not working with me? – jak123 Apr 22 '15 at 10:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.