Timeline for newcommand vs. DeclareMathOperator
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 22, 2024 at 9:55 | comment | added | Jolia | @user2154420 I've defined operators in bold and when I type them in proofs they're not italicized but in theorem environment they are, any idea on how to never have them in italic? | |
| May 19, 2023 at 7:04 | comment | added | Dror | \ DeclareMathOperator is defined in amsopn which is loaded by default when including amsmath. | |
| May 17, 2023 at 23:12 | comment | added | Lucas | is this in the amsmath package? | |
| Jun 22, 2021 at 22:55 | answer | added | Gautam Sreekumar | timeline score: 2 | |
| Apr 5, 2018 at 16:06 | comment | added | user2154420 | Consider \newcommand{\im}{\text{im}} with \DeclareMathOperator{\im}{im}. Now try and use these commands in the standard theorem environment. In the former "im" will be italicized, but in the latter "im" won't be. | |
| Apr 13, 2017 at 12:35 | history | edited | CommunityBot | replaced http://tex.stackexchange.com/ with https://tex.stackexchange.com/ | |
| Apr 12, 2015 at 21:18 | answer | added | Tyson Williams | timeline score: 11 | |
| Sep 4, 2012 at 21:01 | history | tweeted | twitter.com/#!/StackTeX/status/243091320841859072 | ||
| Aug 18, 2012 at 19:33 | vote | accept | Dror | ||
| Aug 17, 2012 at 19:04 | answer | added | Dox | timeline score: 45 | |
| Aug 17, 2012 at 9:39 | answer | added | Andrew Swann | timeline score: 250 | |
| Aug 17, 2012 at 9:24 | comment | added | Andrew Stacey | Sort of related: tex.stackexchange.com/q/655/86 I'd go for the "horses for courses" argument: \DeclareMathOperator says what it's going to do and does it, so makes it easier for you to remember 6months later what it was meant for. Also, if you want a consistent look you're going to effectively reimplement \DeclareMathOperator (this \newcommand should produce the same effect as that \newcommand but not the other \newcommand so we'd better have a "helper" macro for this and that but not the other) so why not take advantage of the work others have already done? | |
| Aug 17, 2012 at 9:09 | comment | added | egreg | \DeclareMathOperator is a very special case of \newcommand, so the question as it stands is too generic to receive an answer. | |
| Aug 17, 2012 at 8:54 | comment | added | Marco Daniel | Run texdoc amsmath and see page 13f. | |
| Aug 17, 2012 at 6:09 | history | asked | Dror | CC BY-SA 3.0 |