Inserting Feynman Slash Notation in Mathematica

  • Context: Graduate 
  • Thread starter Thread starter Shaun Culver
  • Start date Start date
  • Tags Tags
    Feynman Notation
Click For Summary

Discussion Overview

The discussion revolves around the challenge of inserting Feynman slash notation (A\!\!\!/) into a Mathematica document. Participants explore potential solutions and workarounds, focusing on the limitations of current methods.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant expresses the need for inserting the Feynman slash notation in Mathematica and notes the lack of available resources.
  • Another participant offers a partial workaround using DisplayForm and RowBox, but highlights several limitations, including the output being a string rather than a symbol, incorrect appearance in StandardForm and InputForm, and issues with scaling.
  • A third participant acknowledges the workaround's effectiveness but notes its limitations for their specific needs and suggests reaching out to the MathGroup forum.
  • A fourth participant mentions finding a temporary solution and references an external post for further information.

Areas of Agreement / Disagreement

Participants generally agree on the limitations of the current solutions and the need for better support for Feynman slash notation in Mathematica, but no consensus on a definitive solution exists.

Contextual Notes

The discussion highlights the specific challenges related to formatting and representation of the notation in different forms within Mathematica, as well as the dependency on display settings.

Who May Find This Useful

Users of Mathematica interested in advanced formatting techniques, particularly in the context of physics notation.

Shaun Culver
Messages
69
Reaction score
0
I need to insert the slash notation, A\!\!\!/ , into a Mathematica document. I have searched high and low, but find nothing on this.
 
Last edited:
Physics news on Phys.org
Interesting problem! I found a limited workaround, but hopefully Wolfram includes these characters in a future update. Here is the partial solution:

Code:
DisplayForm[RowBox[{"A", AdjustmentBox["", BoxMargins -> {{0.1, -1.35}, {0.4, 0.2}}], "/"}]]

This solution is has the following weaknesses:

1) It produces a string, rather then a symbol. Attempting to convert it to an expression produces an error.

2) The slash only appears correctly in DisplayForm, it instead appears as A/ in StandardForm and InputForm.

3) It doesn't scale well with size, you will have to adjust the -1.35 parameter to get this right. The character looks correct to me on a 19" 1280x1024 with no magnification and Mathematica's default 12pt courier font. Any other configuration will probably require fiddling with the -1.35.

I'm sorry the solution is so limited, you could try posting this question to the MathGroup moderated forum, and at least hopefully someone at Wolfram will patch this missing feature in an update.
 
Good effort, it works! It's a pity that it's too limited for my purposes though. I'll drop a message at the MathGroup forum.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 80 ·
3
Replies
80
Views
6K
Replies
3
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K