Latex-header and footer settings (both Chinese and English are applicable)

code show as below:

\usepackage{
    
    CJK}%汉字包

\usepackage{
    
    geometry}%页面边距
\geometry{
    
    a4paper,scale=0.85}

\usepackage{
    
    fancyhdr}%页眉页脚设定
\pagestyle{
    
    fancy}
\fancyhead{
    
    } %页眉清空
\fancyfoot{
    
    } %页脚清空
\fancyhead[L]{
    
    $\cdot114\cdot$}  %页眉左方
\fancyhead[C]{
    
    离\ 散\ 数\ 学}    %页眉中间
\fancyfoot[C]{
    
    -\ {
    
    \thepage}\ -} %页脚中间

Guess you like

Origin blog.csdn.net/Williamcsj/article/details/107235132