zoukankan      html  css  js  c++  java
  • latex中文模板

    documentclass[UTF8,a4paper,10pt, twocolumn]{ctexart}
    usepackage[left=2.50cm, right=2.50cm, top=2.50cm, bottom=2.50cm]{geometry}
    
    % -- text font --
    % compile using Xelatex
    
    %setmainfont{Microsoft YaHei}  % 微软雅黑
    %setmainfont{YouYuan}  % 幼圆    
    %setmainfont{NSimSun}  % 新宋体
    %setmainfont{KaiTi}    % 楷体
    %setmainfont{SimSun}   % 宋体
    %setmainfont{SimHei}   % 黑体
    
    usepackage{times}
    %usepackage{mathpazo}
    %usepackage{fourier}
    %usepackage{charter}
    %usepackage{helvet}
    
    usepackage{amsmath, amsfonts, amssymb} % math equations, symbols
    usepackage[english]{babel}
    usepackage{color}      % color content
    usepackage{graphicx}   % import figures
    usepackage{url}        % hyperlinks
    usepackage{bm}         % bold type for equations
    usepackage{multirow}
    usepackage{booktabs}
    usepackage{epstopdf}
    usepackage{epsfig}
    usepackage{algorithm}
    usepackage{algorithmic}
    
    enewcommand{algorithmicrequire}{ 	extbf{Input:}}     % use Input in the format of Algorithm  
    
    enewcommand{algorithmicensure}{ 	extbf{Initialize:}} % use Initialize in the format of Algorithm  
    
    enewcommand{algorithmicreturn}{ 	extbf{Output:}}     % use Output in the format of Algorithm  
    
    usepackage{fancyhdr}   % 设置页眉、页脚
    %pagestyle{fancy}
    lhead{}
    chead{}
    
    head{includegraphics[width=1.2cm]{fig/ZJU_BLUE.eps}}
    lfoot{}
    cfoot{}
    
    foot{}
    
    usepackage{draftwatermark}         % 所有页加水印
    %usepackage[firstpage]{draftwatermark} % 只有第一页加水印
    SetWatermarkText{Water-Mark}           % 设置水印内容
    SetWatermarkText{includegraphics{fig/ZJDX-WaterMark.eps}}         % 设置水印logo
    SetWatermarkLightness{0.9}             % 设置水印透明度 0-1
    SetWatermarkScale{1}                   % 设置水印大小 0-1    
    
    usepackage{hyperref}   % bookmarks
    hypersetup{colorlinks, bookmarks, unicode} % unicode
    
    
    	itle{中文标题Title}
    author{ 作者 Author 	hanks{作者介绍 Brief introduction} }
    date{	oday}
    
    egin{document}
        maketitle
        	hispagestyle{fancy}
    
    section{章节 Section} label{sec:one}
        this is the Section 
    ef{sec:one}
        输入中文内容 Your text goes here. \
        ABCDEFGHIJKLMNOPQRSTUVWXYZ \
        $mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ \
        abcdefghijklmnopqrstuvwxyz \
        The quick brown fox jumps over the lazy dog.\
        1234567890
        egin{align}
            & ABCDEFGHIJKLMNOPQRSTUVWXYZ label{eq:alphabet} \
            & abcdefghijklmnopqrstuvwxyz \
        & alpha eta gamma delta epsilon varepsilon zeta eta 	heta lambda mu 
    u xi pi 
    ho sigma 	au upsilon phi varphi chi psi omega  
        end{align}
        egin{align}
         egin{bmatrix}
            1 & 2 \
            3 & 4 \
        end{bmatrix}
         egin{pmatrix}
        1 & 2 \
        3 & 4 \
        end{pmatrix}
         egin{matrix}
        1 & 2 \
        3 & 4 \
        end{matrix}
        end{align}
    
        egin{equation}
        A_{t+1} = argmin_A  mathcal{L}(A,E_t,Delta	au_t,W_t,b_t), 
    onumber
        end{equation}
    
        egin{equation}
        egin{aligned} label{eq:rasl}
        min_{A,E,Delta 	au} quad & sum_{i=1}^{N}||A_i||_* + lambda ||E_i||_1  \
        mathrm{s.t.} quad & D_i circ 	au_i + sum_{k=1}^{n_i} J_{ik} Delta 	au_i epsilon_k epsilon_k^T = A_i + E_i, \
        & i = 1,2,cdots,N. 
        end{aligned}
        end{equation}
    
        egin{table}[htbp]
            caption{Title of table} label{tab:table}
            centering
            addtolength{	abcolsep}{-0mm} % 控制列间距
            egin{tabular}{ccccc}
                	oprule[0.75pt]    % package booktabs
                multicolumn{4}{c}{table head} \
                midrule[0.5pt]    % package booktabs
                multirow{4}{*}{text} & 1 & 2 & 3 & 4 \  % package multirow
                & 5 & 6 & 7 & 8 \
                cmidrule[0.5pt]{2-4}    % package booktabs
                & 9 & 10 & 11 & 12 \
                & 13 & 14 & 15 & 16 \
                ottomrule[0.75pt]    % package booktabs
            end{tabular}
        end{table}
        引用: Eq. eqref{eq:alphabet}, Fig. 
    ef{figure:zju1},  \
        egin{figure}[htbp] 
            centering
            includegraphics[width=0.2	extwidth]{fig/ZJU_BLACK.eps}
            includegraphics[width=0.2	extwidth]{fig/ZJU_BLUE.eps}
            caption{figure 1}        
            label{figure:zju1}
        end{figure}
    
         Fig. 
    ef{figure:zju2}
        egin{figure}[htbp]         
            centering
            includegraphics[width=0.2	extwidth]{fig/ZJU_BLACK.eps}
            includegraphics[width=0.2	extwidth]{fig/ZJU_BLUE.eps}
            caption{figure 2}
            label{figure:zju2}        
        end{figure}
    
        egin{algorithm}
            caption{Title of the Algorithm}
            label{algo:ref}
            egin{algorithmic}[1]
                REQUIRE some words.  % this command shows "Input"
                ENSURE ~\           % this command shows "Initialized"
                some text goes here ... \
                WHILE {emph{not converged}}
                STATE ... \  % line number at left side
                ENDWHILE
                RETURN this is the lat part.  % this command shows "Output"
            end{algorithmic}
        end{algorithm}
    
    end{document}
  • 相关阅读:
    页面加载完后要执行的代码
    作为90后迈向成为一个优秀的男人系列之一
    今天看的一本书关于复制威力总结
    Ext.Net弹出窗口回写父窗口
    div 显示滚动条与div显示隐藏的CSS代码
    你可以向马云学习什么
    灵活多变的工作台页面配置Spring.Net.Framwork春天快速开发平台
    ROW_NUMBER() OVER函数的基本用法
    EXTJS4官方文档翻译系列一:类系统和编码规范
    SQLserver2008全文检索使用方法
  • 原文地址:https://www.cnblogs.com/liyafei/p/8628556.html
Copyright © 2011-2022 走看看