General ⇒ Different command definition in math mode and display mode
Different command definition in math mode and display mode
depending on whether it is used in math mode or in display mode. How do I do that?
Thanks for any suggestions.
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
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Different command definition in math mode and display mode
Code: Select all
\mathchoice{<display mode>}{<text mode>}{<superscript mode>}{<supersuperscript mode>}
Re: Different command definition in math mode and display mo
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Different command definition in math mode and display mode
Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).szymtor wrote:Very cool. […]
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10