Math & ScienceCalligraphy in Math Equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
bimalastha
Posts: 2
Joined: Fri Mar 25, 2011 12:15 pm

Calligraphy in Math Equation

Post by bimalastha »

Hi,

I have some problem with calligraphic symbols. When I use \mathcal{I} I got a nice curly I with it. But I am working with times font both in text and equations. So when I change to times by using:

\usepackage{times}
\usepackage{pslatex}

then it uses a different calligraphic font and the I letter is like italic I. So my question is how can I choose this \mathcal{I} to be used from cm fonts and rest times? Can I change the font of one char in equation to cm like:

$x=\??fontCM????{\mathcal{I}}$

so that x will be in times font but \mathcal{I} will take cm fonts.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Calligraphy in Math Equation

Post by localghost »

bimalastha wrote:[…] So when I change to times by using:

\usepackage{times}
\usepackage{pslatex}

then it uses a different calligraphic font and the I letter is like italic I. […]
These packages are obsolete [1]. Choose an appropriate alternative.

You have to choose the right font encoding to get the according character from the used font (see code below). If you still want the calligraphic capital »I« from Computer Modern (CM), it will require a redefinition of the calligraphic math alphabet to make it use the CM font.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{txfonts}

\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}

\begin{document}
  Normal text in Times style.
  \[
    \mathcal{I}
  \]
\end{document}
Insert this declaration after all font packages in the preamble. But first try without it. Perhaps you like the result. More about such declarations in the document »LaTeX2e font selection«.

[1] View topic: Obsolete packages and document classes — Avoid usage!


Best regards and welcome to the board
Thorsten
Post Reply