latex 之好看的字体格式

latex 之好看的字体格式

正文字体

  • 字体大小
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
  • 格式

斜体:用 \emph{文字}

既想加粗又想变斜体 emph{\textbf{blablablabla}}

显示直立文本:\textup{文本}
意大利斜体: \textit{文本}
slanted 斜体: \textsl{文本}
显示小体大写文本: \textsc{文本}
中等权重: \textmd{文本}
加粗命令:\textbf{文本}
默认值:\textnormal{文本}


公式字体

http://mohu.org/info/symbols/symbols.htm

常规字体

mathbb:blackboard bold,黑板粗体
a b c d e f g A B C D E F G \mathbb {abcdefgABCDEFG}
mathcal:calligraphy(美术字)
a b c d e f g A B C D E F G \mathcal {abcdefgABCDEFG}
mathrm:math roman
a b c d e f g A B C D E F G \mathrm {abcdefgABCDEFG}
mathbf:math boldface
a b c d e f g A B C D E F G \mathbf {abcdefgABCDEFG}


bbm 字体

\documentclass{article}
\usepackage{bbm}

\begin{aligned}
\mathbbm{1234567890}
\mathbbm{abcdefghijklmnopqrstuvwxyz}
\end{aligned}

1


bm 字体

\usepackage{bm}

a b c d A B C D \bm{abcd ABCD}


其他有意思的字体

\mathsf
a b c d e f g A B C D E F G \mathsf {abcdefgABCDEFG}

\mathtt

a b c d e f g A B C D E F G \mathtt {abcdefgABCDEFG}
\mathit
a b c d e f g A B C D E F G \mathit {abcdefgABCDEFG}

大括号

  • 第一种
f(x)=
\begin{cases}
0& \text{x=0}\\
1& \text{x!=0}
\end{cases}

f ( x ) = { 0 x=0 1 x!=0 f(x)= \begin{cases} 0& \text{x=0}\\ 1& \text{x!=0} \end{cases}

  • 第二种
F^{HLLC}=\left\{
\begin{array}{rcl}
F_L       &      & {0      <      S_L}\\
F^*_L     &      & {S_L \leq 0 < S_M}\\
F^*_R     &      & {S_M \leq 0 < S_R}\\
F_R       &      & {S_R \leq 0}
\end{array} \right. 

F H L L C = { F L 0 < S L F L S L 0 < S M F R S M 0 < S R F R S R 0 F^{HLLC}=\left\{ \begin{array}{rcl} F_L & & {0 < S_L}\\ F^*_L & & {S_L \leq 0 < S_M}\\ F^*_R & & {S_M \leq 0 < S_R}\\ F_R & & {S_R \leq 0} \end{array} \right.

  • 第三种
\begin{equation}  
\left\{  
             \begin{array}{**lr**}  
             x=\dfrac{3\pi}{2}(1+2t)\cos(\dfrac{3\pi}{2}(1+2t)), &  \\  
             y=s, & 0\leq s\leq L,|t|\leq1.\\  
             z=\dfrac{3\pi}{2}(1+2t)\sin(\dfrac{3\pi}{2}(1+2t)), &    
             \end{array}  
\right.  
\end{equation}  

2

else

\documentclass{article}
\usepackage[UTF8]{ctex}
\usepackage{threeparttable}
\usepackage[scale={0.9,0.9}]{geometry}

\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}%数学符号字体的设置
%\usepackage{bm}      % 粗斜体 \bm
\usepackage{bbm}     % \mathbbm, \mathbbss, \mathbbmtt
\usepackage{dsfont}  % \mathds
\usepackage{yfonts}  % \textfrak, \textswab
\usepackage{amssymb} % \mathfrak, \mathcal
\usepackage{mathrsfs}% \mathscr, 不同于\mathcal or \mathfrak 之类的英文花体字体%产生拉普拉斯变换式的字母

\begin{document}

\newcommand{\testmath}[1]{ \begin{tabular}{l}
    $#1{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ \\[-5pt]
    $#1{abcdefghijklmnopqrstuvwxyz\ 0123456789}$ 
\end{tabular}}
\newcommand{\testtext}[1]{ \begin{tabular}{l}
    #1{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \\[-5pt]
    #1{abcdefghijklmnopqrstuvwxyz\ 0123456789} 
\end{tabular}}

\begin{table}
\centering
\begin{threeparttable}
\begin{tabular}{c|l|c}
  \hline
  command          &       result            & package \\\hline
  default          & \testmath{}             & non        \\\hline
  \verb|\mathrm|   & \testmath{\mathrm}      & non        \\\hline
  \verb|\mathit|   & \testmath{\mathit}      & non        \\\hline
  \verb|\mathbf|   & \testmath{\mathbf}      & non        \\\hline
  \verb|\mathtt|   & \testmath{\mathtt}      & non        \\\hline
  \verb|\mathsf|   & \testtext{\textsf}      & non\tnote{a}        \\\hline
  \verb|\mathcal|  & \testmath{\mathcal}     & non\tnote{b}        \\\hline
  \verb|\mathbb|   & \testmath{\mathbb}      & \verb|\usepackage{amssymb}|\tnote{c}   \\\hline
  \verb|\mathfrak| & \testmath{\mathfrak}    & \verb|\usepackage{amssymb}|   \\\hline
%  \verb|\bm|       & \testmath{\bm}          & \verb|\usepackage{bm}|        \\\hline
  \verb|\mathbbm|  & \testmath{\mathbbm}     & \verb|\usepackage{bbm}|       \\\hline
  \verb|\mathbbmss|  & \testmath{\mathbbmss} & \verb|\usepackage{bbm}|       \\\hline
  \verb|\mathbbmtt|  & \testmath{\mathbbmtt} & \verb|\usepackage{bbm}|       \\\hline
  \verb|\mathscr|  & \testmath{\mathscr}     & \verb|\usepackage{mathrsfs}|  \\\hline
  \verb|\mathds|   & \testmath{\mathds}      & \verb|\usepackage{dsfont}|\tnote{d}  \\\hline
  \verb|\mathpzc|  & \testmath{\mathpzc}     & non\tnote{e}  \\\hline
  \verb|\textfrak| & \testtext{\textfrak}     & \verb|\usepackage{yfonts}|  \\\hline
  \verb|\textswab| & \testtext{\textswab}     & \verb|\usepackage{yfonts}|  \\\hline
\end{tabular}
\begin{tablenotes}
\item [a] \verb|\mathpzc| conflicts with \verb|\mathsf|, so here the result is in fact from \verb|\textsf|
       which gives the same result with \verb|\mathsf|.
\item [b] The useage of package \verb|eucal| can change the font appearence.
\item [c] The \verb|amssymb| package is a superset of the \verb|amsfonts| package.
\item [d] Using \verb|sans| option, \verb|\usepackage[sans]{dsfont}|, gives sans version font.
\item [e] Need the command: \verb|\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}|
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_23947237/article/details/102782099