0
$\begingroup$

How do I define new commands at the top without creating multiple spaces before the first character?

Also, is it just my browser, or is the rendering engine on StackExchange much slower than on StackEdit?

EDIT

This is better but still creates a single space.

$\endgroup$
7
  • 2
    $\begingroup$ It's better to put these commands where you need them, because otherwise they interfere with the preview text and Google search results anyway. $\endgroup$
    – Asaf Karagila Mod
    Jul 18, 2023 at 10:20
  • 1
    $\begingroup$ It's going to be a long post where I need the commands pretty often :D I could write it in some other editor and then replace them inline before posting. $\endgroup$
    – fweth
    Jul 18, 2023 at 10:22
  • 1
    $\begingroup$ Or, as I suggested, define them when they are needed and not before. $\endgroup$
    – Asaf Karagila Mod
    Jul 18, 2023 at 10:27
  • 1
    $\begingroup$ Yes, but for editing a long post this makes the source code super confusing. $\endgroup$
    – fweth
    Jul 18, 2023 at 10:28
  • 2
    $\begingroup$ What do you mean that it can interfere with preview text? It seems to work fine, but could there be complications in the future? Is StackExchange moving to KaTeX just like StackEdit? Because this would break it, unless they fix it until then... $\endgroup$
    – fweth
    Jul 18, 2023 at 10:39
  • $\begingroup$ Re: preview text. If you see some list of questions, the beginning of the text is displayed. This is based on constant number of characters - in some cases, this might mostly be the definitions of macros. $\endgroup$ Jul 18, 2023 at 18:36
  • 1
    $\begingroup$ Regarding the "rendering engine on StackExchange" vs. StackEdit, it has been discussed before that benweet (author of StackEdit) chose Katex rather than MathJax some years ago for a performance advantage. I use StackEdit in-browser (Chrome/Chromium), but it might be that the stand-alone version of StackEdit (3+ years old at this point) may provide additional speed over the baseline of StackExchange in browser. $\endgroup$
    – hardmath
    Jul 18, 2023 at 19:44

1 Answer 1

3
$\begingroup$

This seems to work. It's a bit ugly, but still.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .