Set font
\cjkfamily{song}: Set to Arial. \cjkfamily{hei}: Set to bold. \cjkfamily{kai}: Set to italic.
\cjkfamily command, he does not have any parameters, he works on the entire text thereafter, if you want to limit the scope, you can use grouping, such as this is {\cjkfamily{song} arial} word. For ease of use, we generally define the following command in the "Introduction area".
\newcommand{\song}{\cjkfamily{song}}% Arial \newcommand{\fs}{\cjkfamily{fs}}% Fangsong \newcommand{\kai}{\cjkfami Ly{kai}}% italics \newcommand{\hei}{\cjkfamily{hei}}% blackbody \newcommand{\li}{\cjkfamily{li}}% Script |
Set Font size
You need to join: \usepackage{type1cm} (where CM is the abbreviation for computer modern)
\fontsize{Font {line} This command works on all subsequent text and requires \selectfont to make the font size setting work after you use this command.
We usually meet other people's rules: "Text with small four, song body", but LaTeX is not small four, only PT, so the following table is the conversion table for the font size:
15.75pt
Font size |
initial |
small beginning |
one |
small one |
second |
small two |
Third |
small three |
fourth no |
small four |
fifth no |
small five |
sixth |
small six |
seventh |
small seven |
size |
42pt |
36pt |
26pt< /td> |
24pt |
22pt |
18pt |
16pt |
15pt |
14pt |
1 2pt |
10.5pt |
9pt |
7.5pt |
6.5pt |
5.5pt |
5pt | \baselineskip setting value for
1.5 line spacing |
63pt |
54pt |
39pt |
36p T |
33pt |
27pt |
24pt |
22.5pt |
21pt |
18pt |
13.5 |
11.25 |
9.75pt |
8.25pt |
7.5pt |
/tbody>
For example: \fontsize{12pt}{18pt}\selectfont set a small four, and 1.5 times times the line spacing.
Error: Latex font warning:font shape ' ot1/cmr/m/n ' in size <15> not available LaTeX Font warning:size s stitutions with differences up to 0.6 pt has occurred Solution: \usepackage{type1cm} |
Usually we will add the following statement in the introductory area of the source file according to the specific requirements to facilitate the setting of the font size:
\newcommand{\yihao}{\fontsize{26pt}{36pt}\selectfont} , number 1.4 times, line spacing \newcom Mand{\erhao}{\fontsize{22pt}{28pt}\selectfont} % second, 1.25 times spacing \newcommand{\xiaoer}{\ Fontsize{18pt}{18pt}\selectfont} % small two, single-spaced \newcommand{\sanhao}{\fontsize{16pt}{ 24pt}\selectfont} % third, 1.5 times line spacing \newcommand{\xiaosan}{\fontsize{15pt}{22pt}\selectfont} % small three, 1.5 times x line spacing \newcommand{\sihao}{\fontsize{14pt}{21pt}\selectfont} % Fourth, 1.5 times x \newcommand{\banxiaosi}{\fontsize{13pt}{19.5pt}\selectfont} % half-small four, 1.5 times-fold spacing \newcommand{\xiaosi}{\fontsize{12pt}{18pt}\selectfont} % small four, 1.5 times x spacing \ Newcommand{\dawuhao}{\fontsize{11pt}{11pt}\selectfont} % large fifth, single-spaced \newcommand{\wuhao}{\fontsize {10.5PT} {15.75pt}\selectfont} % fifth, single-spaced |
The
\song\xiaosi can be quickly set to "Arial, small four, 1.5 times spacing."
Sets Bold, italic
\textbf{text}: Bold command. \TEXTBF is a command with a parameter to make the text in the argument bold, and his command is defined as: \newcommand{\textbf}[1]{content}, where [1] has a parameter for the command, {content} is a command definition. \textit{text}: Italic command.
Appendix
If you want to set up some extended fonts, the following list of required macro packages, such as "Times New Roman" font, often used in the paper, we can use: \usepackage{times} make the English default font is the Times New Roman.