General ⇒ Infix commands
Infix commands
Hi! How do I define infix commands, e.g. \over?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Infix commands
Please explain what you are aiming at. The command \over already exists as a plain TeX command and produces fractions in math mode.
Best regards and welcome to the board
Thorsten¹
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Infix commands
I think the OP means commands that work:
to which the answer is "you can't", really. For example, \over isn't exactly infix. Try something like:
as see that it applies to everything in the outer group.
Code: Select all
<arg1> \macro <arg2>
Code: Select all
{Some text {arg} \over {second} arg}
Joseph Wright
Infix commands
Thank you, that's what I need to know.josephwright wrote:I think the OP means commands that work:to which the answer is "you can't", really. For example, \over isn't exactly infix. Try something like:Code: Select all
<arg1> \macro <arg2>
as see that it applies to everything in the outer group.Code: Select all
{Some text {arg} \over {second} arg}