How to include contraction symbols in LaTeX


by nrqed
Tags: contraction, include, latex, symbols
nrqed
nrqed is offline
#1
Feb6-09, 09:55 AM
Sci Advisor
HW Helper
P: 2,886
I apologize, I know this is not a QM question per se but I think I am more likely to find someone who could answer this here.

I'd like to know (or rather, be reminded of) how to draw contraction symbols in LaTeX (or TeX). I mean the symbol we use to show how two fields are "paired up" when we do perturbation theory in QFT. You know what I mean: a line that goes a bit down (or up) from a field, runs across horizontally to the second field and then goes up again (or down again).
I used to have a way to do that but when my work computer was upgraded I lost those files.

Thanks in advance.

Patrick
Phys.Org News Partner Physics news on Phys.org
Physicists design quantum switches which can be activated by single photons
'Dressed' laser aimed at clouds may be key to inducing rain, lightning
Higher-order nonlinear optical processes observed using the SACLA X-ray free-electron laser
xepma
xepma is offline
#2
Feb6-09, 10:23 AM
P: 527
For that I use the package simplewick.sty, available here:

http://www.ctan.org/tex-archive/macr...ib/simplewick/
nrqed
nrqed is offline
#3
Feb6-09, 10:32 AM
Sci Advisor
HW Helper
P: 2,886
Quote Quote by xepma View Post
For that I use the package simplewick.sty, available here:

http://www.ctan.org/tex-archive/macr...ib/simplewick/
Thank you Xepma!!
I appreciate it!

sthitadhi91
sthitadhi91 is offline
#4
Oct21-11, 11:57 PM
P: 1

How to include contraction symbols in LaTeX


I also have the same doubt, but when I tried the way it is given in the CTAN package, and tried to compile the latex document I got the error
! Undefined control sequence.
l.27 \contraction
[2ex]{}{\phi_1}{\phi_2\phi_3}{\phi_4}
?
! Undefined control sequence.
l.28 \contraction
{\phi_1}{\phi_2}{}{\phi_3}
?

I also used their instruction generated the simplewick.sty file by latex simplewick.ins and placed it in the same directory as my original .tex fle but still the error persisted.
Is there anything else also I need to do like putting in some macros?
Please help?
Stefan_K
Stefan_K is offline
#5
Jun24-12, 08:59 AM
P: 6
\contraction works fine for me with simplewick.sty, placing the style file in the same same directory should work. Perhaps you forgot \usepackage. This example is compilable:

\documentclass{article}
\usepackage{simplewick}
\begin{document}
\[
  \contraction[2ex]{}{\phi_1}{\phi_2\phi_3}{\phi_4}
\]
\end{document}
Stefan


Register to reply

Related Discussions
Help with asm: include and compilling Programming & Computer Science 5
How to include an image? Forum Feedback & Announcements 5
how do i include shapes General Math 0
Can we include a LaTeX package? Forum Feedback & Announcements 4
Toe must include ourselves General Physics 13