to add a blank command:
\vspace{length}: precise increase of vertical distance
\addvspace{length}:the\addvspace command normally adds a vertical space of height length. However, ifvertical space had already been added to the same point in the output by aprevious \addvspace command, then thi s command won't add more space thanneeded to make the natural length of the total vertical space equal to length.
\hspace and \addvspace with this same paragraph indent
The first method:
\newline
\noindent
\hangafter=1% The first line does not indent, the original 1 lines as the first line
\SETLENGTH{\HANGINDENT}{2EM}
The second method:
\par
\hangafter=0% indent in first line
\SETLENGTH{\HANGINDENT}{2EM} Paragraph spacing
\parskip = length
Added after the previous paragraph
\bigskip;\medskip or \smallskip
Line End Flag
Finally add \hfill xxx to change line
\\[extra-space] and \\*[extra-space]: Sometimes it is necessary for us to explicitly insert line breaks, and we can use these two commands. The latex changes to a new line instead of starting a new paragraph. The \\* same as \ \ command, except that the latter prohibits page breaks after forcing a newline. The optional parameter extra-space indicates how much vertical distance (which can be negative) is reserved before the next line starts.
\newline: The command can only be used in a paragraph so that the text starts a new line.
\linebreak[number]: This command lets latex break the current line and lengthen the current line to its own text until the page edge. The value of the optional parameter number can only be from 0 to 4, and the larger the value, the stronger the willingness to wrap.
\nolinebreak[number]: This command is just the opposite of \linebreak.
The list of words that need to be considered separately is listed in the \hyphenation[word list]:worl list, and LATEX encounters a hyphen that requires a word in the list, and only where we use the \-command is allowed to break. If we use the \-command in the middle of a word, latex no longer uses the hyphenation algorithm to find another feasible breakpoint for that word. The listed words cannot contain Fu She characters or symbols, and the letters are handled the same way regardless of the case. The following example causes the system to hyphenate the word "hyphenation" in the specified feasible position, while prohibiting "Fortran", "Fortan" or "Fortran" from disconnecting:
\hyphenation{fortran Hy-phen-a-tion}
\mbox[text]: A string that consists of multiple words in the text parameter will not be separated in two lines under any conditions. emphasis (default traditional and italic interchange)
Latex emphasize text is not with \emph{} command, default is italic,
What font to use, you can use similar
\declaretextfontcommand{\emph}{\heiti}
Source: http://xfyxiao.ycool.com/post.2983543.html
To underline the text, use \underline{this was an underlinetext}.
with \emph{} command different \emph will make the text different from the current text. such as traditional italic, or italic change traditional.
If you want to use text highlighting to use a package called soul,
This package has a total of four commands:
\so{letterspacing} l e t t e R s p a c i n g
\caps{capitals, Small Capitals} Capitals, Small capitals
\ul{underlining} underlining
\st{overstriking} overstriking
\hl{ Highlighting} highlighting5
If there is no color package, the HL command is the same as the underscore command. Usually HL is a preset yellow
can change color with the following command
\setulcolor{bule} Set the underline color to blue (underline)
\setstcolor{yellow} set overstriking color to yellow (strikethrough)
\sethlcolor{green} set highlight to Green (highlight)
For more detailed commands, consult the soul documentation
Below is a demo document:
\documentclass{article}
\usepackage{color, soul}% with color, and soul package
\begin{document}
\setulcolor{red} Set underlining color
\setstcolor{green} set overstriking color
\ Sethlcolor{blue} set highlighting color
\so{letterspacing} \
\caps{capitals, Small capitals}\
\ul{ underlining}\
\st{overstriking} \
\hl{highlighting}
\end{document}
Snap To Underline line breaks
Add \uline command with Ulem package
Set Word breaks
\hyphenation{ab-c BBB} means ABC can break the word after B, BBB cannot break the word special character
Double quotes:
\textquotedblleft
\textquotedblright
Single quotes:
\textquoteleft
\textquoteright
If you need to use a command that has \@ characters internally, such as \ @addtoreset, you need to use another two commands
\makeatletter, \makeatother.
% |
\% |
\ |
\textbackslash or \backslash |
$ |
\$ |
# |
\# |
{ |
\{ |
} |
\} |
^ |
\^{} |
_ |
\_ |
~ |
\~{} |
& |
\& |
| |
\textbar $|$ |
> |
\textgreater |
< |
\textless |
Double-digit character |
-- |
Dash |
--- |
Support Chinese
\usepackage[nocap,noindent]{ctex}
Or
\USEPACKAGE{CJK}
\begin{cjk}{gbk}{song}ç Song Body
Try Aa
\END{CJK}
Set Font
Encode, word family, sequence, shape ß optional combination
\fontencoding{} \fontfamily{} \fontseries{}\fontshape{} \fontsize{size {line spacing (usually 20% larger than size)}
\newcommand{\myfont}[1]{{\fontencoding{u}\fontfamily{fplmbb}\fontseries{m}\fontshape{n}\selectfont#1}}, Small \fontsize{}{can be enlarged after the shape}
Or
\NEWCOMMAND{\MYFONT}[1]{{\USEFONT{U}{FPLMBB}{M}{N}\SELECTFONT#1}}
Math Font Selection
Formula icon Àmath
or Texàctex toolsàtexfriend ...
(Ob$\mathfrak{ao} $DD) Ob$\mathds{ao} $DD
Conditional Judgment
Package Ifthen
\ifthenelse{conditions to determine} {positive Statement} {negation statement}
Types of conditional judgments
Value 1 (< = >) value 2
\lengthtest{length 1 relationship length 2}
\isodd{Value}
\equal{string} {string}
\boolean{boolean register name}; New Definition Boolean register \newboolean{name}; assignment \setboolean{name}{false/true}
\isundefined{command}
Multiple conditions \and \or\not \ (\)
Conditional loop: \whiledo{condition to determine} {affirmative statement}