Let’s get started with latex 05, line feed, paragraph feed, page feed, first line indent, etc

Line feed command

\\: wrap.

\\[offset]: newline, and the line spacing with the next line is the original line spacing + offset.

\Newline: same as \ \.

\Linebreak: force line break. The difference between linebreak and newline is that the current line of linebreak is aligned separately.

Segment command

\Par: segmentation.

Paging command

\Newpage: paging command.

\Clearpage: similar to the new page. When we use the CJK environment, we will add the clearpage at the end of the environment.

text-indent

The simplest way is to set the length of the parent as follows: setlength {parent} {length}. If you want to indent the first line by two Chinese characters, then set the length as follows: setlength {parent} {2em}.

If you are in CJK environment, you can indent the first line immediately after “begin {CJK} {GBK} {song}”.

By default, the first line of the first paragraph is not indented. If you want the first line of the first paragraph to be indented, you can use ﹣ usepackage {indentfirst}.

If you want a paragraph not to be indented on the first line, you can precede the paragraph with the word “no indent”.

If you want the first line of the whole article not to be indented, then: setlength {parent} {0pt}

Note: in latex, one carriage return represents a space and two carriage returns represent a segment.

Usually, in practice, we expand according to the following template:

\documentclass[12pt,a4paper]{article}

\Usepackage {CJK}% import CJK macro package

\Setlength {parskip} {10pt}% sets the interval between partial paragraphs

\begin{document}

\Begin {CJK *} {GBK} {song}% to start CJK environment

\Cjktilde% redefines “~”

\CJ kindent% set first indent

This paper reflects on the history and development of the latex Project Public License (lppl)

\No indent in late June, the tug 2010 conference was held in San Francisco to great success

\clearpage

\End {CJK *}% end CJK environment

\end{document}

\Setlength {parskip} {10pt}: the paragraph interval is the sum of ⁃ lineskip and ⁃ parskip. The value of ⁃ parskip is set here to increase the paragraph interval.

\CJ kindent: indent the first line in the CJK environment.

Read More: