\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}
\renewcommand{\algorithmicrequire}{ \textbf{Input:}} % use Input in the format of Algorithm
\renewcommand{\algorithmicensure}{ \textbf{Initialize:}} % use Initialize in the format of Algorithm
\renewcommand{\algorithmicreturn}{ \textbf{Output:}} % use Output in the format of Algorithm \usepackage{fancyhdr} % 设置页眉、页脚
%\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\includegraphics[width=1.2cm]{fig/ZJU_BLUE.eps}}
\lfoot{}
\cfoot{}
\rfoot{} \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 \title{中文标题Title}
\author{ 作者 Author \thanks{作者介绍 Brief introduction} }
\date{\today} \begin{document}
\maketitle
\thispagestyle{fancy} \section{章节 Section} \label{sec:one}
this is the Section \ref{sec:one}
输入中文内容 Your text goes here. \\
ABCDEFGHIJKLMNOPQRSTUVWXYZ \\
$\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ \\
abcdefghijklmnopqrstuvwxyz \\
The quick brown fox jumps over the lazy dog.\\
1234567890
\begin{align}
& ABCDEFGHIJKLMNOPQRSTUVWXYZ \label{eq:alphabet} \\
& abcdefghijklmnopqrstuvwxyz \\
& \alpha \beta \gamma \delta \epsilon \varepsilon \zeta \eta \theta \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \varphi \chi \psi \omega
\end{align}
\begin{align}
\begin{bmatrix}
1 & 2 \\
3 & 4 \\
\end{bmatrix}
\begin{pmatrix}
1 & 2 \\
3 & 4 \\
\end{pmatrix}
\begin{matrix}
1 & 2 \\
3 & 4 \\
\end{matrix}
\end{align} \begin{equation}
A_{t+1} = \arg\min_A \ \mathcal{L}(A,E_t,\Delta\tau_t,W_t,b_t), \nonumber
\end{equation} \begin{equation}
\begin{aligned} \label{eq:rasl}
\min_{A,E,\Delta \tau} \quad & \sum_{i=1}^{N}||A_i||_* + \lambda ||E_i||_1 \\
\mathrm{s.t.} \quad & D_i \circ \tau_i + \sum_{k=1}^{n_i} J_{ik} \Delta \tau_i \epsilon_k \epsilon_k^T = A_i + E_i, \\
& i = 1,2,\cdots,N.
\end{aligned}
\end{equation} \begin{table}[htbp]
\caption{Title of table} \label{tab:table}
\centering
\addtolength{\tabcolsep}{-0mm} % 控制列间距
\begin{tabular}{ccccc}
\toprule[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 \\
\bottomrule[0.75pt] % package booktabs
\end{tabular}
\end{table}
引用: Eq. \eqref{eq:alphabet}, Fig. \ref{figure:zju1}, \\
\begin{figure}[htbp]
\centering
\includegraphics[width=0.2\textwidth]{fig/ZJU_BLACK.eps}
\includegraphics[width=0.2\textwidth]{fig/ZJU_BLUE.eps}
\caption{figure 1}
\label{figure:zju1}
\end{figure} Fig. \ref{figure:zju2}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.2\textwidth]{fig/ZJU_BLACK.eps}
\includegraphics[width=0.2\textwidth]{fig/ZJU_BLUE.eps}
\caption{figure 2}
\label{figure:zju2}
\end{figure} \begin{algorithm}
\caption{Title of the Algorithm}
\label{algo:ref}
\begin{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}

latex中文模板的更多相关文章

  1. Mac LaTex中文环境搭建

    为了在博客上写公式,折腾了一晚上Mac上的LaTex的环境搭建,本文对步骤进行记录. 系统:Mac OSX 10.10.5 软件准备 1) MacTex 2015 Distribution (Tex的 ...

  2. Ubuntu下LaTex中文环境安装与配置

    转载自:http://www.linuxidc.com/Linux/2012-06/62456.htm LaTeX是一个强大的排版软件,但是其最初只是为英文排版而设计的.为了使其能够胜任中文排版的重任 ...

  3. Latex: IEEEtrans模板下 扩大标题宽度

    参考: Extending side margins for Title section in IEEEtrans document class Latex: IEEEtrans模板下 扩大标题宽度 ...

  4. Latex中文utf-8编码的三种方式

    我们知道Latex一般用CJK和CTEX宏包支持中文编辑,CJK和CTEX的默认编码是GBK,而windows下的默然编码就是GBK,因此CJK和CTEX不需要特殊配置就可以直接支持中文Latex编译 ...

  5. latex中文支持ubuntu

    latex安装: sudo apt install texlive-full 中文字体安装: sudo apt-get install latex-cjk-all      字体包中包含bsmi,bk ...

  6. latex中文环境配置(针对北大模板,开题报告+中期答辩+毕业论文)

    最近自己在忙着开题,中文环境真的是emm 以下只针对北大的毕业论文模板,至于其他的中文环境没有尝试 主要是用不同的latex编辑器会报不同的错误,当然我最后还是统一成了pdflatex,经过无数次尝试 ...

  7. LaTex中文article模板(支持代码、数学、TikZ)

    代码 请使用XeLatex编译 main.tex \documentclass{article} \usepackage{ctex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ...

  8. Atom+latex+中文环境

    最近在写论文,的路上.很多idea都受限于官方给的模板不能够添加自己即时的中文idea,所以添加中文到文献中很有必要,这里记录自己添加中文的几个小步骤 1. 受限将atom中的latex packag ...

  9. Jupyter Notebook 导出PDF与Latex中文支持

    Jupyter Notebook 最近搞机器学习用到了Jupyter Notebook. 作为一个实时记事本,有时需要将内容导出为PDF. 但是,Jupyter Notebook自带的File -&g ...

随机推荐

  1. UIWindow 详解及使用场景

    首先来看一下UIWindow 继承关系 方法和属性 NS_CLASS_AVAILABLE_IOS(2_0) @interface UIWindow : UIView //window的屏幕,默认是 [ ...

  2. 为什么有这么多 Python版本

    Python是出类拔萃的 然而,这是一句非常模棱两可的话.这里的"Python"到底指的是什么? 是Python的抽象接口吗?是Python的通用实现CPython吗(不要把CPy ...

  3. Python OS 文件/目录方法

    Python OS 文件/目录方法 os 模块提供了非常丰富的方法用来处理文件和目录.常用的方法如下表所示: 序号 方法及描述 1 os.access(path, mode) 检验权限模式 2 os. ...

  4. 为android编译libsocket的脚本

    #!/bin/bash U32=0 #编译64位arm时 U32=0   编译32位arm时 U32=1 其他参数不需要变动 TARGET=android-24 HOST=darwin-x86_64 ...

  5. Elasticsearch学习之深入搜索四 --- cross-fields搜索

    1. cross-fields搜索 一个唯一标识,跨了多个field.比如一个人,标识,是姓名:一个建筑,它的标识是地址.姓名可以散落在多个field中,比如first_name和last_name中 ...

  6. U盘安装Centos7.1操作系统的问题记录

    需要的软硬件环境>>>>>>>>>>>>>>>>>1.服务器(笔者用的笔记本).U盘2.Cento ...

  7. 【CF708D】Incorrect Flow 最小费用可行流

    [CF708D]Incorrect Flow 题意:给你一个点数为n,边数为m的流网络,每条边有一个容量c和流量f,这个网络可能是不合法的.你可以花费1的代价使c或f减少或增加1,可以修改无限次.你不 ...

  8. oracle fm格式化

    select to_char(0.56,'FM999,999,990.00' ) from dual 其中 9代表如果存在数字则显示数字,不存在显示空格 其中 0代表如果存在数字则显示数字,不存在则显 ...

  9. iOS8新特性(2)——UIPopoverController和UIPresentationController

    一.以往使用 UIPopoverController 都是只在iPad上使用 /** * UIPopoverController 只能用于iPad,上,iPhone上使用会崩溃 */ -(void)o ...

  10. 2018C语言第二次作业

    一.学习内容总结 1.指针是一种数据类型,同样占有空间,其存储的是内存地址: 2.定义指针变量要在变量名之前加“*”字符表示: 3.“&”是取地址运算符,“*”是间接运算符: (注:声名和使用 ...