CTeX 中文 article 模板

CTeX 中文 article 模板

LaTeX是一款非常优秀的科技论文排版系统,除了编写学术论文、幻灯片、书籍、报告等之外,甚至可以画图。当然,加入了中文的支持之后,可以非常方便的编辑一些带有大量数学公式、或参考文献引用的文章,在有些时候比word使用起来更加得心应手。

  • 在使用本文的LaTeX代码进行编译之前,建议安装好CTeX环境(适合中国人使用的TeX环境,带有中文支持),并使用TeXstudio编辑软件(跨平台的TeX软件 IDE,自带PDF预览、代码自动提示、语法高亮、对象反查,等)。
    Texstudio

  • 这是直接可以编译的tex源文件,中文模板(中文字体需要使用xelatex编译,否则只需要使用pdflatex编译即可),带中文书签,而且不会有乱码,

\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}
  • 生成的pdf文件大致如下,
    ctex模板

  • 几乎可以在文章的任何文本处添加中文,不受限制,编辑非常方便。

  • 19
    点赞
  • 131
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
ctex中文书籍模板是一种用于排版中文书籍的模板,在使用LaTeX进行文档排版时,我们可以通过使用ctex宏包来使用该模板。该模板提供了一些常用的排版功能和格式,使得我们可以方便地创建美观且规范的中文书籍。 ctex中文书籍模板的特点包括以下几点: 1. 中文支持:ctex中文书籍模板针对中文排版进行了优化,在使用时会自动处理中英文字体、字距以及断行等问题,可以有效避免中文排版常见的问题。 2. 字体设置:ctex中文书籍模板允许我们灵活地设置中文字体,可以根据需要使用系统中的字体或者自定义字体。同时,该模板还考虑了字号、字体间距等细节,使得排版效果更加美观。 3. 格式规范:ctex中文书籍模板遵循了一些中文排版的规范,如段落首行缩进、标点符号的使用、章节标题的格式等。使用该模板可以帮助我们轻松地符合中文排版的要求。 4. 附加功能:除了基本的中文排版之外,ctex中文书籍模板还提供了一些附加功能,如封面设计、页眉页脚设置、目录生成等。这些功能可以帮助我们更好地组织书籍结构和内容。 总而言之,ctex中文书籍模板是一个方便实用的中文排版工具,它能够帮助我们更好地处理中文排版问题,创建出符合中文书籍排版规范的文档。无论是学术著作、专业手册还是个人创作,使用ctex中文书籍模板都可以帮助我们提高工作效率和文档质量。
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值