2

I would like to use newtx onl to have its scribe letters in mathmode and "double letters" like for real numbers but in minuscule version. Default LaTeX font (CMU) should be preserved. Specifications of my problem are:

  1. I use pdfLaTeX
  2. I really don't know how to handle fonts in it

Thanks in advance!

SerGor
  • 43

1 Answers1

4

If I understand your question right, you want to load the calligraphic math fonts \mathcal and black board bold math fonts \mathbb from txfonts, while using Computer Modern for everything else in the document. This situation is exactly what the mathalpha package is designed for.

In your case, you should be able to accomplish what you want with

\usepackage[cal=pxtx,bb=tx]{mathalpha}

If you want to just load the txfonts double-struck and calligraphic letters in addition to Computer Modern, you can do something like

\documentclass{article}
\usepackage{amssymb}

\DeclareMathAlphabet{\mathcaltx}{U}{tx-cal}{m}{n} \DeclareMathAlphabet{\mathbbtx}{OT1}{tx-ds}{m}{n}

\begin{document} $\mathbbtx{ABCabc} = \mathbb{ABC}$

$\mathcaltx{ABC} = \mathcal{ABC}$ \end{document}

Be aware however that TeX has a limit to how many math alphabets you can use.

Willie Wong
  • 24,733
  • 8
  • 74
  • 106
  • Well, I admit my question might be inaccurate, but you've given me something I can use, but I still miss lowercase letters in caligraphics and double letters. Ideally I would like to use this font only on certain parts of equation like left hand side in newtx, right hand side in CMU. – SerGor Dec 17 '23 at 13:32
  • bb=tx should give you lower case blackboard bold. The txfonts do not have lower calligraphic letters to my knowledge; comparatively few math fonts do. // Your final sentence is unclear: (1) do you mean that you want to use the CM \mathcal alongside that of txfonts? (2) Computer Modern does not have blackboard bold; frequently with CM or Latin Modern people would load the amssymb version of \mathbb. – Willie Wong Dec 18 '23 at 01:47
  • First one - I want to use CM \mathcal alongside that of txfonts. Thanks! – SerGor Dec 18 '23 at 10:59