latex字号

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\usepackage{CJK}
\usepackage{ifthen}

\newcommand{\CJKfontsize}[4]{%
\fontsize{#1}{#2 plus#3 minus #4}\selectfont}
\newcommand\zihao[1]{%
\ifthenelse{\equal{#1}{0}}{%
\CJKfontsize{42bp}{50.4pt}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{0-}}{%
\CJKfontsize{36bp}{43.2pt}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{1}}{%
\CJKfontsize{26bp}{31.2pt}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{1-}}{%
\CJKfontsize{24bp}{28.8pt}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{2}}{%
\CJKfontsize{22bp}{26.4pt}{.5pt}{.3pt}}{}%
\ifthenelse{\equal{#1}{2-}}{%
\CJKfontsize{18bp}{21.6pt}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{3}}{%
\CJKfontsize{16bp}{19.3pt}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{3-}}{%
\CJKfontsize{15bp}{18pt}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{4}}{%
\CJKfontsize{14bp}{16.8pt}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{4-}}{%
\CJKfontsize{12bp}{14.4pt}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{5}}{%
\CJKfontsize{10.5bp}{12.6pt}{.3pt}{.2pt}}{}%
\ifthenelse{\equal{#1}{5-}}{%
\CJKfontsize{9bp}{10.8pt}{.2pt}{.1pt}}{}%
\ifthenelse{\equal{#1}{6}}{%
\CJKfontsize{7.5bp}{9pt}{.2pt}{.1pt}}{}%
\ifthenelse{\equal{#1}{6-}}{%
\CJKfontsize{6.5bp}{7.8pt}{.2pt}{.1pt}}{}%
\ifthenelse{\equal{#1}{7}}{%
\CJKfontsize{5.5bp}{6.6pt}{.1pt}{.1pt}}{}%
\ifthenelse{\equal{#1}{8}}{%
\CJKfontsize{5bp}{6pt}{.1pt}{.1pt}}{}}
请作者喝一杯咖啡☕️