How Do You Create a Script Lowercase 'r' in LaTeX?

  • Context: LaTeX 
  • Thread starter Thread starter marsdk
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 14K views
marsdk
Messages
15
Reaction score
0
Hey all,

I know this has been discussed before, but seeing that I can't find a post anywhere with a good solution, maybe another discussion won't hurt.

How do you make a script lowercase 'r' in Latex, resembling what you see in eg. Griffiths Electrodynamics?

So far I have found two solutions:

1) With the calligra font, implemented by first declaring the font and then making a command that makes the 'r':

Code:
% Declares the font
\usepackage{calligra}
\DeclareMathAlphabet{\mathcalligra}{T1}{calligra}{m}{n}
\DeclareFontShape{T1}{calligra}{m}{n}{<->s*[2.2]callig15}{}
 
% Makes '\sr' make a script r
\newcommand{\sr}{\ensuremath{\mathcalligra{r}}}

HOWEVER, this method has the problem, that \textbf{} and \mathbf{} does not affect the script r, making it hard to use it to denote both a vector and its length. I have not yet found a way around this.

2) The mtpro2 fonts include both a normal and a bold script r, the packages they are in cost 130 $, a lot of money for one letter. Described here: http://www.pctex.com/mtpro2.html"

Has anyone found a solution to this?
 
Last edited by a moderator:
Physics news on Phys.org