• 我的LaTeX中文文档模板


    中文LaTeX处理模板

    • 环境MiTex内核
    • 编辑环境WinEdit

    源码如下:

    documentclass[a4paper,12pt]{article}
    
    usepackage{CJK}
    
    %设定字号
    
    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
    
    %下面的命令重定义页面边距,使其符合中文刊物习惯
    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*}{GBK}{song}
    %重定义定理环境
    
    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}{目录}  % 将Contents改为目录
    
    enewcommand{abstractname}{摘要}  % 将Abstract改为摘要
    
    enewcommand{
    efname}{参考文献}   % 将References改为参考文献
    
    enewcommand{indexname}{索引}
    
    enewcommand{figurename}{图}
    
    enewcommand{	ablename}{表}
    
    enewcommand{appendixname}{附录}
    
    enewcommand{algorithm}{算法}
    
    section{引言}
    par 这是第一段文字,我只是想试试效果如何。
    
    
    ewpage
    end{CJK*}
    end{document}
    
  • 相关阅读:
    JAVA BIO至NIO演进
    spring源码分析系列 (15) 设计模式解析
    java设计模式解析(1) Observer观察者模式
    spring源码分析系列 (8) FactoryBean工厂类机制
    spring如何解决单例循环依赖问题?
    spring源码分析系列
    java引用类型简述
    Redis简单延时队列
    MYSQL时间类别总结: TIMESTAMP、DATETIME、DATE、TIME、YEAR
    虚拟机安装centos7
  • 原文地址:https://www.cnblogs.com/bingo711x/p/6256138.html
Copyright © 2020-2023  润新知