我自己的XeTeX+xeCJK模板 - digwtx's Blog

我自己的XeTeX+xeCJK模板

digwtx posted @ 2009年6月05日 01:19 in TeX , 1755 阅读

%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}

Avatar_small
punjabi sad status v 说:
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.

Avatar_small
Jamie Hampton 说:
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.

Avatar_small
penn foster login 说:
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.

Avatar_small
keagand 说:
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

Avatar_small
skibidi toilet 说:
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.

Avatar_small
skibidi toilet 说:
2023年12月07日 15:29

fantastic blog! @<a href="https://skibidi-toilet.io">skibidi toilet</a>

Avatar_small
Reet 说:
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.

Avatar_small
1000 kwh battery 说:
2024年7月04日 19:50

Everything considered around overwhelming subject, in every beast sense, perilous signs are I couldn't say whether they are only possible as cerebrum blowing as your work out. youibot automatic trolley amr robot

Avatar_small
Simone Sanger 说:
2024年10月09日 11:13

I recently worked on my own XeTeX + xeCJK template, and I have to say, it's been a game-changer for my typesetting projects! The flexibility and support for CJK characters make it incredibly useful for creating documents that require both Chinese and English text. Speaking of games, if you enjoy fast-paced challenges, the [slope game](https://slopegame.lol/) is an excellent way to test your reflexes while having fun. Just like fine-tuning a template, mastering Slope requires practice and precision to navigate through obstacles successfully.

Avatar_small
Slope Game 说:
2024年10月09日 11:14

It sounds like you're doing some impressive work with your XeTeX + xeCJK template! This combination is great for handling complex typesetting, especially when working with Chinese, Japanese, or Korean characters alongside English.

Avatar_small
AmandaHunt 说:
2024年10月14日 14:29

This article is absolutely fantastic! The way you blend creativity with practical tips makes it not only enjoyable to read but also incredibly inspiring. Your passion shines through every word, and I love how you encourage readers to embrace their own DIY journeys. Keep up the amazing work! [url=https://retrobowl-game.io/]Retro bowl[/url]

Avatar_small
AmandaHunt 说:
2024年10月14日 14:30

<a href="https://retrobowl-game.io/">Retro bowl</a>
[url=https://retrobowl-game.io/]Retro bowl[/url]
[Retro bowl](https://retrobowl-game.io/)

https://retrobowl-game.io/

Retro bowl

[https://retrobowl-game.io/ retro bowl]

Avatar_small
wordle unlimited 说:
2024年10月21日 16:15

我自己的XeTeX+xeCJK模板" 这个主题很有趣!使用XeTeX和xeCJK模板可以有效地处理中文排版问题,尤其是在处理复杂的汉字和多种字体时。这个模板的灵活性和强大功能使得它非常适合学术论文、书籍以及其他需要精细排版的文档。通过这个模板,用户不仅能够享受到高质量的排版效果,还能更好地控制文档的整体风格。

Avatar_small
moto x3m 说:
2024年11月04日 15:04

我自己的XeTeX + xeCJK模板是一个非常实用的工具,特别适合需要处理中文文档的用户。这个模板不仅支持多种字体和排版格式,还能很好地处理中文字符的显示,确保文档的美观和可读性。


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee