Questions tagged [mathcal]

Refers to the calligraphic {math-mode} font accessed via \mathcal.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

"\mathcal allowed only in math mode" error when I am using \mathcal in a equation [closed]

I want to use \mathcal in an equation, however, I got a "\mathcal allowed only in math mode". How can I use a \mathcal inside an equation? MWE: \begin{equation} \boldsymbol{\mathcal{...
user avatar
-1 votes
1 answer
107 views

Phi doesn't display with \mathcal

With the following Codesnippet: \documentclass[10pt,a4paper]{article} \usepackage{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{enumitem} \...
user avatar
  • 3
2 votes
1 answer
95 views

Hat on \mathcal{J} and \mathcal{K} "off-center" due to \DeclareMathAlphabet

I am using NCM (NewComputerModern) as my main font. Because I do not like the \mathcal{…} provided by unicode-math in the Euler font instead of the Latin Modern oder Computer Modern style. I think ...
user avatar
1 vote
1 answer
54 views

Strange Output When Color Shadowing Using the Pazocal Font

This question is an extension of How to Automatically Produce Separated Words Using the Mathcal or Pazocal Fonts which egreg provides some answers. Consider the following code which uses the pazocal ...
user avatar
  • 5,285
0 votes
1 answer
71 views

How to Automatically Produce Separated Words Using the Mathcal or Pazocal Fonts

Consider the code: \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \usepackage{calrsfs} \DeclareMathAlphabet{\pazocal}{OMS}{zplm}{m}{n} \SetMathAlphabet\pazocal{bold}{OMS}{zplm}{bx}...
user avatar
  • 5,285
0 votes
2 answers
76 views

Type a regular mathcal letter while using newtxmath with the libertine option

I am required to use a .cls that loads the newtxmath package with the libertine option. Because of this (I think), when I type \mathcal{A} my "A" looks different than it normally does. I ...
user avatar
1 vote
1 answer
142 views

Not using mathcal, but still getting "Error: \mathcal allowed only in math mode"

I am recieving a TeX error as follows: ! LaTeX Error: \mathcal allowed only in math mode. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... ...
user avatar
  • 13
1 vote
0 answers
34 views

How can i define a \mathcal{h} character, without switching the font set for all other characters

For a physics text i need a lower case mathcal h (for energy density), as a companion to upper case mathcal H (for energy). I would prefer a solution, that does not require to switch to complete font ...
user avatar
2 votes
0 answers
53 views

Incorrect Usage of \mathcal and \mathbb Leads to Interesting Symbols [duplicate]

I noticed that some incorrect usage of the \mathcal and \mathbb command generates interesting symbols. \mathcal{M^1} \mathcal{M^2} \mathcal{M^3} \mathcal{M^4} \mathcal{M^5} and \mathbb{M^1} \mathbb{M^...
user avatar
  • 233
1 vote
1 answer
169 views

different font for mathcal while using mathpazo+eulervm

I have been using mathpazo + eulervm for my LaTeX documents and I'm very happy with the results, with one exception: The characters for \mathcal do not come out the way I want; I prefer the \mathcal ...
user avatar
  • 335
3 votes
1 answer
350 views

`\mathcal` incompatible with `unicode-math`

An MWE is like this: \documentclass{article} \usepackage{unicode-math} \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n} \begin{document} $ \tilde{\mathcal{B}} $ % $ \hat{\mathcal{B}} $ \end{document} ...
user avatar
  • 446
2 votes
1 answer
161 views

I can't put accent on `\mathcal` after changing the font of `\mathcal`

When I use unicode-math, I found that there is no default performance of \mathcal in the 6 fonts given in texdoc unimath-symbols. \documentclass{article} \begin{document} $ \mathcal{DBFT} $ \end{...
user avatar
  • 1,143
3 votes
1 answer
189 views

Sorting an Acronym entry with \mathcal{} with Glossaries package

I'm using the glossaries package for my list of acronyms with the following options: \usepackage[acronyms,nopostdot,nogroupskip,nonumberlist,nomain,shortcuts]{glossaries} \makeglossaries \input{...
user avatar
  • 301
3 votes
1 answer
726 views

\color{white} doesn't work in LaTeXiT

I want to produce a white \mathcal{L} in LaTeXiT to then copy and paste into a powerpoint presentation. \color{blue} works, but ```color{white} produces nothing - no error, just no result. The entire ...
user avatar
  • 131
1 vote
1 answer
557 views

Curly brackets and Big O notation

I'm having some trouble inserting a Big O notation into a right-side curly bracket consisting of two lines. I'm using mathcal for the Big O notation but once I put it in the curly bracket it doesn't ...
user avatar
0 votes
1 answer
360 views

```\mathcal``` and ```mathscr``` look the same in my template

In my current template compiled by pdflatex, I am seeing \mathcal forced to \mathscr. For example, $\mathcal{T},\mathscr{T}$ leads to the output. Can anyone propose potential causes of this problem? P....
user avatar
  • 103
1 vote
1 answer
134 views

Change font for a specific command

I would like to change the font associated specifically with \mathcal to cambria rather than the default font without changing the rest of the document. How may I do that? I don't mind setting up a ...
user avatar
4 votes
3 answers
429 views

Mirror mathcal letter

Is there a way to mirror a symbol like \mathcal{P}, but keep it cursive in the right way? Using \reflectbox{\mathcal{P}} gives a mirrored version of \mathcal{P} that slopes in the wrong direction.
user avatar
1 vote
3 answers
226 views

Ugly spacings with \mathcal font

I hate the horizontal spacings with letters from the \mathcal font. Is there a way to fix them? Here's a MWE showing the ugliness: \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]{...
user avatar
  • 2,034
0 votes
1 answer
726 views

Change the default font of the equation environment and math mode globally

Is it possible to change the default font in the equation environment and also in math mode globally to mathcal or mathscr? By this I mean that if I typeset $...$, or $$...$$ or \begin{equation} ... ...
user avatar
  • 325
5 votes
2 answers
544 views

LuaLaTeX: Remapping \mathcal letters for Asana Math

I wanted to use \matcal{H} with my math font Asana Math in LuaLaTeX (with the help of unicode-math). Unfortunately, the assigned calligraphic characters for Asana Math are not the ones I want to use: ...
user avatar
  • 749
1 vote
1 answer
361 views

Technical problem between fourier/fouriernc and mathalpha packages

I am trying to use the fourier/fouriernc math packages in LaTeX all while defining the \mathbb, \mathcal, \mathscr and \mathfrak commands at will. I have tried doing this with the mathalpha package, ...
user avatar
1 vote
1 answer
199 views

How to add mathcal to section titles?

I am currently using the following code to print the section and subsection in the header. \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0.5pt} \...
user avatar
  • 315
2 votes
1 answer
55 views

Space too log between cal letter and index

The code ${\cal T\!}_{\!j}$ produces the output : and as you can see, the space between the two characters is too large. How can I reduce this space ? \documentclass{article} \usepackage{fourier} \...
user avatar
  • 536
0 votes
1 answer
274 views

Mathtime and (unwanted) bold version of \mathcal

I have mathtime (not the new fancy MTPro2, but rather, the version from the early 1990's). I learned this summer how to use \DeclareMathVersion so that I could have some chapters in my document that ...
user avatar
  • 135
2 votes
1 answer
1k views

\mathcal doesn't have the usual output

I used these commands in order to have along with the \mathcal{L} a calligraphic L as well \documentclass[11pt,a4paper]{report} \usepackage{amsmath,amssymb} \usepackage{calrsfs} \DeclareMathAlphabet{\...
user avatar
  • 23
1 vote
1 answer
65 views

Unable to track down a math font

I'm trying to find the mathematical font of the \mathcal T in the following excerpt: It is taken from https://ncatlab.org/nlab/show/Freyd+cover, and trying to compile locally the tex source I don't ...
user avatar
  • 329
0 votes
0 answers
312 views

Having problem with mathcal

When I use mathcal{L} in texlive the output is not curvy L (Lagrange L) but another L. What should I do? Best
user avatar
2 votes
1 answer
340 views

How to create a specific math-alphabetic letter? [duplicate]

I'm preparing an essay which should contain the following letter: I'm a newbie in the world of TEX, and I don't know how to get it. Can somebody help me?
user avatar
0 votes
1 answer
55 views

Replace mathcal plus margin-note results in \reserved@a does not match definition

This is related to problem with \mathcal in MIT Thesis package; I posted the below MWE there, but the edit was rejected due to deviating from the original authors post. IDK if its the right thing to ...
user avatar
  • 357
2 votes
1 answer
222 views

Package dutchcal and \let command are not playing together as I expected

Given the MWE \documentclass{article} \let\tempcal \mathcal \usepackage{dutchcal} \let\dutchcal\mathcal \let\mathcal\tempcal \begin{document} \(\dutchcal H~~~\mathcal H~~~\tempcal H\) \end{document}...
user avatar
0 votes
1 answer
67 views

WinEdt/miktex printing wrong alphabet

Suddenly today when I type \mathcal{k}, for example, in WinEdt and compile to MikTex, I get output: ∥. I get similar strange characters for \mathcal{},\mathbb{},\mathds{} with any English character ...
user avatar
2 votes
1 answer
619 views

How can I get a less-curly \mathcal{T} with xelatex?

I'm compiling the following document with pandoc: $\mathcal{T}$ using this command line: pandoc -s --from markdown --to latex -o foo.pdf <(echo 'foo: $\mathcal{T}$') If I use xelatex (--pdf-...
user avatar
  • 123
6 votes
1 answer
20k views

Big O symbol (order of) and siunitx

I want to write that a quantity is of the order of say, 10 m/s. I have currently used the syntax below, but is there a way to write it completely into siunitx, or is the one considered below a ...
user avatar
  • 497
0 votes
1 answer
252 views

Prime spacing with mathcal font

Compare the following: Here is the code and an image: \begin{align} V'(t) &= 0 \\ \mathcal{V}'(t) &= 0 \end{align} The first has a regular 'V'. The second uses mathcal. On my ...
user avatar
  • 1,125
3 votes
2 answers
1k views

Error \mathcal allowed only in math mode. ...\raggedright \textbf{\mathcal{$S_{(TX)}$}}}

I have this error \mathcal allowed only in math mode ...\raggedright \textbf{\mathcal{$S_{(TX)}$}}} When I run my sub file, where the main file is the dissertation file. \parbox{0.4\textwidth}{\...
user avatar
4 votes
3 answers
3k views

two different \mathcal{H}

I encountered the following version of \mathcal{H} and like it a lot: This is slightly different from the usual one from Computer Modern font: I have done some search and tried different fonts, e.g....
user avatar
  • 269
5 votes
1 answer
3k views

LaTeX \mathcal{w} has strange printout

The follwing LaTex lines don't print out what I hope to see: calculate $\rho_i^{t} = \| \mathcal{w}_{i}^{t} - \mathcal{w}_{i}^{t-1} \|_2$ what I get instead of the two w is that: Can anyone help me ...
user avatar
4 votes
2 answers
790 views

Mathcal in fouriernc package

I like to use fouriernc package. But unfortunately the mathcal font in this package doesn't look nice to me and I would like to ask if it is possible to use this package while changing the mathcal ...
user avatar
  • 249
4 votes
2 answers
1k views

How to insert mathcal symbol in lstlisting environment in beamer?

I want to type the above algorithm in beamer block, but I stuck inserting mathcal symbols. I tried $\mathcal{Q}$ and \mathcal{Q}, but both are failed to return expected symbol. My MWE: \...
user avatar
  • 2,261
2 votes
1 answer
817 views

Composition of \mathbb and \mathcal

Is there any method to compose \mathbb and \mathcal, that is, to obtain a blackboard version of the caligraphic style? Something like: but maybe not so ugly!
user avatar
0 votes
0 answers
93 views

Crash follows removal of bold face from \mathcal{} in running fancyhdr header

While my bold calligraphic letter is fine in the chapter title or table of contents, it's out of place when it is the only bold character on a running header. My attempts to remove this have caused a ...
user avatar
  • 1,348
1 vote
1 answer
1k views

Unexpected Characters after using \cal [duplicate]

I am getting very strange compilation problems after using the \cal command in a very simple setup: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \newcommand{\Pp}{\mathbb{...
user avatar
0 votes
1 answer
455 views

Looking for a special mathcal / mathscr font

Achim Blumensath uses some very strange font in his books about logic and model theory (see e.g. here: http://www.fi.muni.cz/~blumens/MSO.pdf) I would really like to use the same for my documents, ...
user avatar
  • 225
3 votes
1 answer
490 views

\mathcal gives different output where it should not

I have multiple occurences of mathcal in my document and they do not use the same style. Consider this MWE: \documentclass{standalone} \usepackage{mathtools} \usepackage{unicode-math} \setmainfont[...
user avatar
  • 6,078
3 votes
1 answer
2k views

Calligraphic symbols are too fancy with mathptmx package

I am using the mathptmx package because I prefer my text to be in Times New Roman. However, \mathcal provides in this package "super calligraphic" symbols looking like the ones obtained by using \...
user avatar
  • 321
2 votes
2 answers
2k views

Use Latex math fonts outside of Latex?

In Linux, I use a drawing software called Inkscape to draw some math illustrations. I want to be able to use the same Latex math fonts in the drawings, in particular the \mathbb and \mathcal fonts, ...
user avatar
  • 1,601
0 votes
0 answers
290 views

rsfso mathcal not printing properly

When I use \mathcal{P} in the rsfso package, the output looks fine on the screen, but when I print, the right-hand side of the "P" does not print. Any advice? \documentclass{article} \usepackage{...
user avatar
4 votes
1 answer
179 views

Usefulness of non-upper case \mathcal symbols?

I'd like to understand the purpose of mathcal for arguments that aren't upper-case letters. For example, \mathcal{2} gives ∈ and \mathcal{p} gives √. I tested it for all numbers and lower-case ...
user avatar
11 votes
2 answers
7k views

A calligraphic font with small (lowercase) letters

Is there a widely available calligraphic font that (1) contains small (lowercase) letters and (2) has a recognizably calligraphic capital letter O? Background. (1) In mathematics (algebraic geometry),...
user avatar
  • 1,120