Math & Science ⇒ Renew Shortcut for in-line Math Environment
Renew Shortcut for in-line Math Environment
My question - is there a way to override the $ shortcut, so that when typing it will actually start LaTeX's enviroment \( \) ?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Renew Shortcut for in-line Math Environment
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 […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10