Timeline for When not to use \ensuremath for math macro?
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 9, 2019 at 12:19 | comment | added | Kraigolas | As a useful tip, if you intend to use ensuremath, make sure that (a) You intend to use the command both inside and outside of mathmode; and (b) you test the command in a math environment as well as in a text setting. ensuremath commands can disrupt flow or have unexpected spacings. It might be the case that the spacing is unsatisfactory if you are not in math mode, in which case you want the editor to throw an error if you are not in it. If you are satisfied after these two conditions, use it. | |
| Apr 19, 2018 at 17:03 | comment | added | Peter Grill | Related Question: Wrap many math macros into \ensuremath. | |
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot | replaced http://tex.stackexchange.com/ with https://tex.stackexchange.com/ | |
| Mar 16, 2017 at 16:37 | history | edited | CommunityBot | replaced http://meta.tex.stackexchange.com/ with https://tex.meta.stackexchange.com/ | |
| Apr 28, 2014 at 22:49 | vote | accept | Peter Grill | ||
| Feb 24, 2013 at 23:23 | answer | added | Lover of Structure | timeline score: 16 | |
| Nov 23, 2011 at 10:38 | answer | added | egreg | timeline score: 38 | |
| Nov 14, 2011 at 20:20 | history | tweeted | twitter.com/#!/StackTeX/status/136176633232105473 | ||
| Nov 14, 2011 at 20:01 | answer | added | yannisl | timeline score: 11 | |
| Nov 14, 2011 at 18:54 | answer | added | Ryan Reich | timeline score: 80 | |
| Nov 14, 2011 at 18:36 | comment | added | Aditya | FWIW, in ConTeXt I have been campaigning to remove $ altogether and let everyone enter the math mode using \mathematics{...}, \math{...} or \m{...} (all of which are essentially equivalent to LaTeX's \ensuremath{...}. So, I am also interested in knowing if there is any harm in using the latter. | |
| Nov 14, 2011 at 18:33 | comment | added | lockstep | I know it's a close call, but tagging this question with mathmode seemed appropriate. ;-) | |
| Nov 14, 2011 at 18:32 | history | edited | lockstep | edited tags | |
| Nov 14, 2011 at 18:13 | comment | added | egreg | I won't answer, at least for one day, I promise. :) | |
| Nov 14, 2011 at 18:06 | history | asked | Peter Grill | CC BY-SA 3.0 |