Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
*.dmp
*.dvi
*.fd
*.fdb_latexmk
*.fls
*.glg
*.glo
*.gls
*.hd
Expand All @@ -14,13 +17,17 @@
*.swp
*.synctex.gz
*.synctex.gz(busy)
*.synctex(busy)
*.tmp
*.toc
*.ver
*.xdv
*.zip
*~

# Mac OS X
.DS_Store

# CJKpunct

CJKpunct/README.md
Expand Down Expand Up @@ -100,6 +107,7 @@ tool/zhmCJK.tfm
xeCJK/README.md
xeCJK/UnicodeData.txt
xeCJK/build/
xeCJK/xeCJK-en.pdf
xeCJK/xeCJK-example-CJKecglue.tex
xeCJK/xeCJK-example-CJKfntef.tex
xeCJK/xeCJK-example-CM.tex
Expand Down Expand Up @@ -187,8 +195,5 @@ zhnumber/zhnumber.sty
zhspacing/build/
zhspacing/zhs-man.pdf

# Mac OS X
.DS_Store

# Liam Huang
ctex/ctex-test*
50 changes: 32 additions & 18 deletions ctex/ctex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -11264,19 +11264,15 @@ Copyright and Licence
\ProcessOptions
\@namedef{[email protected]}{9999/99/99}
\LoadClass{l3doc}
\RequirePackage[UTF8, punct = kaiming, heading, fontset = none,
linespread = 1.2, sub3section]{ctex}
\RequirePackage[UTF8, punct=kaiming, heading, linespread=1.2, sub3section]{ctex}
\ifxetex
\xeCJKsetup{AutoFakeBold=false}
\fi
\ctexset{
fontset,
abstractname = 简介,
indexname = 代码索引,
section = {
format = \Large\bfseries\raggedright,
name = {第,节},
},
section/format = \Large\bfseries\raggedright,
section/name = {第,节},
}
\RequirePackage[toc]{multitoc}
\RequirePackage{geometry}
Expand All @@ -11289,17 +11285,30 @@ Copyright and Licence
\RequirePackage{caption}
\RequirePackage{fancyvrb-ex}
\RequirePackage{zref-base}
\geometry{includemp,hmargin={0mm,15mm},vmargin={25mm,15mm},footskip=7mm}
\hypersetup{pdfstartview=FitH,bookmarksdepth=subparagraph}
\geometry{includemp, hmargin={0mm,15mm}, vmargin={25mm,15mm}, footskip=7mm}
\hypersetup{pdfstartview=FitH, bookmarksdepth=subparagraph}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{2}
\newcommand*\email{\nolinkurl}
\setmainfont{TeX Gyre Pagella}
\setsansfont{TeX Gyre Heros}
\setmonofont[
HyphenChar = None ,
UprightFont=* Light, BoldFont=* Bold,
SlantedFont=* Light Oblique]{CMU Typewriter Text}
\setmainfont{texgyrepagella}[
Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic]
\setsansfont{texgyreheros}[
Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic]
\setmonofont{cmun}[
Extension = .otf,
UprightFont = *btl,
BoldFont = *tb,
ItalicFont = *bto,
BoldItalicFont = *tx,
HyphenChar = None]
\setmathfont{texgyrepagella-math.otf}
\captionsetup{strut=off, labelsep=quad, labelfont+=bf}
%% <--- http://tex.stackexchange.com/a/40896
Expand Down Expand Up @@ -11824,10 +11833,15 @@ Copyright and Licence
#1 \g__codedoc_module_name_tl
}
}
\cs_new_protected:Npn \@@_replace_at_at_aux:Nn #1#2
\cs_new_protected:Npx \@@_replace_at_at_aux:Nn #1#2
{
\tl_replace_all:Nnn #1 { _ @ @ } { _ _ #2 }
\tl_replace_all:Nnn #1 { @ @ } { _ _ #2 }
\tl_replace_all:Nnn #1 { \token_to_str:N @ } { @ }
\tl_replace_all:Nnn #1 { \token_to_str:N _ } { _ }
\tl_replace_all:Nnn #1 { @ @ @ @ } { \token_to_str:N a a }
\tl_replace_all:Nnn #1 { _ _ @ @ } { _ _ #2 }
\tl_replace_all:Nnn #1 { _ @ @ } { _ _ #2 }
\tl_replace_all:Nnn #1 { @ @ } { _ _ #2 }
\tl_replace_all:Nnn #1 { \token_to_str:N a a } { @ @ }
}
\cs_new_protected:Npn \@@_output_line:n #1
{
Expand Down
Loading