3

I'm trying to get the calligraphic capital "E". I really like mathpazo package but I'd like to change the way it renders calligraphic "E".

Below is a picture: when I type and compile $\mathcal{E}$ I get center version E, instead I'd like the left-most E.

enter image description here

When I didn't have mathpazo, I solved this problem by loading package mathalpha. I have posted below a MWE (also see this old question of mine):

\documentclass[a4paper, 12pt]{scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}

%\usepackage[cm]{fullpage}
%\usepackage[top=2cm, bottom=3cm, right=2cm, left=3cm]{geometry}
\usepackage[math]{blindtext}
\usepackage[italian]{babel}
\usepackage{amsmath, amsfonts, amssymb}
\usepackage{empheq}
\usepackage{xfrac}
%\usepackage{mathpazo}
\usepackage[cal=boondoxo, calscaled=.98]{mathalfa}
\newcommand{\derivataparziale}[3]{\dfrac{\partial^{#1}{#2}}{\partial {#3}^{#1}} }

\begin{document}
$\mathcal{E}(y) = - \derivataparziale{}{V(y)}{y}$
\end{document}
WobblyWindows
  • 1,519
  • 2
  • 22
  • 42

2 Answers2

4

The BOONDOX font has the suitable interface:

\documentclass[a4paper, 12pt]{scrartcl}
\usepackage{amsmath}
\usepackage{mathpazo}
\usepackage{BOONDOX-cal}
\newcommand{\derivataparziale}[3]{\dfrac{\partial^{#1}{#2}}{\partial {#3}^{#1}} }

\begin{document}
$\mathcal{E}(y) = - \derivataparziale{}{V(y)}{y}$
\end{document}

enter image description here

egreg
  • 1,121,712
  • Mmm...doesn't work for me! Tried looking in the package manager tlmgr --gui (under Linux)-- the only package I searched out is called boondox. When I compile I get an error that says: "Package textcomp Error: Symbol \textuparrow not provided by (textcomp) font family ppl in TS1 encoding. (textcomp) Default family used instead." – WobblyWindows Apr 19 '14 at 14:35
  • @WobbyWindows You have an outdated TeX distribution. – egreg Apr 19 '14 at 14:38
  • Don't know why, but your MWE's working on my system. Just wanted to let you know. – WobblyWindows May 09 '14 at 18:12
1

Simply define bondoxo as mathscript:

\usepackage[scr=boondoxo, scrscaled=.98]{mathalfa}

and use it via \mathscr. This way you can use both fonts, if you wish.

Comment aside — the esdiff package makes it simpler to type partial derivatives, especially for crossed derivatives and specifying at which point the derivative is evaluated.

Bernard
  • 271,350
  • I wonder why it didn't take in \usepackage[cal=boondoxo, calscaled=.98]{mathalfa}, as written in my MWE, above. The solution you provided, ie. turning to \mathscr{E}, works. Mmm...who knows why? – WobblyWindows Apr 19 '14 at 14:47
  • I've just tested, and have no problem: it is boondoxothat appears as math calligraphic font. What happens to you is all the amore strange as I think mathpazodoesn't touch upon calligraphic fonts. Btw, I don't see why you scale boondoxo For me, no scaling is OK (checked with gsview). – Bernard Apr 19 '14 at 15:25
  • Thank you for your input on package esdiff, it's truly coming handy! Do you have any suggestion that might help with integrals too? For now, I'm going with \newcommand{\integrale}[4]{\displaystyle \int_{#3}^{#4} {#1} \,\text{d}{#2}}. Any suggestion is appreciated.;-) – WobblyWindows Apr 23 '14 at 17:43
  • Personally, I don't like very much this way of doing things, because it's a problem to share such files. In my opinion, it's more a question of setting up your editor. For instance, with my editor I could create a shortcut that inserts \int_{}^{*} * \d * with the cursor just between \{ and the following }. Another shortcut lets me go to the next *. – Bernard Apr 23 '14 at 18:09
  • Just out of curiosity, what editor are you using? What OS? – WobblyWindows Apr 26 '14 at 08:15
  • @WobbyWindows: WinEdt8.1 — and Windows 7 Pro. WinEdt has a power macro language (~ 1000), loads fast and is easy to configure. To give you an idea, I have managed to have a shortcut for, say, the letter γ (a lot of editors can do that), but saves it as \gamma so that it looks a little more to the final real formula (which is easier to read and check in the editor), but latex can still compile it. – Bernard Apr 26 '14 at 09:49