• 自己常用的latex模板




    documentclass[a4paper, 11pt]{article}

    %%%%%% 导入包 %%%%%%
    usepackage{CJKutf8}
    usepackage{graphicx}
    usepackage[unicode]{hyperref}
    usepackage{xcolor}
    usepackage{cite}
    usepackage{indentfirst}

    %%%%%% 设置字号 %%%%%%
    ewcommand{chuhao}{fontsize{42pt}{aselineskip}selectfont}
    ewcommand{xiaochuhao}{fontsize{36pt}{aselineskip}selectfont}
    ewcommand{yihao}{fontsize{28pt}{aselineskip}selectfont}
    ewcommand{erhao}{fontsize{21pt}{aselineskip}selectfont}
    ewcommand{xiaoerhao}{fontsize{18pt}{aselineskip}selectfont}
    ewcommand{sanhao}{fontsize{15.75pt}{aselineskip}selectfont}
    ewcommand{sihao}{fontsize{14pt}{aselineskip}selectfont}
    ewcommand{xiaosihao}{fontsize{12pt}{aselineskip}selectfont}
    ewcommand{wuhao}{fontsize{10.5pt}{aselineskip}selectfont}
    ewcommand{xiaowuhao}{fontsize{9pt}{aselineskip}selectfont}
    ewcommand{liuhao}{fontsize{7.875pt}{aselineskip}selectfont}
    ewcommand{qihao}{fontsize{5.25pt}{aselineskip}selectfont}

    %%%% 设置 section 属性 %%%%
    makeatletter
    enewcommandsection{@startsection{section}{1}{z@}%
    {-1.5ex @plus -.5ex @minus -.2ex}%
    {.5ex @plus .1ex}%
    { ormalfontsihaoCJKfamily{hei}}}
    makeatother

    %%%% 设置 subsection 属性 %%%%
    makeatletter
    enewcommandsubsection{@startsection{subsection}{1}{z@}%
    {-1.25ex @plus -.5ex @minus -.2ex}%
    {.4ex @plus .1ex}%
    { ormalfontxiaosihaoCJKfamily{hei}}}
    makeatother

    %%%% 设置 subsubsection 属性 %%%%
    makeatletter
    enewcommandsubsubsection{@startsection{subsubsection}{1}{z@}%
    {-1ex @plus -.5ex @minus -.2ex}%
    {.3ex @plus .1ex}%
    { ormalfontxiaosihaoCJKfamily{hei}}}
    makeatother

    %%%% 段落首行缩进两个字 %%%%
    makeatletter
    let@afterindentfalse@afterindenttrue
    @afterindenttrue
    makeatother
    setlength{parindent}{2em}  %中文缩进两个汉字位


    %%%% 下面的命令重定义页面边距,使其符合中文刊物习惯 %%%%
    addtolength{ opmargin}{-54pt}
    setlength{oddsidemargin}{0.63cm}  % 3.17cm - 1 inch
    setlength{evensidemargin}{oddsidemargin}
    setlength{ extwidth}{14.66cm}
    setlength{ extheight}{24.00cm}    % 24.62

    %%%% 下面的命令设置行间距与段落间距 %%%%
    linespread{1.4}
    % setlength{parskip}{1ex}
    setlength{parskip}{0.5aselineskip}

    %%%% 正文开始 %%%%
    egin{document}
    egin{CJK}{UTF8}{gbsn}

    %%%% 定理类环境的定义 %%%%
    ewtheorem{example}{例}             % 整体编号
    ewtheorem{algorithm}{算法}
    ewtheorem{theorem}{定理}[section]  % 按 section 编号
    ewtheorem{definition}{定义}
    ewtheorem{axiom}{公理}
    ewtheorem{property}{性质}
    ewtheorem{proposition}{命题}
    ewtheorem{lemma}{引理}
    ewtheorem{corollary}{推论}
    ewtheorem{remark}{注解}
    ewtheorem{condition}{条件}
    ewtheorem{conclusion}{结论}
    ewtheorem{assumption}{假设}

    %%%% 重定义 %%%%
    enewcommand{contentsname}{centerline{目 录}}  % 将Contents改为目录
    enewcommand{abstractname}{摘要}  % 将Abstract改为摘要
    enewcommand{ efname}{参考文献}   % 将References改为参考文献
    enewcommand{indexname}{索引}
    enewcommand{figurename}{图}
    enewcommand{ ablename}{表}
    enewcommand{appendixname}{附录}
    enewcommand{algorithm}{算法}


    %%%% 定义标题格式,包括title,author,affiliation,email等 %%%%
    itle{f{erhao{配电网节能项目\无功补偿控制器、电能质量治理及监测装置 \和主站系统通讯规约}}}


    author{傅海平footnote{电子邮件: haipingf@gmail.com,学号: 201128013229018}\[2ex]
    xiaosihao 中国科学院计算技术研究所\[2ex]
    }
    date{2012年5月}


    %%%% 以下部分是正文 %%%%
    maketitle
    ewpage
    ableofcontents
    ewpage




    end{CJK}
    end{document}

  • 相关阅读:
    2021.11.22 图书管理系统
    2021.12.2 综合案例建模分析
    78 内核级命令实现示例
    74 键盘驱动程序的完善
    81 文件系统设计与实现(一)
    浮点数在内存中的表示
    75 Shell 任务的实现(上)
    79 硬盘驱动程序设计(上)
    浮点数在内存中的表示
    77 Shell 任务的实现(下)
  • 原文地址:https://www.cnblogs.com/wangdgy/p/6365736.html
Copyright © 2020-2023  润新知