# Identifying a symbol

I'm looking for the symbols or font which produced these symbols (in math mode): S and K

I have no idea which program produced the document in which I found these symbols, so I'm pretty clueless about it. I tried Detexify but it brought no results.

-
If you have access to the PDF, you can use pdffonts to extract font information. See What fonts does this article use? for more information. –  Werner Dec 31 '11 at 16:31
That's a great solution! I'll use it from now on. Luckily my font has already been identified :-) –  Bob Dec 31 '11 at 19:10

You can identify the font from some characters using the WhatTheFont! web service. There you can simply upload an image of the text and the service tries to find the font for you. Sometimes you have to identify the letters in the image manually.

You can then have a look at the LaTeX Font Catalogue if the font is available. The alphabetic list of all fonts is most useful here.

For your image above I got:

Brush Script MT
from Monotype Imaging Brush Script

The 'SK' from this font is:

On the font catalogue I then found: http://www.tug.dk/FontCatalogue/brushscriptx/
which states:

### Usage

\usepackage[T1]{fontenc}
\usepackage{pbsi}


### Style examples

\bsifamily


Because this is not a math font you need, \bsifamily does not work in math mode directly. You need to switch to text mode locally, i.e. using \mbox. However, I strongly recommend to use \text from amsmath, so that you get the correct size for sub- and superscripts etc. Finally you should add \mathord to get the correct spacing.

\documentclass{article}

\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage{pbsi}

\newcommand\mathbsi[1]{%
\mathord{\text{\bsifamily #1}}%
}

\begin{document}

$\mathbsi{K} = \mathbsi{S} + 1$

$\mathbsi{K} = \mathbsi{S} + 1$

$X_{\mathbsi{K}_{\mathbsi{S}}} = Y^{\mathbsi{S}}$

\end{document}


-
That's a great solution, thanks! –  Bob Dec 31 '11 at 19:10

This is a calligraphy font called BrushScriptX-Italic

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{pbsi}
\begin{document}

\end{document}


To use such symbols in Text or math mode use ensuremath:

\documentclass[preview,border=0.80001bp]{standalone}

\usepackage[T1]{fontenc}
\usepackage{pbsi}
\usepackage{amsmath,xspace}
\newcommand{\mybpsi}[1]{\text{\bsifamily #1}}
\begin{document}
\Huge\bsifamily K  S

\mybpsi{K} Text $\mybpsi{K}$
\end{document}


-
Unfortunately \bsifamily this doesn't work in math mode directly. –  Martin Scharrer Dec 31 '11 at 16:21
\ensuremath and \xspace, egreg will love it! ;-) BTW, you can and should write \documentclass[preview,border=0.80001bp]{standalone}. \standaloneconfig is more for the config file and for settings which can change during the document, i.e. if your have multiple pages (multi). You might have meant '0.50001bp, which is the old default. –  Martin Scharrer Dec 31 '11 at 16:51
@MartinScharrer: Normally I provide examples with article Your well class is only for my test-file ;-) –  Marco Daniel Dec 31 '11 at 16:54
@egreg: I tested and I need no xspace. I am a little bit confused –  Marco Daniel Dec 31 '11 at 17:16
Of course! \xspace` is (scarcely) useful only for commands without arguments. –  egreg Dec 31 '11 at 17:28