Hello. I want to use LaTeX's shortcut \( \) for math environment rather than TeX's $ because the output looks better... However, writing \( \) every time is annoying, and looks less clear in the source code.
My question - is there a way to override the $ shortcut, so that when typing it will actually start LaTeX's enviroment \( \) ?
Math & Science ⇒ Renew Shortcut for in-line Math Environment
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
Renew Shortcut for in-line Math Environment
Please show the mismatch clearly with a visual example along with the corresponding code. The only difference between those two is that the first one is fragile and the second one is robust. There should be no recognizable variation in their output.Willie wrote:[…] I want to use LaTeX's shortcut \( \) for math environment rather than TeX's $ because the output looks better […]
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
Re: Renew Shortcut for in-line Math Environment
Ok. Maybe it is the same, I don't recognize a difference now but I thought I saw before.
anyway - what do you mean more robust? is there a preference to \( \)?
because $ is much more convenient...
and also - is what i asked to define possible theoretically?
thanks
anyway - what do you mean more robust? is there a preference to \( \)?
because $ is much more convenient...
and also - is what i asked to define possible theoretically?
thanks
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Renew Shortcut for in-line Math Environment
It's quite the other way round. The $…$ environment is preferable. And robust means that it can be used in moving arguments (e. g. of sectioning commands) without getting errors. As far as I know the fixltx2e package makes also \(…\) robust.Willie wrote:[…] what do you mean more robust? is there a preference to \( \)? because $ is much more convenient […]
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