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:
- Add a new page in latex
- How to empty a whole line in latex (simple and effective)
- Latex wave line~
- Latex subsection cannot wrap and indent
- Latex row overflow problem overfull / hbox (1.1499pt too wide) in paragraph
- LaTeX Error: There’s no line here to end
- Latex sets page margin, page size, page margin and geometry macro package
- Latex error: “paragraph ended before \ @ Citex was complete”
- Sudo: parse error in / etc / sudoers near line 24
- Error command line is too long when idea project is started [How to Solve]
- Three ways of single line and multi line comment in Python
- Java 8 Stream – Read a file line by line
- The language of C__ FILE__ 、__ LINE__ And line
- Command line is too long. Shorten command line for QuestionnaireApplication or also for Spring Boot
- Set code indent to space indent in eclipse
- Error running ‘application’: command line is too long. Short command line for application
- [latex] latex adjust row spacing
- Latex letters with symbols, wavy lines, horizontal lines, horn, etc
- LaTeX Error: Can be used only in preamble