0
$\begingroup$

When editing a complex formula, it is easy to get lost in a sea of MathJax code. The suggested feature is, when editing posts with MathJax:

(1) When a portion of a MathJax code is selected in the edit box, the corresponding portion of its result in the preview is highlighted.

(2) If none of a MathJax code is selected in the edit box, but the cursor in the edit box is inside a MathJax code, then one character at the corresponding position of the MathJax result in the preview is highlighted.

(3) When a portion of a MathJax result is selected in the preview, the corresponding portion of its code is highlighted in the edit box.

(4) When a MathJax result is clicked in the preview, the cursor in the edit box is set to the corresponding code of the clicked position in the result.

$\endgroup$
23
  • 1
    $\begingroup$ There's an easy solution: get a job as a typesetter for a journal. After that you'll never get lost in $\rm\LaTeX$ code ever again. At least not when it's on the scale of a MathJax inline code on a website like this. And it will also generate revenue for you on the side, so... win-win! $\endgroup$ – Asaf Karagila Dec 10 '20 at 12:36
  • $\begingroup$ @AsafKaragila Indeed I get lost in physics expression, but I think MathJax belongs to math site. $\endgroup$ – jw_ Dec 10 '20 at 12:41
  • $\begingroup$ (1) I don't think that's a great feature request. (2) I wonder what you'd do if we were using KaTeX instead of MathJax... $\endgroup$ – Asaf Karagila Dec 10 '20 at 12:42
  • $\begingroup$ @AsafKaragila Never heard of KaTex before. Alghouth you don't think its great, but I need this feature a lot and I believe a lot of others do, especially new users. $\endgroup$ – jw_ Dec 10 '20 at 12:47
  • 3
    $\begingroup$ It's your prerogative to want a feature request. I am recording my opinion about it. The KaTeX remark was aimed at the "MathJax request should be on the math website" comment, which doesn't make sense to me, as a whole. (It's actually not a MathJax request, it's a StackExchange feature request, so by the same logic, it should perhaps go on Meta Stack Exchange instead.) $\endgroup$ – Asaf Karagila Dec 10 '20 at 12:48
  • $\begingroup$ @AsafKaragila You said "not when it's on the scale of a MathJax inline code on a website like this" Then I realized maybe on math site the code is commonly shorter which make you not easy to get lost. But I find this need when I was editing physics expression on physics site. But the reason I asked it here is I think MathJax questions should be asked on math meta. $\endgroup$ – jw_ Dec 10 '20 at 12:54
  • $\begingroup$ @AsafKaragila Now I'm confused, base on your logic, where should I post this question? $\endgroup$ – jw_ Dec 10 '20 at 12:55
  • 3
    $\begingroup$ Yes, so let me reiterate, it's called MathJax because it's meant to display mathematical formulas. It's not directly related to the mathematics website on SE. Moreover, you are not making any feature request about MathJax, but rather about the underlying SE software (which can go on any meta website, really), so by your logic that "MathJax should be discussed on math", "SE features should be discussed on meta.SE". $\endgroup$ – Asaf Karagila Dec 10 '20 at 12:55
  • $\begingroup$ @AsafKaragila And MathJax in mainly used in math and physics site, I don't think it is quite fit for meta.se $\endgroup$ – jw_ Dec 10 '20 at 12:56
  • 1
    $\begingroup$ Do you realise how demanding your first three requests are? For (4) you can use Overleaf. $\endgroup$ – TheSimpliFire Dec 10 '20 at 13:10
  • 2
    $\begingroup$ You didn’t do anything wrong, I think Asaf’s replies are to be taken as more playful than antagonistic, you can make the request here (but your reasoning to choose math.se’s meta is suspect), I don’t really want it, and I doubt it would be implemented. Keep in mind downvotes on meta indicate disagreement, not that u did something bad $\endgroup$ – Calvin Khor Dec 10 '20 at 14:11
  • 1
    $\begingroup$ This is a different feature request, but it is also intended to avoid getting lost when editing: Ask Question app should have side-by-side view option and Feature request - but it woudn't be a feature, it'd be a blessing - editing panel and preview side-by-side - fighting lag on large answers! $\endgroup$ – Martin Sleziak Dec 10 '20 at 14:32
  • 1
    $\begingroup$ If you need to make your editing process easier, you could also have a look the suggestion given here: MathJax: better way to prepare a Math.StackExchange question? (and in other linked posts) $\endgroup$ – Martin Sleziak Dec 10 '20 at 14:32
  • 1
    $\begingroup$ Maybe if you get lost when editing MathJax, it might be worth considering some WYSIWYG tool. I know about CodeCogs, but you might get better advice from people who use such tools regularly. Related posts: WYSIWYG for math formulas?, MathJax WYSIWYG Editor, Latex editor suggestion. $\endgroup$ – Martin Sleziak Dec 10 '20 at 15:15
  • 1
    $\begingroup$ @jw_ I suspect that due to the above mentioned interpretation of downvotes in SE's meta sites, you shouldn't worry about the question ban. (your question also has no close votes at the moment) $\endgroup$ – Calvin Khor Dec 11 '20 at 4:24

You must log in to answer this question.

Browse other questions tagged .