Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Contour Integrals in LaTeX

808 views
Skip to first unread message

Paul Evans

unread,
Mar 2, 2001, 7:56:24 AM3/2/01
to
Is there a way to specify the direction of contour integrals; like the

\oint

for example. I need to be able to put a direction circle on it, like the
\circlearrowleft and \circlearrowright arrows in the amssymb package.

Paul Evans

(1st Year Maths & CompSci at Pembroke)

PE...@cam.ac.uk
ne...@freeuk.com (alternate)
ICQ number: 4135350

Robin Fairbairns

unread,
Mar 2, 2001, 8:50:57 AM3/2/01
to
Paul Evans <pe...@cam.ac.uk> wrote:
>Is there a way to specify the direction of contour integrals; like the
>
>\oint
>
>for example. I need to be able to put a direction circle on it, like the
>\circlearrowleft and \circlearrowright arrows in the amssymb package.

the [tp]xfonts (ctan fonts/[tp]xfonts) have these symbols
--
Robin Fairbairns, Cambridge

Donald Arseneau

unread,
Mar 2, 2001, 6:14:10 PM3/2/01
to
Paul Evans <pe...@cam.ac.uk> writes:

> Is there a way to specify the direction of contour integrals;

I've given this answer several times over the years, with
progressive additions. I guess I should make a sty file
for ctan...

For this method, I need to rotate the \circlearrowleft symbol,
which requires

\usepackage{amssymb}
\usepackage{graphicx}

and may not appear right in some output (xdvi). Four special integral
commands are defined: \dashint, \ddashint, \clockint, \counterint.

\def\Xint#1{\mathchoice
{\XXint\displaystyle\textstyle{#1}}%
{\XXint\textstyle\scriptstyle{#1}}%
{\XXint\scriptstyle\scriptscriptstyle{#1}}%
{\XXint\scriptscriptstyle\scriptscriptstyle{#1}}%
\!\int}
\def\XXint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
\vcenter{\hbox{$#2#3$}}\kern-.5\wd0}}

\def\dashint{\Xint-}
\def\ddashint{\Xint=}
\def\clockint{\Xint\circlearrowright}
\def\counterint{\Xint\rotcirclearrowleft}

\def\rotcirclearrowleft{\mathpalette{\RotSymbol{-30}}\circlearrowleft}
\def\RotSymbol#1#2#3{\rotatebox[origin=c]{#1}{$#2#3$}}

Donald Arseneau as...@triumf.ca

0 new messages