What does double backslash in LaTeX mean ? (please see example below)
label 2-1 & label 2-2 & label 3-3 & label 4-4 & label 5-5 \\
\verb= http:\\www.chinatex.org=\\
some line have \\ while other line don't, which makes me confused.
What does double backslash in LaTeX mean ? (please see example below)
label 2-1 & label 2-2 & label 3-3 & label 4-4 & label 5-5 \\
\verb= http:\\www.chinatex.org=\\
some line have \\ while other line don't, which makes me confused.
The \\ is context-dependent macro in LaTeX. It means that it is internally redefined in various situations and various LaTeX environments. By default it is \hfil\break and this can be used inside the paragraphs in order to "destroy" the normal paragraph formatting. Many LaTeX users use these destroyed paragraphs because they don't know that normal end of paragraph does the similar result.
The typical mistake of novice users is the usage of \\ at the end of the paragraph. Then we have \hfil\break\unskip\nobreak\hskip\parfillskip at the end of the paragraph and the \break consumes all followed removable items including \hskip\parfillskip. The bad paragraph is produced with the warning message "Underfull hbox (badness 10000)".
But novice users don't read the log nor terminal messages, unfortunately.
The \\ is redefined as \cr primitive in tables. The \cr primitive isn't mentioned in common LaTeX manuals and LaTeX users are confused when TeX error message "Extra alignment tab has been changed to \cr" occurs.
The \\ is redefined by \par in centering environments etc.
The \\ macro is source of many confusions for LaTeX novice users.
Plain TeX does not define \\. This control sequence is reserved for user definitions.
Note curious example in our question: http:\\www.chinatex.org. I never seen such URL. Maybe you have meant http://www.chinatex.org.
A little searching led to this webpage: https://www.sharelatex.com/learn/Line_breaks_and_blank_spaces
(I did not write it, original author unlisted) But it also backs up my own experience: it is a linebreak. You can insert it either in body text as such.
Alternately, if you have a LaTeX table or math matrix, for example, you can also use it to mark the end of the row of data, and the data afterward will start to form the next row.
Happy Texxing!
centerenvironment. But it ought not be used it body text to create line breaks. – cfr Feb 01 '15 at 03:50\section{This is an incredibly long section title; it will need to be broken into multiple lines at least once}and let TeX do the rest. Then you get consistent section formatting. – jon Feb 01 '15 at 06:40\\\is the dreaded “no line here to end”, which sometimes pops up when you’ve used it (improperly) to produce a new line. – wasteofspace Feb 01 '15 at 10:45heading description: paper citation(year), I find it much more confusing for it to place part of the citation in the first line and part in the second (e.g.,heading description: author_1 \& author_2 (year). To automatically format that would require building a new environment so I can specify this section (though not others) is of the heading+citation type. @wasteofspace fair enough. @cfr that seems like output should be made more legible, not a problem with//. – mpacer Feb 01 '15 at 20:38\sectionheadings, then you should absolutely be creating a\newcommandto handle this properly. This makes editing your file easier, and it makes reading your file easier (for others, at least). What is the problem with (say)\newcommand{\mysection}[2]{\section[#1: #2]{#1:\newline #2}and using\mysection{#1}{#2}? Don't forget, too, that\\will causehyperrefto complain, and likely mess up any headers/footers.... – jon Feb 01 '15 at 21:21