我自己的XeTeX+xeCJK模板 - digwtx's Blog
我自己的XeTeX+xeCJK模板
%article basic
%纸张设置
\usepackage[top=1.2in,bottom=1.2in,left=1.2in,right=1in]{geometry}
%基本宏包
\usepackage[boldfont,slantfont,CJKnumber]{xeCJK}
\usepackage{indentfirst,CJKfntef} %缩进和修饰
\usepackage[colorlinks,linkcolor=black,xetex]{hyperref} %生成书签
%设置中文字体
\setCJKmainfont[BoldFont=SimHei,ItalicFont=KaiTi_GB2312]{SimSun}
%\setCJKmonofont[BoldFont=SimHei,ItalicFont=KaiTi_GB2312]{SimSun}
%\setCJKsansfont[BoldFont=SimHei,ItalicFont=KaiTi_GB2312]{Comic Sans MS}
%\setmainfont[BoldFont=SimHei,ItalicFont=KaiTi_GB2312]{Times New Roman}
%\setmonofont[BoldFont=SimHei,ItalicFont=KaiTi_GB2312]{SimSun}
%\setsansfont{Times New Roman}
%缩进及断行
\AtBeginDocument{
\parindent 2em
}
%设置行距
%\renewcommand{\baselinestretch}{1.38}
%\renewcommand{\baselinestretch}{1.2}
%标题样式
\usepackage[center,pagestyles]{titlesec}
\titleformat{\section}{\bfseries}{\S\,\thesection}{1em}{}
\titleformat{\subsection}{\it}{\S\,\thesubsection}{1em}{}
%\newpagestyle{main}{
%\sethead{\small\S\,\thesection\quad\sectiontitle}{}{$\cdot$~\thepage~$\cdot$}
%\setfoot{}{}{}\headrule}
%\pagestyle{main}
%定义字号
\newcommand{\wuhao}{\fontsize{10.5pt}{12.6pt}\selectfont} %% 五号字体
\newcommand{\xiaosi}{\fontsize{12pt}{18pt}\selectfont} %% 小四字体
\newcommand{\sihao}{\fontsize{14pt}{21pt}\selectfont} %% 四号字体
\newcommand{\xiaosan}{\fontsize{15pt}{22.5pt}\selectfont} %% 小三字体
\newcommand{\sanhao}{\fontsize{16pt}{24pt}\selectfont} %% 三号字体
\newcommand{\xiaoer}{\fontsize{18pt}{27pt}\selectfont} %% 小二字体
\newcommand{\erhao}{\fontsize{21pt}{30pt}\selectfont} %% 二号字体
*************************************************************************************************************
%Math Basic
\usepackage{amsmath,amsthm} %常用数学宏包
%重定义证明环境
\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
\pushQED{\qed}%
\normalfont \topsep6\p@\@plus6\p@ \labelsep1em\relax
\trivlist
\item[\hskip\labelsep\indent
\bfseries #1]\ignorespaces
}{%
\popQED\endtrivlist\@endpefalse
}
\makeatother
\renewcommand{\proofname}{\bf{证明}}
%重定义定理环境
\makeatletter
\def\@thm#1#2#3{%
\ifhmode\unskip\unskip\par\fi
\normalfont
\trivlist
\let\thmheadnl\relax
\let\thm@swap\@gobble
\thm@notefont{\fontseries\mddefault\upshape}%
\thm@headpunct{}% add period after heading
\thm@headsep 5\p@ plus\p@ minus\p@\relax
\thm@space@setup
#1% style overrides
\@topsep \thm@preskip % used by thm head
\@topsepadd \thm@postskip % used by \@endparenv
\def\@tempa{#2}\ifx\@empty\@tempa
\def\@tempa{\@oparg{\@begintheorem{#3}{}}[]}%
\else
\refstepcounter{#2}%
\def\@tempa{\@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]}%
\fi
\@tempa
}
\makeatother
\newtheorem{theorem}{{\rule{1.5em}{0ex} 定理}~}
\newtheorem{proposition}{{\rule{1.5em}{0ex} 命题}~}
\newtheorem{lemma}{{\rule{1.5em}{0ex} 引理}~}
\newtheorem{corollary}{{\rule{1.5em}{0ex} 推论}~}[theorem]
\newtheorem{definition}{{\rule{1.5em}{0ex} 定义}~}
\newtheorem{example}{{\rule{1.5em}{0ex} 例}~}
\newcommand{\ud}{\mathrm{d}} %正体d,用于积分
%公式编号
\renewcommand{\theequation}{\arabic{section}.\arabic{equation}}
\numberwithin{equation}{section}
2019年6月06日 13:46
Nowadays people use different type of status like sad whatsapp video status,sad whatsapp status,punjabi whatsapp status etc in their whatsapp. It make very attractive to your profile. So to get this visit here.
2020年2月22日 21:25
New programmer of the night and day time is invited for the factors. Improvement of the http://allessayvikings.com/essayvikings-com-review/ is seen here for the fitness for the blocks. Night time is spent for the writing and creative passages for the prisons in all shapes or the team.
2022年8月25日 23:19
Penn Foster offers practical, affordable programs for high school, college, and career school. Your education is here. penn foster login Learn about our programs today. If you are a current Penn Foster student and would like to access your course materials and take exams, click here to login. Penn Foster Student Login. It is so easy to find your way around the PennFoster website.
2022年9月30日 09:18
Penn Foster provides accessible and reasonably priced educational options for students at all levels, from high school to college and beyond. Come and further your education. Sign in to Penn Foster and find out about our courses right now! Click here to log in as a current Penn Foster student and gain access to your courses, assignments, and exams. In order to access Penn Foster, please enter your User Name and Password. The PennFoster website is extremely user-friendly. gartic phone
2023年12月07日 15:28
Engage in a competitive exercise, surpass your adversaries' intelligence, and secure remarkable rewards as you emerge victorious at the finish line.
2023年12月07日 15:29
fantastic blog! @<a href="https://skibidi-toilet.io">skibidi toilet</a>
2023年12月07日 15:29
Additionally, by consistently earning rewards for logging in and winning races, you can earn points toward skill advancement and gain access to exclusive collections of racing [url=https://skibidi-toilet.io]skibidi toilet[/url] cars.