2023年7月18日发(作者:)
中⽂单栏latex模板天下苦word久矣!本模板主体内容来⾃互联⽹,感谢开源精神。本⼈添加了参考⽂献使⽤⽅法。单栏⽂档latex模板,较为通⽤。环境:texstudio+texlive.%保存为UTF-8编码格式%⽤xelatex编译
documentclass[UTF8,a4paper,12pt]{ctexart}usepackage[left=2.50cm, right=2.50cm, top=2.50cm, bottom=2.50cm]{geometry} %页边距CTEXsetup[format={Largebfseries}]{section} %设置章标题字号为Large,居左%CTEXsetup[number={chinese{section}}]{section}%CTEXsetup[name={(,)}]{subsection}%CTEXsetup[number={chinese{subsection}}]{subsection}%CTEXsetup[name={(,)}]{subsubsection}%CTEXsetup[number=arabic{subsubsection}]{subsubsection} %以上四⾏为各级标题样式设置,可根据需要做修改
%linespread{1.5} %设置全⽂⾏间距
%usepackage[english]{babel}%usepackage{float} %放弃美学排版图表usepackage{fontspec} %修改字体usepackage{amsmath, amsfonts, amssymb} % 数学公式相关宏包usepackage{color} % color contentusepackage{graphicx} % 导⼊图⽚usepackage{subfigure} % 并排⼦图usepackage{url} % 超链接usepackage{bm} % 加粗部分公式,⽐如bm{aaa}aaausepackage{multirow}usepackage{booktabs}usepackage{epstopdf}usepackage{epsfig}usepackage{longtable} %长表格usepackage{supertabular}%跨页表格usepackage{algorithm}usepackage{algorithmic}usepackage{changepage}
%%%%%%%%%%%%%%%%%%%%%%%% -- text font --% compile using Xelatex%%%%%%%%%%%%%%%%%%%%%%%% -- 中⽂字体 --%setCJKmainfont{Microsoft YaHei} % 微软雅⿊%setCJKmainfont{YouYuan} % 幼圆%setCJKmainfont{NSimSun} % 新宋体%setCJKmainfont{KaiTi} % 楷体setCJKmainfont[AutoFakeBold=true]{SimSun} % 宋体%setCJKmainfont{SimHei} % ⿊体
% -- 英⽂字体 --setmainfont{Times New Roman}%setmainfont{DejaVu Sans}%setmainfont{Latin Modern Mono}%setmainfont{Consolas}%%renewcommand{algorithmicrequire}{ textbf{Input:}} % use Input in the format of Algorithmrenewcommand{algorithmicensure}{ textbf{Initialize:}} % use Initialize in the format of Algorithmrenewcommand{algorithmicreturn}{ textbf{Output:}} % use Output in the format of Algorithmrenewcommand{abstractname}{textbf{large {摘quad 要}}} %更改摘要⼆字的样式newcommand{xiaosi}{fontsize{12pt}{baselineskip}} %xiaosi代替设置12pt字号命令,不加selectfont,⾏间距设置⽆效newcommand{wuhao}{fontsize{10.5pt}{10.5pt}selectfont}
usepackage{fancyhdr} %设置全⽂页眉、页脚的格式pagestyle{fancy}lhead{} %页眉左边设为空chead{} %页眉中间rhead{} %页眉右边%rhead{includegraphics[width=1.2cm]{}} %页眉右侧放置logolfoot{} %页脚左边cfoot{thepage} %页脚中间rfoot{} %页脚右边
%%%%%%%%%%%%%%%%%%%%%%%% 设置⽔印%%%%%%%%%%%%%%%%%%%%%%%%usepackage{draftwatermark} % 所有页加⽔印%usepackage[firstpage]{draftwatermark} % 只有第⼀页加⽔印% SetWatermarkText{Water-Mark} % 设置⽔印内容% SetWatermarkText{includegraphics{fig/}} % 设置⽔印logo% SetWatermarkLightness{0.9} % 设置⽔印透明度 0-1% SetWatermarkScale{1} % 设置⽔印⼤⼩ 0-1
usepackage{hyperref} %bookmarkshypersetup{colorlinks, bookmarks, unicode} %unicode
title{textbf{Large{中⽂报告LaTeX{}模板}}}author{ Authorthanks{footnotes} }%date{today}%date{2021/10/21}
begin{document}
maketitle%tableofcontents
begin{abstract}本模板可以提供⼀般性单栏⽂档的⽣成,可以根据需要选择是否要⽬录、摘要,可⾃⾏选择⽇期⽣成⽅式,参考⽂献使⽤交叉引⽤条⽬形式使⽤,便于编辑和管理。务必注意,latex编译器需要选择{abstract}
begin{center}large{textbf{Abstract}}end{center}
begin{adjustwidth}{1cm}{1cm}hspace{1.5em}Here is the first par. of is the first par. of abstract.
noindenthspace{1.5em}Here is the second par. of is the second par. of {adjustwidth}
%thispagestyle{empty} %本页不显⽰页码%newpage %分页%%tableofcontentsthispagestyle{empty}%newpage%setcounter{page}{1} %从下⾯开始编页,页脚格式为导⾔部分设置的格式
section{第⼀部分}这是第⼀部分subsection{第⼀部分的⼦部分}这⾥是第⼀部分的⼦部分
section{第⼆部分}这⾥是第⼆部分 cite{ref1,ref2}subsection{第⼆部分的⼦部分}这⾥是第⼆部分的⼦部分
section{⼀些⼯具}插⼊公式begin{equation}label{eq} gamma _2^{text{C}} = frac{{{P_{RT}}g}}{{{P_{BT}}d_{_{{B_2}2}}^{ - alpha } + {N_0}}}end{equation}
%插⼊图⽚%begin{figure}[H] %*表⽰可跨栏,如果不需要可去掉%centering%subfigure[$sum {{I_C}} < {I_B}$]{% includegraphics[width=7cm]{}}% %hspace{0cm} %两张图⽚之间的距离%%hfill %撑满整⾏%centering%subfigure[$sum {{I_C}} > {I_B}$]{% includegraphics[width=7cm]{}}%caption{系统的模式选择}label{fig}%end{figure}
插⼊表格begin{table}[H] wuhao %局部字体设置⼤⼩ centering caption{系统模型符号}label{tab} begin{tabular}{c|c} toprule %设置为顶线默认格式 加粗 % after : hline or cline{col1-col2} cline{col3-col4} ... 符号 & 说明 hline %普通横线 ${{B_1}mbox{、}{B_2}}$ & 基站的下标表⽰ ${C_1}mbox{、}{C_2}$ & 蜂窝⽤户的下标表⽰ $D$ & D2D⽤户的下标表⽰ $R$ & 中继⽤户的下标表⽰ ${P_{it}}left( {i = B,C,D,R} right)$ & 终端$i$的发射功率 ${d_{ij}}(i,j = {B_k},{C_k},1,2,R;i ne j,k = 1,2)$ & 设备$i$到设备$j$的距离 ${h_{ij}}(i,j = {B_k},{C_k},1,2,R;i ne j,k = 1,2)$ &$i$-$j$ 链路的信道系数 ${n_i}left( {{n_i}sim Nleft( {mu ,{N_0}} right)} right)$ & ⾼斯⽩噪声 ${P_{ij}} = {P_{iT}}d_{ij}^{ - alpha }$ & 终端$j$收到的终端$i$发送的信号功率 $alpha$ & 路径衰落系数 bottomrule %设置为底线默认格式 end{tabular}end{table}
%引⽤:图ref{fig},式eqref{eq},表ref{tab}begin{thebibliography}{99} setlength{parskip}{0pt} %段落之间的竖直距离 bibitem{ref1}吴承恩. 西游记~[M], 明14XX年. bibitem{ref2} ⽞奘. ⼤唐西域记学报~[J], 唐6XX年, 1(2): {thebibliography}end{document}编译结果如下图
发布者:admin,转转请注明出处:http://www.yc00.com/web/1689641287a273089.html
评论列表(0条)