Questions tagged [mathcal]
Refers to the calligraphic {math-mode} font accessed via \mathcal.
92
questions
2
votes
1
answer
45
views
\mathcal not working proper
I'm trying to use \mathcal and it works for the subscripts, but not for the main letter.
\begin{table}[h]
\centering
\caption{Data integration framework}
\label{tab:data_integration}
\...
0
votes
0
answers
30
views
Why does mathcal f give a curly brace? [duplicate]
I would like to get a curly f lowercase letter for a mathematic formula. But the following example
\documentclass{minimal}
\begin{document}
$$\mathcal{f}$$
\end{document}
Leads to this output
I use ...
2
votes
2
answers
105
views
How do we use lowercase `\mathcal` or `\mathscr` in latex overleaf?
I tried \usepackage{bickham} in latex overleaf but I get:
LaTeX Error: File `bickham.sty' not found.
How do we get a lower case \mathcal in latex overleaf? For instance, for:
\documentclass[reqno]{...
0
votes
1
answer
57
views
How to redefine math mode accent macros (\bar, \hat, etc.) to kern only specifically for \mathbb and \mathcal inputs but behave normally otherwise
Inspired by David Carlisle's answer and comment from my previous question, I wanted to see if I could try and redefine the math mode accent macros (\bar, \hat, \dot, etc.) to kern specifically for \...
1
vote
1
answer
112
views
How to use both Computer Modern and Latin Modern's Calligraphic \mathcal at the same time in LuaTeX with unicode-math
Here's my MWE:
% !TEX program = lualatex
% DOCUMENT CLASS
\documentclass[11pt,preview,varwidth,%
border={5pt 5pt 5pt 5pt}% left bottom right top
]{standalone}
% PACKAGES
\usepackage{mathtools, ...
0
votes
0
answers
50
views
Is there any analogue of mathcal which also works with Greek letters?
I have noticed that the font category mathcal does not work with Greek letters as inputs, probably because nobody has created any sort of "calligraphic Greek font family". Is there any sort ...
0
votes
0
answers
28
views
How to express special font characters in equations in Latex?
Would anyone have a suggestion on how to express special font characters, i.e.
\mathcal{H}_{0}
In a subscript in an equation? The result is an italic representation, but I want the normal 'mathcal' ...
-1
votes
1
answer
345
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}
\...
2
votes
1
answer
192
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 ...
1
vote
1
answer
56
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 ...
0
votes
1
answer
99
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}...
0
votes
2
answers
161
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 ...
1
vote
1
answer
319
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.
... ...
1
vote
0
answers
44
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 ...
2
votes
0
answers
265
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^...
1
vote
1
answer
259
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 ...
3
votes
1
answer
450
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}
...
2
votes
1
answer
276
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{...
4
votes
1
answer
289
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{...
3
votes
1
answer
970
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 ...
1
vote
1
answer
832
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 ...
1
vote
1
answer
777
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....
1
vote
1
answer
156
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 ...
4
votes
3
answers
578
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.
1
vote
3
answers
307
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]{...
0
votes
1
answer
1k
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}
...
...
5
votes
2
answers
705
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:
...
1
vote
1
answer
489
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, ...
1
vote
1
answer
272
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}
\...
2
votes
1
answer
74
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}
\...
0
votes
1
answer
350
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 ...
2
votes
1
answer
2k
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{\...
1
vote
1
answer
72
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 ...
0
votes
0
answers
458
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
2
votes
1
answer
429
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?
0
votes
1
answer
81
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 ...
2
votes
1
answer
304
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}...
0
votes
1
answer
78
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 ...
2
votes
1
answer
783
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-...
6
votes
1
answer
27k
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 ...
0
votes
1
answer
278
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 ...
3
votes
2
answers
2k
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}{\...
4
votes
3
answers
4k
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....
5
votes
1
answer
4k
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 ...
4
votes
2
answers
949
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 ...
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:
\...
2
votes
1
answer
923
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!
0
votes
0
answers
103
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 ...
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{...
0
votes
1
answer
492
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, ...