[lucida] question about integrals

Bruno Voisin bvoisin at me.com
Tue May 1 13:01:14 CEST 2012


Le 1 mai 2012 à 11:40, Antonis Tsolomitis a écrit :

> My need is to access a symbol for the contour integral with 
> counterclockwise orientation. Something like \oint but with an arrow on the circle.
> Taking the symbol from txfonts it should be like this
> 
> <tblatex-3.png>
> 
> (the code above was $\displaystyle\varointctrclockwise_{\partial S} F$)
> Is such a symbol available in Lucida?

The Type 1 Lucida fonts don't seem to have this symbol (which would reside, I think, in lbme.pfb if it existed).

So the only solution based on them would be to fake the symbol using \circlearrowleft and the code on the TeX FAQ for the principal value integral at <http://www.tex.ac.uk/cgi-bin/texfaq2html?label=prinvalint>, yielding something like

\documentclass[12pt]{article}
\usepackage[expert,lucidasmallscale]{lucidabr}
\newcommand{\Xint}[1]{\mathchoice
   {\XXint\displaystyle\textstyle{#1}}%
   {\XXint\textstyle\scriptstyle{#1}}%
   {\XXint\scriptstyle\scriptscriptstyle{#1}}%
   {\XXint\scriptscriptstyle\scriptscriptstyle{#1}}%
   \!\int}
\newcommand{\XXint}[3]{{\setbox0=\hbox{$#1{#2#3}{\int}$}
     \vbox{\hbox{$#2#3$}}\kern-.5\wd0}}
\newcommand{\ointctrclockwise}{\Xint\circlearrowleft}
\begin{document}
\[ \ointctrclockwise_{\partial S} F \]
\end{document}

But a more forward-looking solution would be to switch to OpenType Lucida: the symbol is there in LucidaBrightMathOT.otf in small, medium and large sizes, at U+2233 namely

0x110226 uni2233.ss03
0x11034f uni2233.mid
Ox110369 uni2233.display

What's needed is use the XeTeX or LuaTeX engines and the fontspec and unicode-math LaTeX packages, yielding for example (with XeLaTeX and the fonts installed at the OS level)

\documentclass[12pt]{article}
\usepackage{fontspec,unicode-math}
\defaultfontfeatures{Ligatures=TeX,Scale=.92}
\setmainfont{Lucida Bright OT}
\setsansfont{Lucida Sans OT}
\setmonofont{Lucida Sans Typewriter OT}
\setmathfont{Lucida Bright Math OT}
\begin{document}
\[ \ointctrclockwise_{\partial S} F \]
\end{document}

The results of the two approaches side-by-side are



Hope this helps,

Bruno Voisin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/lucida/attachments/20120501/a37c18c4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2012-05-01 ? 12.58.19.png
Type: image/png
Size: 40304 bytes
Desc: not available
URL: <http://tug.org/pipermail/lucida/attachments/20120501/a37c18c4/attachment-0001.png>


More information about the lucida mailing list