Please help on how to do the line split
Asked
Active
Viewed 144 times
0
Edlyn Navales
- 51
- 1
- 4
1 Answers
2
A bare reproduction of the image you posted is
\noindent When $x=1$, $y=1,2,3,4$ \\
and $x = 2$, $y=1,2,3$ \\
$1+2+3=7$ pairs
My guess it that the commands you are looking for are \\ or \newline, that tell LaTeX to start a new line.
For reference see What is the difference between \newline and \\?
In a more complete way:
\documentclass{minimal}
\usepackage{mathptmx} % for the font
\begin{document}
\sffamily
\noindent When $x=1$, $y=1,2,3,4$ \\
and $x = 2$, $y=1,2,3$ \\
$1+2+3=7$ pairs
\end{document}
Which returns
Alessandro Cuttin
- 6,963
-
-
1
-
-
What do you mean by "here"? Where exactly is "here"? On your system, or on overleaf? In the answer I just put a screenshot of my output. I strongly suggest you to show the effort of posting a MWE as I already pointed out in the first comment, so that we can work out the differences you still notice. Otherwise your question is very likely to be closed (it has already been flagged) and that is how far you will get. The community can help you more with a MWE at hand. There is a lot of people willing to help, but sometimes the information provided in the question is just not enough. – Alessandro Cuttin Apr 21 '20 at 08:15
-
@AlessandroCuttin - I think the OP may be focusing on the use of a Times-Roman math font. – Mico Apr 21 '20 at 08:32
-
Thanks Mico, I also think so; will we know? However I can't guess the right font. It's not
mathptmx, normathpazo. Do you have a better guess? Anyway, the title says "how to split the line" ;) – Alessandro Cuttin Apr 21 '20 at 08:41 -
I am using Mathjax Live Demo and when I pasted your solution it's not the same with your preview. I cant paste the image here so you will see what it look like. – Edlyn Navales Apr 21 '20 at 10:45
-
1@EdlynNavales - The screenshot you posted (a) doesn't insert whitespace after
x=1,andx=2,respectively, and (b) inserts no whitespace at all after the commas in the expressions fory. I regard both issues as noticeable defects from a typographic/aesthetic point of view. Observe that Alessandro's solution doesn't exhibit either defect. – Mico Apr 21 '20 at 11:03


\documentclass{...}and ending with\end{document}.`` – Alessandro Cuttin Apr 21 '20 at 07:461+2+3=6, no? – Mico Apr 21 '20 at 08:09