When I write a comment, I don't know how to go to the next line because if I press Enter button It will submit the comment.
-
1$\begingroup$ No, $$\quad$$ it's $$\quad$$ not $$\quad$$ possible. :) $\endgroup$– Daniel RAug 6, 2014 at 9:35
-
2$\begingroup$ @Daniel,$\tag*{}$Also using subtler methods.$\tag*{}$--- Asaf. $\endgroup$– Asaf Karagila ModAug 6, 2014 at 9:46
-
$\begingroup$ There are several older discussions, for example: meta.math.stackexchange.com/questions/3856/…, meta.math.stackexchange.com/questions/12927/…, meta.math.stackexchange.com/questions/1309/… $\endgroup$– Martin SleziakAug 6, 2014 at 9:51
-
2$\begingroup$ For long comments, I always use the answer box to edit it first and then copy and paste it to the comment box when it is ready. $\endgroup$– achille huiAug 6, 2014 at 9:53
-
1$\begingroup$ As I mentioned in an old thread, one can use $ $ \tag*{} $ $ in MathJax to force a newline in comments. $\endgroup$– Bill DubuqueAug 6, 2014 at 12:28
-
3$\begingroup$ Thanks for you answers. $\tag*{}$ Why so many thumbs down? $\endgroup$– ShabbehAug 6, 2014 at 12:43
-
1$\begingroup$ @Shabbeh: I did not downvote, but the downvotes are probably along the lines of Mad Scientist's answer. I also expressed the same sentiment in this comment. $\endgroup$– robjohn ModAug 6, 2014 at 12:48
-
$\begingroup$ Related: Linebreaks in comments don't seem to be working $\endgroup$– MJDAug 7, 2014 at 1:28
-
$\begingroup$ TEST: $\tag*{Success}$ $\endgroup$– MathManSep 2, 2014 at 0:04
2 Answers
There is no next line in comments, comments are meant to be short and line breaks are intentionally not allowed.
-
$\begingroup$ I agree with you but sometimes it gets too messy especially when you are using LaTeX. $\endgroup$– ShabbehAug 6, 2014 at 9:12
-
6$\begingroup$ @Shabbeh If you only want a new line while editing, so that you can better proof-read what you're writing, and don't insist on it being rendered, then you can type Shift+Return, that places the cursor on the next line, and does not submit. $\endgroup$ Aug 6, 2014 at 12:24
-
3$\begingroup$ @Shabbeh: with any LaTeX, if things become too crowded or confusing in
\textstyle
, formulas can be set in\displaystyle
. Just use$$...$$
$\endgroup$– robjohn ModAug 6, 2014 at 12:46 -
4$\begingroup$ My general rule of thumb: if you want a "new line" to separate paragraphs, you should probably start a new comment. $\endgroup$– apnortonAug 9, 2014 at 14:27
Promoting information in the comments to an answer for visibility.
Shift+Enter will move to the next line in the edit window, but this will not render as a newline in the output (it renders as a space).
To force newlines in the output we can use MathJax. By quoting Asaf's comment above in a Chatroom, you can see how the sausage is made:
@Daniel,$\tag*{}$Also using subtler methods.$\tag*{}$--- Asaf.
If you can't remember to use $\tag*$
, you might also remember that the code $$...$$
also starts on a new line, so an essentially empty version of this also makes a newline. This is how Daniel R's comment works (see this chatroom message):
No, $$\quad$$ it's $$\quad$$ not $$\quad$$ possible. :)
-
$\begingroup$ $\text{You can also use \\\\ and \\text\{\}}\\ \text{inside MathJax}$ $\endgroup$ Jul 29, 2022 at 0:44