Skip to main content
12 events
when toggle format what by license comment
Mar 20 at 14:43 history edited user3840170 CC BY-SA 4.0
format code as code, typography
Feb 13, 2020 at 15:29 comment added Martin @Caleb I don't have much experience with SQL, but I tried at least a very naive attempt to create a query searching for definitions of a macro. I got some results on MathOverflow, but on Mathematics I got "Execution Timeout Expired". When I tried only \newcommand - and not the other potions - I got 131 posts on Mathematics.
Feb 13, 2020 at 15:06 comment added Martin @Caleb The search results which I linked in the post give only about 30 results for \N with mathbf and \mathcal (about 100 with \mathbb), so I agree the the number is likely to be relatively low. To make a more extensive search, one should keep in mind all various ways how macros can be defined. (For example, \newcommand{\N}, \newcommand{N} and \newcommand\N are all valid. One can also use \let, \def, \renewcommand, Maybe with this number of possibilities, directly analyzing the data dump might be more viable than using SEDE. (But this is for more experienced users to say.)
Feb 13, 2020 at 14:59 comment added Caleb It would be pretty easy to search the data explorer to see if any posts already define such a macro. I bet the number will be pretty small and in the realm of fixable.
Feb 13, 2020 at 9:58 comment added emacs drives me nuts ...if you let parse $\def\N{\mathbb X}$ $\def\N{\mathbb Y}$ $\newcommand\N{\mathbb Z}$ $\renewcommand\N{\mathbb A}$ $\N$ then what shows up is $\mathbb A$ (rendered, of course) as expected.
Feb 13, 2020 at 9:58 comment added Martin @emacsdrivesmenuts I use LaTeX a lot - so there is no need to explain to me how it works there. However, MathJax - not LaTeX - is used for rendering mathematical formulas here on Stack Exchange. So for this to work it is important to know how things work in MathJax.
Feb 13, 2020 at 9:55 comment added emacs drives me nuts I can tell how it's working in TeX, but I know nothing about MathJax or whatever fancy tools would be needed or are in the way there...
Feb 13, 2020 at 9:41 comment added Martin @emacsdrivesmenuts My main question is what happens with the post where the macros such as \N, \Z, \Q, \R, \C are already defined. If you know for a fact that the change you suggesting would not influence such posts, it would be useful to clarify that in your question.
Feb 13, 2020 at 9:34 comment added emacs drives me nuts The semantics of \N would just be to produce symbol ℕ. Whether or not a symbol is appropriate in a given context is up to the user – just like with any other symbol or notation. I did not want to imply that ℕ should always denote Natural numbers, just that ℕ is used very frequently, namely in the context of Natural numbers. Hence respective macros would be convenient. Moreover, you can use \def multiple time and override to what it expands. Hence my proposal is just to supply a convenient default definitions for very frequently used symbols.
Feb 13, 2020 at 8:22 history edited Martin CC BY-SA 4.0
added 73 characters in body
Feb 13, 2020 at 1:23 history edited Martin CC BY-SA 4.0
edited body
Feb 13, 2020 at 1:16 history answered Martin CC BY-SA 4.0