Math & Science ⇒ Calligraphy in Math Equation
-
- Posts: 2
- Joined: Fri Mar 25, 2011 12:15 pm
Calligraphy in Math Equation
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Calligraphy in Math Equation
These packages are obsolete [1]. Choose an appropriate alternative.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. […]
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}
[1] View topic: Obsolete packages and document classes — Avoid usage!
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10