4

I encountered the following version of \mathcal{H} and like it a lot:

mathcal.version

This is slightly different from the usual one from Computer Modern font:

usual

I have done some search and tried different fonts, e.g., mtpro2, mathptmx, and mathpazo etc., but could not find the first \mathcal{H}.

Here is my question: Is there a way that I could get the first one? Is it some sort of "old \mathcal symbols"?

Any help would be highly appreciated.

PS: I have found an example for the source of the first \mathcal{H} here is the link on arXiv preprint page.

I downloaded the *.tex file of that pdf, and here are all the packages used there:

\documentclass[11pt]{article}  
\usepackage{xcolor}  
\definecolor{labelkey}{rgb}{0,0.08,0.45}  
\definecolor{refkey}{rgb}{0,0.6,0.0}  
\definecolor{Brown}{rgb}{0.45,0.0,0.05}  
\definecolor{dgreen}{rgb}{0.00,0.40,0.00}  
\definecolor{dblue}{rgb}{0,0.08,0.45}  

\usepackage{amsmath}  
\usepackage{amssymb}  
\usepackage{theorem}

Of course, typing \mathcal{H} in this setting yields the second one, but somehow the \mathcal{H} in the link looks like this:

arXiv

So I guess there must be something "weird" going on here.

PS: I often see the first one in papers published by Springer, e.g., https://link.springer.com/content/pdf/10.1007%2Fs000200300015.pdf (it appears right in the title)

I also saw the first one \mathcal{H} in this question svmono template and `\mathcal`.

weirdo
  • 269
  • 1
  • 3
  • 7
  • The source of the first \mathcal{H} will tell you every thing, but you've hidden it from us. – AboAmmar May 02 '18 at 20:11
  • Related, but alas, no joy: https://tex.stackexchange.com/questions/11265/are-there-two-different-versions-of-the-mathcalf-character. Here, also: ftp://ftp.dante.de/tex-archive/fonts/amsfonts/doc/euscript.pdf – Steven B. Segletes May 02 '18 at 20:18
  • See also https://tug.org/TUGboat/tb32-2/tb101sharpe.pdf – Steven B. Segletes May 02 '18 at 20:22
  • 1
    did you encounter that H on paper or in an electronic form such as pdf? (In the latter case you can see a list of fonts used) – David Carlisle May 02 '18 at 20:35
  • @DavidCarlisle Yes, I have seen it many times on papers published by Springer, e.g., https://link.springer.com/content/pdf/10.1007%2Fs000200300015.pdf (right in the title of this paper). This font also appeared in the question: https://tex.stackexchange.com/questions/170704/svmono-template-and-mathcal – weirdo May 02 '18 at 23:38
  • @AboAmmar I have edited my question and pointed out a source that I found for the first one – weirdo May 03 '18 at 00:07
  • @weirdo well then is this question not a duplicate of the question that you link to and egreg's answer shows how to get the two versions, but for any pdf file the pdfonts commandline utility or the fonts menu in acrobat and many other pdf viewers will tell you the fonts in the document which is a lot easier than trying to recognise the shape of a character. – David Carlisle May 03 '18 at 06:53

3 Answers3

11

The H comes from the standard font cmsy10, but an old version. There was a change in 2009. (The cited typesetting-script.pdf was created at 2009-02-11, using the old symbol font.)

The symbol with cmsy10.pfb from an old TeX Live 5 (2000):

\mathcal{H} before 2009

The font file cmsy10.pfb from TL 5 (2000) contains:

CMSY10 1.0
%%CreationDate: 1991 Aug 15 07:20:57
% Copyright (C) 1997 American Mathematical Society.  All Rights Reserved.

The current font file (2018) contains:

%%Title: CMSY10
%Version: 003.002
%%CreationDate: Mon Jul 13 16:17:00 2009
%%Creator: David M. Jones
%Copyright: Copyright (c) 1997, 2009 American Mathematical Society

Very likely there was a font change in 2009 or before that changed the calligraphic uppercase H.

Heiko Oberdiek
  • 271,626
  • 1
    So, if I understand your answer, David Jones is to blame for this. :^) – Steven B. Segletes May 03 '18 at 09:46
  • @StevenB.Segletes I have not found a "ChangeLog", thus it is not clear, who has when changed the form of the glyph (a matter of taste anyway). – Heiko Oberdiek May 03 '18 at 11:40
  • @HeikoOberdiek Wonderful!! :) Do you happen to know a way to get that good old one? I think somehow Springer can still produce that \mathcal{H} since some papers published in recent years still have that one. PS I agree this is just personal taste anyway. – weirdo May 03 '18 at 18:18
  • 1
    @weirdo Tar files of historic TeX Live versions can be found here. Then, the texlive-<date>-texmf.tar.lzma can be downloaded and opened with 7-Zip, for example. Then locate and extract the cmsy*.pfb files somewhere below TDS:texmf/fonts/type1/public/. The files can be placed (a) the project directory for project scope only, (b) the home TDS tree of the user, or (c) the local TDS tree for system-wide override. But be aware, that the sources compiled with other recent TeX distributions gets the new form. – Heiko Oberdiek May 03 '18 at 18:45
  • @HeikoOberdiek Having read your answer, I realize that I should "adapt" the second \mathcal{H}. Changing back to the old one might just be for personal use since other machines will produce the new \mathcal{H} anyway (e.g., when sharing a *.tex file with other people). It is very good to know this (I have been looking for this answer on Google for months). – weirdo May 03 '18 at 19:11
  • 2
    this h is the one that's pictured in volume e of computers and typesetting, at least the first edition. i'm trying to reconstruct the chronology of the development, when the bluesky type 1 version was released, when hermann zapf cooperated with the dutch guys on a tidied up version as a birthday present for don, ... certainly the current version has the extended bar. as i remember, the only thing david jones did was apply the sil open font license to the files, which required repackaging. – barbara beeton May 03 '18 at 20:23
3

I hacked a fit to 10pt and 12pt versions, by stacking white boxes over the left arm of the H.

\documentclass{article}
\usepackage{rotating,xcolor,stackengine}
\newcommand\specialHten{\mkern-3mu\rotatebox[origin=c]{-15.5}{%
\stackinset{l}{1.7pt}{c}{-.9pt}{\color{white}\rule{1.5pt}{1pt}}{%
  \stackinset{l}{1.875pt}{c}{-.81pt}{\color{white}\rule{1.5pt}{.65pt}}{%
    \rotatebox[origin=c]{15.5}{$\mathcal{H}$}}}}\mkern-3mu
}
\newcommand\specialHtwelve{\mkern-3mu\rotatebox[origin=c]{-15.5}{%
\stackinset{l}{1.9pt}{c}{-1.1pt}{\color{white}\rule{1.5pt}{1pt}}{%
  \stackinset{l}{2.53pt}{c}{-1pt}{\color{white}\rule{1.5pt}{.85pt}}{%
    \rotatebox[origin=c]{15.5}{$\mathcal{H}$}}}}\mkern-3mu
}
\begin{document}
$\mathcal{H}\specialHten\mathcal{H}$

\fontsize{12pt}{12pt}\selectfont
$\mathcal{H}\specialHtwelve\mathcal{H}$

\end{document}

enter image description here

If those boxes were visible, they would look like this:

enter image description here

  • I guess another different is that the horizontal stroke of the first \mathcal{H} is higher than that of the second one. Your solution indeed looks very close to the first one :) Many thanks! – weirdo May 03 '18 at 01:18
  • @DavidCarlisle I followed your advice and used acrobat to check the fonts used in those pdf file. Seems like it is a "weird" type of cmsy. FYI the first H is also in http://www.stat.colostate.edu/~vollmer/pdfs/typesetting-script.pdf and the author says "no package required," from which I think this situation depends on the "type of cal letters" available in each computer. – weirdo May 03 '18 at 07:19
  • I'm going to clean up comments before the system starts telling us off for too long a comment thread:-) – David Carlisle May 03 '18 at 11:08
2

Here is a version that gets you something similar using the modern toolchain (unicode-math in XeLaTeX or LuaLaTeX). A second script alphabet is available in Asana Math as a stylistic alternative.

\documentclass[varwidth, preview]{standalone}
\usepackage{unicode-math}

\setmainfont{Palatino Linotype}[Ligatures={Common,Discretionary,TeX}]
\setmathfont[Scale=MatchUppercase]{Asana Math}
\setmathfont[range={cal, bfcal}, Scale=MatchUppercase, Alternate]{Asana Math}

\begin{document}
\( \mathcal{H} \)
\end{document}

\mathcal{H}

You can see a pretty comprenehsive list of the legacy calligraphic alphabets in the documentation for mathalpha (formerly mathalfa).

You might try pxtx or see if there’s another version there you like better:

\documentclass[varwidth, preview]{standalone}
\usepackage[cal=pxtx]{mathalfa}

\begin{document}
\( \mathcal{H} \)
\end{document}

\mathcal{H}

Both of these are based on pxfonts/txfonts by Young Ryu.

Davislor
  • 44,045