diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef6316d5..ee4141b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: [push] env: CTAN_URL: https://mirrors.rit.edu/CTAN TL_PACKAGES: adobemapping amsfonts amsmath atbegshi cjk cjkutils cm ctablestack currfile dvipdfmx epstopdf-pkg etex etoolbox euenc fancyhdr fandol filehook fontspec graphics graphics-cfg graphics-def iftex l3build l3experimental l3kernel l3packages latex-bin lm lm-math ltxcmds lualatex-math lualibs luaotfload luatex luatex85 luatexbase luatexja metafont mfware ms oberdiek platex-tools tex tex-ini-files tools trimspaces ucharcat ulem unicode-data uplatex varwidth xcolor xetex xkeyval xunicode - TL_EXTRA_PACKAGES: amscls atveryend auxhook beamer bibunits bigintcalc bitset booktabs caption cjkpunct context enumitem environ eso-pic etexcmds everyhook fontaxes footmisc geometry gettitlestring hycolor hyperref infwarerr intcalc kastrup koma-script kvdefinekeys kvoptions kvsetkeys letltxmacro mweights natbib newtx notoccite ntheorem pdfescape pdflscape pdfpages pdftexcmds pgf pkuthss psnfss refcount rerunfilecheck sansmathaccent setspace svn-prov tex-gyre tex-gyre-math thuthesis tocloft translator txfonts unicode-math uniquecounter url xecjk xits zhmetrics zhmetrics-uptex zhnumber + TL_EXTRA_PACKAGES: amscls atveryend auxhook beamer bibunits bigintcalc bitset booktabs caption cjkpunct context enumitem environ eso-pic etexcmds everyhook fontaxes footmisc geometry gettitlestring hycolor hyperref infwarerr intcalc kastrup koma-script kvdefinekeys kvoptions kvsetkeys letltxmacro mweights natbib newtx notoccite ntheorem pdfescape pdflscape pdfpages pdftexcmds pgf pkuthss psnfss refcount rerunfilecheck sansmathaccent setspace svn-prov tex-gyre tex-gyre-math thuthesis titlesec tocloft translator txfonts unicode-math uniquecounter url xecjk xits zhmetrics zhmetrics-uptex zhnumber NOTO_URL: https://noto-website-2.storage.googleapis.com/pkgs jobs: diff --git a/ctex/ctex.dtx b/ctex/ctex.dtx index d19b7159..c7b6b311 100644 --- a/ctex/ctex.dtx +++ b/ctex/ctex.dtx @@ -8154,7 +8154,7 @@ Copyright and Licence % % \subsubsection{目录标签的宽度} % -% \begin{macro}[int]{\numberline} +% \begin{macro}{\CTEX@toc@width@n} % \begin{macrocode} \cs_new_protected:Npn \CTEX@toc@width@n #1 { @@ -8165,6 +8165,17 @@ Copyright and Licence { \box_wd:N \l_@@_tmp_box + \f@size \p@ / 2 } } } +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\numberline,\@@_patch_toc_width:n} +% 为 \tn{numberline} 命令打补丁,并兼容 \pkg{tocloft} 和 \pkg{titletoc} 宏包。 +% +% \changes{v2.5}{2020/01/11}{兼容 \pkg{titletoc},防止目录中章节名和标题现重合。} +% +% 这里需要替换 |#| 本身,因此需要先切换为 other 类。表示参数的 |#| 用 +% \cs{c_parameter_token} 代替。 +% \begin{macrocode} \group_begin: \char_set_catcode_other:N \# \use:n @@ -8174,19 +8185,24 @@ Copyright and Licence { \CTEX@toc@width@n {#1} } { } { \ctex_patch_failure:N \numberline } - \@ifpackageloaded { tocloft } - { } + \cs_new_protected:Npn \@@_patch_toc_width:n \c_parameter_token 1 { - \ctex_at_end_package:nn { tocloft } + \@ifpackageloaded { \c_parameter_token 1 } + { } { - \ctex_preto_cmd:NnnTF \numberline - { \char_set_catcode_letter:n { 64 } } - { \CTEX@toc@width@n {#1} } - { } - { \ctex_patch_failure:N \numberline } + \ctex_at_end_package:nn { \c_parameter_token 1 } + { + \ctex_preto_cmd:NnnTF \numberline + { \char_set_catcode_letter:n { 64 } } + { \CTEX@toc@width@n {#1} } + { } + { \ctex_patch_failure:N \numberline } + } } } } +\@@_patch_toc_width:n { tocloft } +\@@_patch_toc_width:n { titletoc } % \end{macrocode} % \end{macro} % diff --git a/ctex/test/testfiles/github472-01.luatex.tlg b/ctex/test/testfiles/github472-01.luatex.tlg new file mode 100644 index 00000000..d614a494 --- /dev/null +++ b/ctex/test/testfiles/github472-01.luatex.tlg @@ -0,0 +1,155 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with titletoc +============================================================ +(github472-01.toc) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(627.36243+0.0)x434.0, direction TLT +.\whatsit4=[] +.\glue 22.0 +.\vbox(605.36243+0.0)x345.0, shifted 89.0, direction TLT +..\whatsit4=[] +..\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT +...\whatsit4=[] +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0, direction TLT +....\whatsit4=[] +..\glue 18.06749 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 361.5896fil, direction TLT +...\whatsit4=[] +...\write-{} +...\write-{} +...\glue(\topskip) 10.0 +...\rule(0.0+0.0)x* +...\penalty 10000 +...\glue 50.0 +...\glue 0.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 15.01617 +...\hbox(19.43259+2.6499)x345.0, glue set 150.41751fil, direction TLT +....\whatsit4=[] +....\glue(\leftskip) 0.0 plus 1.0fil +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\hbox(19.43259+2.6499)x22.08249, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/22.08249 目 +....\penalty 500 +....\glue 0.0 plus 2.75732 +....\hbox(19.43259+2.6499)x22.08249, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/22.08249 录 +....\penalty 10000 +....\glue(\parfillskip) 0.0 +....\glue(\rightskip) 0.0 plus 1.0fil +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ +ETC.} +...\penalty 10000 +...\glue 40.0 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 4.5169 +...\hbox(9.27464+1.26472)x345.0, glue set 267.53558fil, direction TLT +....\whatsit4=[] +....\glue(\leftskip) 15.80905 +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\glue -15.80905 +....\hbox(9.27464+1.26472)x40.04962, glue set 5.26968fil, direction TLT +.....\whatsit4=[] +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 第 +.....\glue 0.0 plus 0.60931 +.....\norule(9.27464+1.26472)x0.0 +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 一 +.....\glue 0.0 plus 0.60931 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 章 +.....\glue 3.16183 +.....\glue 0.0 plus 1.0fil +....\penalty 0 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 测 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 试 +....\penalty 10000 +....\glue 0.0 plus 1.0fil +....\penalty 10000 +....\hbox(6.90329+0.11594)x16.33604, glue set 10.27591fil, direction TLT +.....\whatsit4=[] +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +.....\kern-1.0 +.....\kern1.0 +....\penalty 10000 +....\glue(\parfillskip) -16.33604 +....\glue(\rightskip) 16.33604 +...\penalty 301 +...\penalty -301 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 5.90208 +...\hbox(9.27464+1.26472)x345.0, glue set 267.53558fil, direction TLT +....\whatsit4=[] +....\glue(\leftskip) 15.80905 +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\glue -15.80905 +....\hbox(9.27464+1.26472)x40.04962, glue set 5.26968fil, direction TLT +.....\whatsit4=[] +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 第 +.....\glue 0.0 plus 0.60931 +.....\norule(9.27464+1.26472)x0.0 +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 二 +.....\glue 0.0 plus 0.60931 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 章 +.....\glue 3.16183 +.....\glue 0.0 plus 1.0fil +....\penalty 0 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 测 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 试 +....\penalty 10000 +....\glue 0.0 plus 1.0fil +....\penalty 10000 +....\hbox(6.91382+0.0)x16.33604, glue set 10.27591fil, direction TLT +.....\whatsit4=[] +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 4 +.....\kern-1.0 +.....\kern1.0 +....\penalty 10000 +....\glue(\parfillskip) -16.33604 +....\glue(\rightskip) 16.33604 +...\penalty 301 +...\glue -1.26472 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +..\glue(\baselineskip) 18.27571 +..\hbox(7.01923+0.0)x345.0, glue set 169.86516fil, direction TLT +...\whatsit4=[] +...\glue 0.0 plus 1.0fil +...\TU/lmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-01.lvt b/ctex/test/testfiles/github472-01.lvt new file mode 100644 index 00000000..4eed48e8 --- /dev/null +++ b/ctex/test/testfiles/github472-01.lvt @@ -0,0 +1,29 @@ +\input{regression-test} + +\documentclass[fontset=fandol,openany]{ctexbook} +\usepackage{titletoc} + +\begin{document} + +\START + +\AUTHOR{Xiangdong Zeng} + +\OMIT +\mbox{文字ABC} +\clearpage +\TIMO + +\loggingoutput + +\TEST{\tableofcontents with titletoc}{ + \tableofcontents + \clearpage +} + +\OMIT + +\chapter{测试} +\chapter{测试} + +\end{document} diff --git a/ctex/test/testfiles/github472-01.pdftex.tlg b/ctex/test/testfiles/github472-01.pdftex.tlg new file mode 100644 index 00000000..4a7e5bbd --- /dev/null +++ b/ctex/test/testfiles/github472-01.pdftex.tlg @@ -0,0 +1,133 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with titletoc +============================================================ +(github472-01.toc) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(627.36243+0.0)x434.0 +.\glue 22.0 +.\vbox(605.36243+0.0)x345.0, shifted 89.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 18.06749 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 361.58957fil +...\write-{} +...\write-{} +...\glue(\topskip) 10.0 +...\rule(0.0+0.0)x* +...\penalty 10000 +...\glue 50.0 +...\glue 0.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 16.78278 +...\hbox(17.66599+2.20825)x345.0, glue set 150.41751fil +....\glue(\leftskip) 0.0 plus 1.0fil +....\hbox(0.0+0.0)x0.0 +....\C70/rm/bx/n/22.08249/76 +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 2.75732 +....\C70/rm/bx/n/22.08249/5f U +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\glue(\parfillskip) 0.0 +....\glue(\rightskip) 0.0 plus 1.0fil +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 40.0 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 5.80171 +...\hbox(8.43149+1.05394)x345.0, glue set 267.06131fil +....\glue(\leftskip) 15.80907 +....\hbox(0.0+0.0)x0.0 +....\glue -15.80907 +....\hbox(8.43149+1.05394)x40.52388, glue set 5.26968fil +.....\C70/rm/bx/n/10.53937/7b , +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 0.60931 +.....\C70/rm/bx/n/10.53937/4e ^^@ +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 0.60931 +.....\C70/rm/bx/n/10.53937/7a +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 3.6361 +.....\glue 0.0 plus 1.0fil +....\C70/rm/bx/n/10.53937/6d K +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 0.60931 +....\C70/rm/bx/n/10.53937/8b +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\glue 0.0 plus 1.0fil +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +.....\kern -1.0 +.....\kern 1.0 +....\penalty 10000 +....\glue(\parfillskip) -16.33607 +....\glue(\rightskip) 16.33607 +...\penalty 301 +...\penalty -301 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 6.95602 +...\hbox(8.43149+1.05394)x345.0, glue set 267.06131fil +....\glue(\leftskip) 15.80907 +....\hbox(0.0+0.0)x0.0 +....\glue -15.80907 +....\hbox(8.43149+1.05394)x40.52388, glue set 5.26968fil +.....\C70/rm/bx/n/10.53937/7b , +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 0.60931 +.....\C70/rm/bx/n/10.53937/4e +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 0.60931 +.....\C70/rm/bx/n/10.53937/7a +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 3.6361 +.....\glue 0.0 plus 1.0fil +....\C70/rm/bx/n/10.53937/6d K +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 0.60931 +....\C70/rm/bx/n/10.53937/8b +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\glue 0.0 plus 1.0fil +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 4 +.....\kern -1.0 +.....\kern 1.0 +....\penalty 10000 +....\glue(\parfillskip) -16.33607 +....\glue(\rightskip) 16.33607 +...\penalty 301 +...\glue -1.05394 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +..\glue(\baselineskip) 18.50291 +..\hbox(6.79202+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\OT1/cmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-01.tlg b/ctex/test/testfiles/github472-01.tlg new file mode 100644 index 00000000..343f1ced --- /dev/null +++ b/ctex/test/testfiles/github472-01.tlg @@ -0,0 +1,125 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with titletoc +============================================================ +(github472-01.toc) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(627.36243+0.0)x434.0 +.\glue 22.0 +.\vbox(605.36243+0.0)x345.0, shifted 89.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 18.06749 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 361.5896fil +...\write-{} +...\write-{} +...\glue(\topskip) 10.0 +...\rule(0.0+0.0)x* +...\penalty 10000 +...\glue 50.0 +...\glue 0.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 17.97522 +...\hbox(16.47354+3.22403)x345.0, glue set 150.41751fil +....\glue(\leftskip) 0.0 plus 1.0fil +....\hbox(0.0+0.0)x0.0 +....\TU/FandolSong-Regular(0)/bx/n/22.08249 目 +....\glue 0.0 plus 2.75732 +....\TU/FandolSong-Regular(0)/bx/n/22.08249 录 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\glue(\parfillskip) 0.0 +....\glue(\rightskip) 0.0 plus 1.0fil +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 40.0 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 5.16534 +...\hbox(8.05208+1.88654)x345.0, glue set 267.5356fil +....\glue(\leftskip) 15.80905 +....\hbox(0.0+0.0)x0.0 +....\glue -15.80905 +....\hbox(8.05208+1.88654)x40.04962, glue set 5.26968fil +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 第 +.....\glue 0.0 plus 0.60931 +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 一 +.....\glue 0.0 plus 0.60931 +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 章 +.....\kern -0.00017 +.....\kern 0.00017 +.....\glue 3.16183 +.....\glue 0.0 plus 1.0fil +....\TU/FandolSong-Regular(0)/bx/n/10.53937 测 +....\glue 0.0 plus 0.60931 +....\TU/FandolSong-Regular(0)/bx/n/10.53937 试 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\glue 0.0 plus 1.0fil +....\penalty 10000 +....\hbox(6.90329+0.11592)x16.33604, glue set 10.27591fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +.....\kern -0.0002 +.....\kern 0.0002 +.....\kern -1.0 +.....\kern 1.0 +....\penalty 10000 +....\glue(\parfillskip) -16.33604 +....\glue(\rightskip) 16.33604 +...\penalty 301 +...\penalty -301 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 6.50284 +...\hbox(8.05208+1.88654)x345.0, glue set 267.5356fil +....\glue(\leftskip) 15.80905 +....\hbox(0.0+0.0)x0.0 +....\glue -15.80905 +....\hbox(8.05208+1.88654)x40.04962, glue set 5.26968fil +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 第 +.....\glue 0.0 plus 0.60931 +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 二 +.....\glue 0.0 plus 0.60931 +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 章 +.....\kern -0.00017 +.....\kern 0.00017 +.....\glue 3.16183 +.....\glue 0.0 plus 1.0fil +....\TU/FandolSong-Regular(0)/bx/n/10.53937 测 +....\glue 0.0 plus 0.60931 +....\TU/FandolSong-Regular(0)/bx/n/10.53937 试 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\glue 0.0 plus 1.0fil +....\penalty 10000 +....\hbox(6.91382+0.0)x16.33604, glue set 10.27591fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 4 +.....\kern -0.0002 +.....\kern 0.0002 +.....\kern -1.0 +.....\kern 1.0 +....\penalty 10000 +....\glue(\parfillskip) -16.33604 +....\glue(\rightskip) 16.33604 +...\penalty 301 +...\glue -1.88654 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +..\glue(\baselineskip) 18.27571 +..\hbox(7.01923+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\TU/lmr/m/n/10.53937 2 +...\kern -0.0002 +...\kern 0.0002 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-01.uptex.tlg b/ctex/test/testfiles/github472-01.uptex.tlg new file mode 100644 index 00000000..44b4f970 --- /dev/null +++ b/ctex/test/testfiles/github472-01.uptex.tlg @@ -0,0 +1,102 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with titletoc +============================================================ +(github472-01.toc) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(627.36243+0.0)x434.0 +.\glue 22.0 +.\vbox(605.36243+0.0)x345.0, shifted 89.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 18.06749 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 361.58957fil +...\write-{} +...\write-{} +...\glue(\topskip) 10.0 +...\rule(0.0+0.0)x* +...\penalty 10000 +...\glue 50.0 +...\glue 0.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 15.01617 +...\hbox(19.43259+2.64989)x345.0, glue set 150.41751fil +....\glue(\leftskip) 0.0 plus 1.0fil +....\hbox(0.0+0.0)x0.0 +....\JY2/zhrm/bx/n/22.08249 目 +....\JY2/zhrm/bx/n/22.08249 录 +....\penalty 10000 +....\glue(\parfillskip) 0.0 +....\glue(\rightskip) 0.0 plus 1.0fil +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 40.0 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 4.51692 +...\hbox(9.27464+1.26471)x345.0, glue set 267.06131fil +....\glue(\leftskip) 15.80907 +....\hbox(0.0+0.0)x0.0 +....\glue -15.80907 +....\hbox(9.27464+1.26471)x40.52388, glue set 5.26968fil +.....\JY2/zhrm/bx/n/10.53937 第 +.....\JY2/zhrm/bx/n/10.53937 一 +.....\JY2/zhrm/bx/n/10.53937 章 +.....\glue 3.6361 +.....\glue 0.0 plus 1.0fil +....\JY2/zhrm/bx/n/10.53937 测 +....\JY2/zhrm/bx/n/10.53937 试 +....\penalty 10000 +....\glue 0.0 plus 1.0fil +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +.....\kern -1.0 +.....\kern 1.0 +....\penalty 10000 +....\glue(\parfillskip) -16.33607 +....\glue(\rightskip) 16.33607 +...\penalty 301 +...\penalty -301 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 5.9021 +...\hbox(9.27464+1.26471)x345.0, glue set 267.06131fil +....\glue(\leftskip) 15.80907 +....\hbox(0.0+0.0)x0.0 +....\glue -15.80907 +....\hbox(9.27464+1.26471)x40.52388, glue set 5.26968fil +.....\JY2/zhrm/bx/n/10.53937 第 +.....\JY2/zhrm/bx/n/10.53937 二 +.....\JY2/zhrm/bx/n/10.53937 章 +.....\glue 3.6361 +.....\glue 0.0 plus 1.0fil +....\JY2/zhrm/bx/n/10.53937 测 +....\JY2/zhrm/bx/n/10.53937 试 +....\penalty 10000 +....\glue 0.0 plus 1.0fil +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 4 +.....\kern -1.0 +.....\kern 1.0 +....\penalty 10000 +....\glue(\parfillskip) -16.33607 +....\glue(\rightskip) 16.33607 +...\penalty 301 +...\glue -1.26471 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +..\glue(\baselineskip) 18.50291 +..\hbox(6.79202+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\OT1/cmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-02.luatex.tlg b/ctex/test/testfiles/github472-02.luatex.tlg new file mode 100644 index 00000000..297dbb65 --- /dev/null +++ b/ctex/test/testfiles/github472-02.luatex.tlg @@ -0,0 +1,160 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with titletoc +============================================================ +(github472-02.toc +LaTeX Font Warning: Font shape `LTJY3/FandolSong-Regular(0)/bx/it' undefined +(Font) using `LTJY3/FandolSong-Regular(0)/bx/n' instead on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(627.36243+0.0)x434.0, direction TLT +.\whatsit4=[] +.\glue 22.0 +.\vbox(605.36243+0.0)x345.0, shifted 89.0, direction TLT +..\whatsit4=[] +..\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT +...\whatsit4=[] +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0, direction TLT +....\whatsit4=[] +..\glue 18.06749 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 329.76193fil, direction TLT +...\whatsit4=[] +...\write-{} +...\write-{} +...\glue(\topskip) 10.0 +...\rule(0.0+0.0)x* +...\penalty 10000 +...\glue 50.0 +...\glue 0.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 15.01617 +...\hbox(19.43259+2.6499)x345.0, glue set 150.41751fil, direction TLT +....\whatsit4=[] +....\glue(\leftskip) 0.0 plus 1.0fil +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\hbox(19.43259+2.6499)x22.08249, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/it/22.08249 目 +....\penalty 500 +....\glue 0.0 plus 2.75732 +....\hbox(19.43259+2.6499)x22.08249, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/it/22.08249 录 +....\penalty 10000 +....\glue(\parfillskip) 0.0 +....\glue(\rightskip) 0.0 plus 1.0fil +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ +ETC.} +...\penalty 10000 +...\glue 40.0 +...\penalty 10000 +...\glue 0.0 plus 0.1 +...\penalty 10000 +...\glue 12.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\lineskip) 1.0 +...\hbox(19.43259+5.63712)x345.0, glue set 288.64899fil, direction TLT +....\whatsit4=[] +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\rule(11.50896+4.93248)x0.0 +....\hbox(19.43259+2.6499)x0.0, glue set - 83.91351fil, direction TLT +.....\whatsit4=[] +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\hbox(19.43259+2.6499)x22.08249, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/it/22.08249 第 +.....\glue 0.0 plus 2.75732 +.....\norule(19.43259+2.6499)x0.0 +.....\LTJY3/FandolSong-Regular(0)/bx/it/22.08249 一 +.....\glue 0.0 plus 2.75732 +.....\hbox(19.43259+2.6499)x22.08249, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/it/22.08249 章 +.....\glue 6.6248 +.....\kern11.04124 +....\penalty 0 +....\hbox(10.5996+1.4454)x12.045, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/it/12.045 测 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(10.5996+1.4454)x12.045, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/it/12.045 试 +....\penalty 0 +....\rule(13.15309+5.63712)x0.0 +....\kern0.0 +....\glue 10.53937 +....\TU/lmr/m/it/10.53937 2 +....\penalty 10000 +....\glue(\parfillskip) -10.53937 plus 1.0fil +....\glue(\rightskip) 26.87541 +...\penalty 10000 +...\glue 6.0 +...\glue -11.0 +...\penalty 0 +...\glue 5.0 +...\glue 6.0 +...\glue 0.0 plus 0.1 +...\penalty 10000 +...\glue 12.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\lineskip) 1.0 +...\hbox(19.43259+5.63712)x345.0, glue set 288.64899fil, direction TLT +....\whatsit4=[] +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\rule(11.50896+4.93248)x0.0 +....\hbox(19.43259+2.6499)x0.0, glue set - 83.91351fil, direction TLT +.....\whatsit4=[] +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\hbox(19.43259+2.6499)x22.08249, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/it/22.08249 第 +.....\glue 0.0 plus 2.75732 +.....\norule(19.43259+2.6499)x0.0 +.....\LTJY3/FandolSong-Regular(0)/bx/it/22.08249 二 +.....\glue 0.0 plus 2.75732 +.....\hbox(19.43259+2.6499)x22.08249, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/it/22.08249 章 +.....\glue 6.6248 +.....\kern11.04124 +....\penalty 0 +....\hbox(10.5996+1.4454)x12.045, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/it/12.045 测 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(10.5996+1.4454)x12.045, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/it/12.045 试 +....\penalty 0 +....\rule(13.15309+5.63712)x0.0 +....\kern0.0 +....\glue 10.53937 +....\TU/lmr/m/it/10.53937 2 +....\penalty 10000 +....\glue(\parfillskip) -10.53937 plus 1.0fil +....\glue(\rightskip) 26.87541 +...\penalty 10000 +...\glue 6.0 +...\glue -5.0 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +..\glue(\baselineskip) 18.27571 +..\hbox(7.01923+0.0)x345.0, glue set 169.86516fil, direction TLT +...\whatsit4=[] +...\glue 0.0 plus 1.0fil +...\TU/lmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-02.lvt b/ctex/test/testfiles/github472-02.lvt new file mode 100644 index 00000000..df08d844 --- /dev/null +++ b/ctex/test/testfiles/github472-02.lvt @@ -0,0 +1,42 @@ +\input{regression-test} + +\documentclass[fontset=fandol,openany]{ctexbook} +\usepackage{titletoc} + +\titlecontents{chapter} + [0pt] + {\addvspace{1pc}% + \itshape}% + {\contentsmargin{0pt}% + \bfseries + \makebox[0pt][r]{\huge\thecontentslabel\enspace}% + \large} + {\contentsmargin{0pt}% + \large} + {\quad\thepage} + [\addvspace{.5pc}] + +\begin{document} + +\START + +\AUTHOR{Xiangdong Zeng} + +\OMIT +\mbox{文字ABC} +\clearpage +\TIMO + +\loggingoutput + +\TEST{\tableofcontents with titletoc}{ + \tableofcontents + \clearpage +} + +\OMIT + +\chapter{测试} +\chapter{测试} + +\end{document} diff --git a/ctex/test/testfiles/github472-02.pdftex.tlg b/ctex/test/testfiles/github472-02.pdftex.tlg new file mode 100644 index 00000000..1a0a1976 --- /dev/null +++ b/ctex/test/testfiles/github472-02.pdftex.tlg @@ -0,0 +1,195 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with titletoc +============================================================ +(github472-02.toc) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(627.36243+0.0)x434.0 +.\glue 22.0 +.\vbox(605.36243+0.0)x345.0, shifted 89.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 18.06749 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 333.73679fil +...\write-{} +...\write-{} +...\glue(\topskip) 10.0 +...\rule(0.0+0.0)x* +...\penalty 10000 +...\glue 50.0 +...\glue 0.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 16.78278 +...\hbox(17.66599+2.20825)x345.0, glue set 150.41751fil +....\glue(\leftskip) 0.0 plus 1.0fil +....\hbox(0.0+0.0)x0.0 +....\C70/rm/bx/n/22.08249/76 +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 2.75732 +....\C70/rm/bx/n/22.08249/5f U +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\glue(\parfillskip) 0.0 +....\glue(\rightskip) 0.0 plus 1.0fil +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 40.0 +...\penalty 10000 +...\glue 0.0 plus 0.1 +...\penalty 10000 +...\glue 12.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\lineskip) 1.0 +...\hbox(17.66599+5.63712)x345.0, glue set 287.69101fil +....\hbox(0.0+0.0)x0.0 +....\rule(11.50896+4.93248)x0.0 +....\hbox(17.66599+2.20825)x0.0, glue set - 89.1198fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/22.08249/7b , +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/7b , +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/7b , +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 2.75732 +.....\C70/rm/bx/it/22.08249/4e ^^@ +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/4e ^^@ +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/4e ^^@ +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 2.75732 +.....\C70/rm/bx/it/22.08249/7a +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/7a +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/7a +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 7.83192 +.....\kern 13.05307 +....\C70/rm/bx/it/12.045/6d K +....\hbox(9.63599+1.2045)x0.18066, glue set - 11.86433fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/12.045/6d K +....\hbox(9.63599+1.2045)x0.18066, glue set - 11.86433fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/12.045/6d K +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 0.76097 +....\C70/rm/bx/it/12.045/8b +....\hbox(9.63599+1.2045)x0.18066, glue set - 11.86433fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/12.045/8b +....\hbox(9.63599+1.2045)x0.18066, glue set - 11.86433fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/12.045/8b +....\kern -0.00002 +....\kern 0.00002 +....\rule(13.15309+5.63712)x0.0 +....\kern 0.0 +....\glue 10.77351 +....\OT1/cmr/m/it/10.53937 2 +....\penalty 10000 +....\glue(\parfillskip) -10.53938 plus 1.0fil +....\glue(\rightskip) 26.87546 +...\penalty 10000 +...\glue 6.0 +...\glue -11.0 +...\penalty 0 +...\glue 5.0 +...\glue 6.0 +...\glue 0.0 plus 0.1 +...\penalty 10000 +...\glue 12.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\lineskip) 1.0 +...\hbox(17.66599+5.63712)x345.0, glue set 287.69101fil +....\hbox(0.0+0.0)x0.0 +....\rule(11.50896+4.93248)x0.0 +....\hbox(17.66599+2.20825)x0.0, glue set - 89.1198fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/22.08249/7b , +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/7b , +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/7b , +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 2.75732 +.....\C70/rm/bx/it/22.08249/4e +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/4e +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/4e +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 2.75732 +.....\C70/rm/bx/it/22.08249/7a +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/7a +.....\hbox(17.66599+2.20825)x0.33122, glue set - 21.75127fil +......\glue 0.0 plus 1.0fil minus 1.0fil +......\C70/rm/bx/it/22.08249/7a +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 7.83192 +.....\kern 13.05307 +....\C70/rm/bx/it/12.045/6d K +....\hbox(9.63599+1.2045)x0.18066, glue set - 11.86433fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/12.045/6d K +....\hbox(9.63599+1.2045)x0.18066, glue set - 11.86433fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/12.045/6d K +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 0.76097 +....\C70/rm/bx/it/12.045/8b +....\hbox(9.63599+1.2045)x0.18066, glue set - 11.86433fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/12.045/8b +....\hbox(9.63599+1.2045)x0.18066, glue set - 11.86433fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\C70/rm/bx/it/12.045/8b +....\kern -0.00002 +....\kern 0.00002 +....\rule(13.15309+5.63712)x0.0 +....\kern 0.0 +....\glue 10.77351 +....\OT1/cmr/m/it/10.53937 2 +....\penalty 10000 +....\glue(\parfillskip) -10.53938 plus 1.0fil +....\glue(\rightskip) 26.87546 +...\penalty 10000 +...\glue 6.0 +...\glue -5.0 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +..\glue(\baselineskip) 18.50291 +..\hbox(6.79202+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\OT1/cmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-02.tlg b/ctex/test/testfiles/github472-02.tlg new file mode 100644 index 00000000..1273e091 --- /dev/null +++ b/ctex/test/testfiles/github472-02.tlg @@ -0,0 +1,130 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with titletoc +============================================================ +(github472-02.toc +LaTeX Font Warning: Font shape `TU/FandolSong-Regular(0)/bx/it' undefined +(Font) using `TU/FandolSong-Regular(0)/bx/n' instead on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(627.36243+0.0)x434.0 +.\glue 22.0 +.\vbox(605.36243+0.0)x345.0, shifted 89.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 18.06749 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 334.31094fil +...\write-{} +...\write-{} +...\glue(\topskip) 10.0 +...\rule(0.0+0.0)x* +...\penalty 10000 +...\glue 50.0 +...\glue 0.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 17.97522 +...\hbox(16.47354+3.22403)x345.0, glue set 150.41751fil +....\glue(\leftskip) 0.0 plus 1.0fil +....\hbox(0.0+0.0)x0.0 +....\TU/FandolSong-Regular(0)/bx/n/22.08249 目 +....\glue 0.0 plus 2.75732 +....\TU/FandolSong-Regular(0)/bx/n/22.08249 录 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\glue(\parfillskip) 0.0 +....\glue(\rightskip) 0.0 plus 1.0fil +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 40.0 +...\penalty 10000 +...\glue 0.0 plus 0.1 +...\penalty 10000 +...\glue 12.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\lineskip) 1.0 +...\hbox(16.87102+5.63712)x345.0, glue set 288.64897fil +....\hbox(0.0+0.0)x0.0 +....\rule(11.50896+4.93248)x0.0 +....\hbox(16.87102+3.95274)x0.0, glue set - 83.91351fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/FandolSong-Regular(0)/bx/n/22.08249 第 +.....\glue 0.0 plus 2.75732 +.....\TU/FandolSong-Regular(0)/bx/n/22.08249 一 +.....\glue 0.0 plus 2.75732 +.....\TU/FandolSong-Regular(0)/bx/n/22.08249 章 +.....\kern -0.00017 +.....\kern 0.00017 +.....\glue 6.6248 +.....\kern 11.04124 +....\TU/FandolSong-Regular(0)/bx/it/12.045 测 +....\glue 0.0 plus 0.76097 +....\TU/FandolSong-Regular(0)/bx/it/12.045 试 +....\kern -0.00017 +....\kern 0.00017 +....\rule(13.15309+5.63712)x0.0 +....\kern 0.0 +....\glue 10.53937 +....\TU/lmr/m/it/10.53937 2 +....\kern -0.0002 +....\kern 0.0002 +....\penalty 10000 +....\glue(\parfillskip) -10.53937 plus 1.0fil +....\glue(\rightskip) 26.87541 +...\penalty 10000 +...\glue 6.0 +...\glue -11.0 +...\penalty 0 +...\glue 5.0 +...\glue 6.0 +...\glue 0.0 plus 0.1 +...\penalty 10000 +...\glue 12.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\lineskip) 1.0 +...\hbox(16.87102+5.63712)x345.0, glue set 288.64897fil +....\hbox(0.0+0.0)x0.0 +....\rule(11.50896+4.93248)x0.0 +....\hbox(16.87102+3.95274)x0.0, glue set - 83.91351fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/FandolSong-Regular(0)/bx/n/22.08249 第 +.....\glue 0.0 plus 2.75732 +.....\TU/FandolSong-Regular(0)/bx/n/22.08249 二 +.....\glue 0.0 plus 2.75732 +.....\TU/FandolSong-Regular(0)/bx/n/22.08249 章 +.....\kern -0.00017 +.....\kern 0.00017 +.....\glue 6.6248 +.....\kern 11.04124 +....\TU/FandolSong-Regular(0)/bx/it/12.045 测 +....\glue 0.0 plus 0.76097 +....\TU/FandolSong-Regular(0)/bx/it/12.045 试 +....\kern -0.00017 +....\kern 0.00017 +....\rule(13.15309+5.63712)x0.0 +....\kern 0.0 +....\glue 10.53937 +....\TU/lmr/m/it/10.53937 2 +....\kern -0.0002 +....\kern 0.0002 +....\penalty 10000 +....\glue(\parfillskip) -10.53937 plus 1.0fil +....\glue(\rightskip) 26.87541 +...\penalty 10000 +...\glue 6.0 +...\glue -5.0 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +..\glue(\baselineskip) 18.27571 +..\hbox(7.01923+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\TU/lmr/m/n/10.53937 2 +...\kern -0.0002 +...\kern 0.0002 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-02.uptex.tlg b/ctex/test/testfiles/github472-02.uptex.tlg new file mode 100644 index 00000000..c303c202 --- /dev/null +++ b/ctex/test/testfiles/github472-02.uptex.tlg @@ -0,0 +1,109 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with titletoc +============================================================ +(github472-02.toc +LaTeX Font Warning: Font shape `JT2/zhrm/bx/it' undefined +(Font) using `JT2/zhrm/bx/n' instead on input line .... +LaTeX Font Warning: Font shape `JY2/zhrm/bx/it' undefined +(Font) using `JY2/zhrm/bx/n' instead on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(627.36243+0.0)x434.0 +.\glue 22.0 +.\vbox(605.36243+0.0)x345.0, shifted 89.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 18.06749 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 329.76195fil +...\write-{} +...\write-{} +...\glue(\topskip) 10.0 +...\rule(0.0+0.0)x* +...\penalty 10000 +...\glue 50.0 +...\glue 0.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\baselineskip) 15.01617 +...\hbox(19.43259+2.64989)x345.0, glue set 150.41751fil +....\glue(\leftskip) 0.0 plus 1.0fil +....\hbox(0.0+0.0)x0.0 +....\JY2/zhrm/bx/it/22.08249 目 +....\JY2/zhrm/bx/it/22.08249 录 +....\penalty 10000 +....\glue(\parfillskip) 0.0 +....\glue(\rightskip) 0.0 plus 1.0fil +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 40.0 +...\penalty 10000 +...\glue 0.0 plus 0.1 +...\penalty 10000 +...\glue 12.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\lineskip) 1.0 +...\hbox(19.43259+5.63712)x345.0, glue set 288.41367fil +....\hbox(0.0+0.0)x0.0 +....\rule(11.50896+4.93248)x0.0 +....\hbox(19.43259+2.64989)x0.0, glue set - 87.13246fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\JY2/zhrm/bx/it/22.08249 第 +.....\JY2/zhrm/bx/it/22.08249 一 +.....\JY2/zhrm/bx/it/22.08249 章 +.....\glue 7.83192 +.....\kern 13.05307 +....\JY2/zhrm/bx/it/12.045 测 +....\JY2/zhrm/bx/it/12.045 试 +....\rule(13.15309+5.63712)x0.0 +....\kern 0.0 +....\glue 10.77351 +....\OT1/cmr/m/it/10.53937 2 +....\penalty 10000 +....\glue(\parfillskip) -10.53938 plus 1.0fil +....\glue(\rightskip) 26.87546 +...\penalty 10000 +...\glue 6.0 +...\glue -11.0 +...\penalty 0 +...\glue 5.0 +...\glue 6.0 +...\glue 0.0 plus 0.1 +...\penalty 10000 +...\glue 12.0 +...\glue(\parskip) 0.0 plus 1.0 +...\glue(\lineskip) 1.0 +...\hbox(19.43259+5.63712)x345.0, glue set 288.41367fil +....\hbox(0.0+0.0)x0.0 +....\rule(11.50896+4.93248)x0.0 +....\hbox(19.43259+2.64989)x0.0, glue set - 87.13246fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\JY2/zhrm/bx/it/22.08249 第 +.....\JY2/zhrm/bx/it/22.08249 二 +.....\JY2/zhrm/bx/it/22.08249 章 +.....\glue 7.83192 +.....\kern 13.05307 +....\JY2/zhrm/bx/it/12.045 测 +....\JY2/zhrm/bx/it/12.045 试 +....\rule(13.15309+5.63712)x0.0 +....\kern 0.0 +....\glue 10.77351 +....\OT1/cmr/m/it/10.53937 2 +....\penalty 10000 +....\glue(\parfillskip) -10.53938 plus 1.0fil +....\glue(\rightskip) 26.87546 +...\penalty 10000 +...\glue 6.0 +...\glue -5.0 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +..\glue(\baselineskip) 18.50291 +..\hbox(6.79202+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\OT1/cmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-03.luatex.tlg b/ctex/test/testfiles/github472-03.luatex.tlg new file mode 100644 index 00000000..6b24db9e --- /dev/null +++ b/ctex/test/testfiles/github472-03.luatex.tlg @@ -0,0 +1,175 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with tocloft +============================================================ +(github472-03.toc +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.53937> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(633.0+0.0)x407.0, direction TLT +.\whatsit4=[] +.\glue 16.0 +.\vbox(617.0+0.0)x345.0, shifted 62.0, direction TLT +..\whatsit4=[] +..\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT +...\whatsit4=[] +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0, direction TLT +....\whatsit4=[] +..\glue 25.0 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 482.7373fil, direction TLT +...\whatsit4=[] +...\write-{} +...\glue(\topskip) 0.0 +...\hbox(13.2495+1.80675)x345.0, glue set 314.88751fil, direction TLT +....\whatsit4=[] +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\hbox(13.2495+1.80675)x15.05624, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/15.05624 目 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(13.2495+1.80675)x15.05624, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/15.05624 录 +....\penalty 10000 +....\glue(\parfillskip) 0.0 plus 1.0fil +....\glue(\rightskip) 0.0 +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ +ETC.} +...\penalty 10000 +...\glue 10.44768 plus 0.90848 +...\glue -10.44768 plus -0.90848 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.36006 +...\hbox(9.27464+1.26472)x345.0, glue set 259.36761fill, direction TLT +....\whatsit4=[] +....\glue(\leftskip) 15.80905 +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\hbox(0.0+0.0)x0.0, direction TLT +.....\whatsit4=[] +....\penalty 10000 +....\glue -15.80905 +....\hbox(9.27464+1.26472)x48.2176, glue set 5.26968fil, direction TLT +.....\whatsit4=[] +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 第 +.....\glue 2.63484 plus 1.0 minus 1.0 +.....\TU/lmr/bx/n/10.53937 1 +.....\glue 2.63484 plus 1.0 minus 1.0 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 小 +.....\glue 0.0 plus 0.60931 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 节 +.....\glue 0.0 plus 1.0fil +....\penalty 0 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 测 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 试 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.64413+0.0)x5858.4646, direction TLT +......\whatsit4=[] +......\mathon +......\kern2927.55127 (italic) +......\hbox(1.64413+0.0)x3.36206, direction TLT +.......\whatsit4=[] +.......\TU/lmr/bx/n/10.53937 . +......\kern2927.55127 (italic) +......\mathoff +....\penalty 10000 +....\hbox(6.90329+0.11594)x16.33604, glue set 10.27591fil, direction TLT +.....\whatsit4=[] +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87541 +....\glue(\rightskip) 26.87541 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.90208 +...\hbox(9.27464+1.26472)x345.0, glue set 259.36761fill, direction TLT +....\whatsit4=[] +....\glue(\leftskip) 15.80905 +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\hbox(0.0+0.0)x0.0, direction TLT +.....\whatsit4=[] +....\penalty 10000 +....\glue -15.80905 +....\hbox(9.27464+1.26472)x48.2176, glue set 5.26968fil, direction TLT +.....\whatsit4=[] +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 第 +.....\glue 2.63484 plus 1.0 minus 1.0 +.....\TU/lmr/bx/n/10.53937 2 +.....\glue 2.63484 plus 1.0 minus 1.0 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 小 +.....\glue 0.0 plus 0.60931 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 节 +.....\glue 0.0 plus 1.0fil +....\penalty 0 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 测 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/10.53937 试 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.64413+0.0)x5858.4646, direction TLT +......\whatsit4=[] +......\mathon +......\kern2927.55127 (italic) +......\hbox(1.64413+0.0)x3.36206, direction TLT +.......\whatsit4=[] +.......\TU/lmr/bx/n/10.53937 . +......\kern2927.55127 (italic) +......\mathoff +....\penalty 10000 +....\hbox(6.90329+0.11594)x16.33604, glue set 10.27591fil, direction TLT +.....\whatsit4=[] +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87541 +....\glue(\rightskip) 26.87541 +...\glue -1.26472 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +...\glue 0.0 plus 0.0001fil +..\glue(\baselineskip) 22.98077 +..\hbox(7.01923+0.0)x345.0, glue set 169.86516fil, direction TLT +...\whatsit4=[] +...\glue 0.0 plus 1.0fil +...\TU/lmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-03.lvt b/ctex/test/testfiles/github472-03.lvt new file mode 100644 index 00000000..73d0c7d7 --- /dev/null +++ b/ctex/test/testfiles/github472-03.lvt @@ -0,0 +1,31 @@ +\input{regression-test} + +\documentclass[fontset=fandol]{ctexart} +\usepackage{tocloft} + +\ctexset{section/name={第,小节}} + +\begin{document} + +\START + +\AUTHOR{Xiangdong Zeng} + +\OMIT +\mbox{文字ABC} +\clearpage +\TIMO + +\loggingoutput + +\TEST{\tableofcontents with tocloft}{ + \tableofcontents + \clearpage +} + +\OMIT + +\section{测试} +\section{测试} + +\end{document} diff --git a/ctex/test/testfiles/github472-03.pdftex.tlg b/ctex/test/testfiles/github472-03.pdftex.tlg new file mode 100644 index 00000000..a5c37dea --- /dev/null +++ b/ctex/test/testfiles/github472-03.pdftex.tlg @@ -0,0 +1,143 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with tocloft +============================================================ +(github472-03.toc +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.53937> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(633.0+0.0)x407.0 +.\glue 16.0 +.\vbox(617.0+0.0)x345.0, shifted 62.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 25.0 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 483.94165fil +...\write-{} +...\glue(\topskip) 0.0 +...\hbox(12.04498+1.50562)x345.0, glue set 314.88751fil +....\hbox(0.0+0.0)x0.0 +....\C70/rm/bx/n/15.05624/76 +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 1.44095 +....\C70/rm/bx/n/15.05624/5f U +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\glue(\parfillskip) 0.0 plus 1.0fil +....\glue(\rightskip) 0.0 +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 10.4369 plus 0.90753 +...\glue -10.4369 plus -0.90753 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 6.50435 +...\hbox(8.43149+1.05394)x345.0, glue set 264.63731fill +....\glue(\leftskip) 15.80907 +....\hbox(0.0+0.0)x0.0 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -15.80907 +....\hbox(8.43149+1.05394)x42.94788, glue set 5.26968fil +.....\C70/rm/bx/n/10.53937/7b , +.....\kern -0.00002 +.....\kern 0.00002 +.....\OT1/cmr/bx/n/10.53937 1 +.....\C70/rm/bx/n/10.53937/5c ^^O +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 0.60931 +.....\C70/rm/bx/n/10.53937/82 +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 1.0fil +....\C70/rm/bx/n/10.53937/6d K +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 0.60931 +....\C70/rm/bx/n/10.53937/8b +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.63945+0.0)x5858.46925 +......\mathon +......\kern 2927.55127 +......\hbox(1.63945+0.0)x3.36671 +.......\OT1/cmr/bx/n/10.53937 . +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87546 +....\glue(\rightskip) 26.87546 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 6.95602 +...\hbox(8.43149+1.05394)x345.0, glue set 264.63731fill +....\glue(\leftskip) 15.80907 +....\hbox(0.0+0.0)x0.0 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -15.80907 +....\hbox(8.43149+1.05394)x42.94788, glue set 5.26968fil +.....\C70/rm/bx/n/10.53937/7b , +.....\kern -0.00002 +.....\kern 0.00002 +.....\OT1/cmr/bx/n/10.53937 2 +.....\C70/rm/bx/n/10.53937/5c ^^O +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 0.60931 +.....\C70/rm/bx/n/10.53937/82 +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 1.0fil +....\C70/rm/bx/n/10.53937/6d K +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 0.60931 +....\C70/rm/bx/n/10.53937/8b +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.63945+0.0)x5858.46925 +......\mathon +......\kern 2927.55127 +......\hbox(1.63945+0.0)x3.36671 +.......\OT1/cmr/bx/n/10.53937 . +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87546 +....\glue(\rightskip) 26.87546 +...\glue -1.05394 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +...\glue 0.0 plus 0.0001fil +..\glue(\baselineskip) 23.20798 +..\hbox(6.79202+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\OT1/cmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-03.tlg b/ctex/test/testfiles/github472-03.tlg new file mode 100644 index 00000000..782ee087 --- /dev/null +++ b/ctex/test/testfiles/github472-03.tlg @@ -0,0 +1,143 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with tocloft +============================================================ +(github472-03.toc +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.53937> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(633.0+0.0)x407.0 +.\glue 16.0 +.\vbox(617.0+0.0)x345.0, shifted 62.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 25.0 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 484.75462fil +...\write-{} +...\glue(\topskip) 0.0 +...\hbox(11.23196+2.1982)x345.0, glue set 314.88751fil +....\hbox(0.0+0.0)x0.0 +....\TU/FandolSong-Regular(0)/bx/n/15.05624 目 +....\glue 0.0 plus 1.44095 +....\TU/FandolSong-Regular(0)/bx/n/15.05624 录 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\glue(\parfillskip) 0.0 plus 1.0fil +....\glue(\rightskip) 0.0 +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 10.44768 plus 0.90848 +...\glue -10.44768 plus -0.90848 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 6.24388 +...\hbox(7.99937+1.7706)x345.0, glue set 256.56415fill +....\glue(\leftskip) 15.80905 +....\hbox(0.0+0.0)x0.0 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -15.80905 +....\hbox(7.99937+1.7706)x51.02107, glue set 5.26968fil +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 第 +.....\glue 4.03658 plus 2.01828 minus 1.34552 +.....\TU/lmr/bx/n/10.53937 1 +.....\glue 4.03658 plus 2.01828 minus 1.34552 +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 小 +.....\glue 0.0 plus 0.60931 +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 节 +.....\kern -0.00017 +.....\kern 0.00017 +.....\glue 0.0 plus 1.0fil +....\TU/FandolSong-Regular(0)/bx/n/10.53937 测 +....\glue 0.0 plus 0.60931 +....\TU/FandolSong-Regular(0)/bx/n/10.53937 试 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.64413+0.0)x5858.4646 +......\mathon +......\kern 2927.55127 +......\hbox(1.64413+0.0)x3.36206 +.......\TU/lmr/bx/n/10.53937 . +.......\kern -0.0002 +.......\kern 0.0002 +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.90329+0.11592)x16.33604, glue set 10.27591fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +.....\kern -0.0002 +.....\kern 0.0002 +....\penalty 10000 +....\glue(\parfillskip) -26.87541 +....\glue(\rightskip) 26.87541 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 6.67148 +...\hbox(7.99937+1.7706)x345.0, glue set 256.56415fill +....\glue(\leftskip) 15.80905 +....\hbox(0.0+0.0)x0.0 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -15.80905 +....\hbox(7.99937+1.7706)x51.02107, glue set 5.26968fil +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 第 +.....\glue 4.03658 plus 2.01828 minus 1.34552 +.....\TU/lmr/bx/n/10.53937 2 +.....\glue 4.03658 plus 2.01828 minus 1.34552 +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 小 +.....\glue 0.0 plus 0.60931 +.....\TU/FandolSong-Regular(0)/bx/n/10.53937 节 +.....\kern -0.00017 +.....\kern 0.00017 +.....\glue 0.0 plus 1.0fil +....\TU/FandolSong-Regular(0)/bx/n/10.53937 测 +....\glue 0.0 plus 0.60931 +....\TU/FandolSong-Regular(0)/bx/n/10.53937 试 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.64413+0.0)x5858.4646 +......\mathon +......\kern 2927.55127 +......\hbox(1.64413+0.0)x3.36206 +.......\TU/lmr/bx/n/10.53937 . +.......\kern -0.0002 +.......\kern 0.0002 +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.90329+0.11592)x16.33604, glue set 10.27591fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +.....\kern -0.0002 +.....\kern 0.0002 +....\penalty 10000 +....\glue(\parfillskip) -26.87541 +....\glue(\rightskip) 26.87541 +...\glue -1.7706 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +...\glue 0.0 plus 0.0001fil +..\glue(\baselineskip) 22.98077 +..\hbox(7.01923+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\TU/lmr/m/n/10.53937 2 +...\kern -0.0002 +...\kern 0.0002 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-03.uptex.tlg b/ctex/test/testfiles/github472-03.uptex.tlg new file mode 100644 index 00000000..69d09ce8 --- /dev/null +++ b/ctex/test/testfiles/github472-03.uptex.tlg @@ -0,0 +1,118 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with tocloft +============================================================ +(github472-03.toc +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.53937> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(633.0+0.0)x407.0 +.\glue 16.0 +.\vbox(617.0+0.0)x345.0, shifted 62.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 25.0 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 482.73729fil +...\write-{} +...\glue(\topskip) 0.0 +...\hbox(13.24948+1.80675)x345.0, glue set 314.88751fil +....\hbox(0.0+0.0)x0.0 +....\JY2/zhrm/bx/n/15.05624 目 +....\JY2/zhrm/bx/n/15.05624 录 +....\penalty 10000 +....\glue(\parfillskip) 0.0 plus 1.0fil +....\glue(\rightskip) 0.0 +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 10.4369 plus 0.90753 +...\glue -10.4369 plus -0.90753 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.36006 +...\hbox(9.27464+1.26471)x345.0, glue set 259.36763fill +....\glue(\leftskip) 15.80907 +....\hbox(0.0+0.0)x0.0 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -15.80907 +....\hbox(9.27464+1.26471)x48.21756, glue set 5.26968fil +.....\JY2/zhrm/bx/n/10.53937 第 +.....\glue(\xkanjiskip) 2.63484 plus 1.0 minus 1.0 +.....\OT1/cmr/bx/n/10.53937 1 +.....\glue(\xkanjiskip) 2.63484 plus 1.0 minus 1.0 +.....\JY2/zhrm/bx/n/10.53937 小 +.....\JY2/zhrm/bx/n/10.53937 节 +.....\glue 0.0 plus 1.0fil +....\JY2/zhrm/bx/n/10.53937 测 +....\JY2/zhrm/bx/n/10.53937 试 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.63945+0.0)x5858.46925 +......\mathon +......\kern 2927.55127 +......\hbox(1.63945+0.0)x3.36671 +.......\OT1/cmr/bx/n/10.53937 . +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87546 +....\glue(\rightskip) 26.87546 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.9021 +...\hbox(9.27464+1.26471)x345.0, glue set 259.36763fill +....\glue(\leftskip) 15.80907 +....\hbox(0.0+0.0)x0.0 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -15.80907 +....\hbox(9.27464+1.26471)x48.21756, glue set 5.26968fil +.....\JY2/zhrm/bx/n/10.53937 第 +.....\glue(\xkanjiskip) 2.63484 plus 1.0 minus 1.0 +.....\OT1/cmr/bx/n/10.53937 2 +.....\glue(\xkanjiskip) 2.63484 plus 1.0 minus 1.0 +.....\JY2/zhrm/bx/n/10.53937 小 +.....\JY2/zhrm/bx/n/10.53937 节 +.....\glue 0.0 plus 1.0fil +....\JY2/zhrm/bx/n/10.53937 测 +....\JY2/zhrm/bx/n/10.53937 试 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.63945+0.0)x5858.46925 +......\mathon +......\kern 2927.55127 +......\hbox(1.63945+0.0)x3.36671 +.......\OT1/cmr/bx/n/10.53937 . +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87546 +....\glue(\rightskip) 26.87546 +...\glue -1.26471 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +...\glue 0.0 plus 0.0001fil +..\glue(\baselineskip) 23.20798 +..\hbox(6.79202+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\OT1/cmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-04.luatex.tlg b/ctex/test/testfiles/github472-04.luatex.tlg new file mode 100644 index 00000000..6e09a8cd --- /dev/null +++ b/ctex/test/testfiles/github472-04.luatex.tlg @@ -0,0 +1,188 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with tocloft +============================================================ +(github472-04.toc +Package fontspec Info: Font family 'FandolHei-Regular(0)' created for font +(fontspec) 'FandolHei-Regular' with options +(fontspec) [JFM=quanjiao,Extension={.otf},BoldFont={FandolHei-Bold},LTJFONTUID=2]. +(fontspec) +(fontspec) This font family consists of the following NFSS +(fontspec) series/shapes: +(fontspec) +(fontspec) - 'normal' (m/n) with NFSS spec.: +(fontspec) <->"[FandolHei-Regular.otf]:mode=node;script=latn;language=DFLT;jfm=quanjiao;" +(fontspec) - 'small caps' (m/sc) with NFSS spec.: +(fontspec) - 'bold' (bx/n) with NFSS spec.: +(fontspec) <->"[FandolHei-Bold.otf]:mode=node;script=latn;language=DFLT;jfm=quanjiao;" +(fontspec) - 'bold small caps' (bx/sc) with NFSS spec.: +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.53937> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(633.0+0.0)x407.0, direction TLT +.\whatsit4=[] +.\glue 16.0 +.\vbox(617.0+0.0)x345.0, shifted 62.0, direction TLT +..\whatsit4=[] +..\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT +...\whatsit4=[] +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0, direction TLT +....\whatsit4=[] +..\glue 25.0 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 482.7373fil, direction TLT +...\whatsit4=[] +...\write-{} +...\glue(\topskip) 0.0 +...\hbox(13.2495+1.80675)x345.0, glue set 314.88751fil, direction TLT +....\whatsit4=[] +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x0.0, direction TLT +....\hbox(13.2495+1.80675)x15.05624, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/15.05624 目 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(13.2495+1.80675)x15.05624, direction TLT +.....\LTJY3/FandolSong-Regular(0)/bx/n/15.05624 录 +....\penalty 10000 +....\glue(\parfillskip) 0.0 plus 1.0fil +....\glue(\rightskip) 0.0 +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ +ETC.} +...\penalty 10000 +...\glue 10.44768 plus 0.90848 +...\glue -10.44768 plus -0.90848 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.36006 +...\hbox(9.27464+1.26472)x345.0, glue set 187.44351fill, direction TLT +....\whatsit4=[] +....\glue(\leftskip) 120.14171 +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x56.9055, direction TLT +....\hbox(0.0+0.0)x0.0, direction TLT +.....\whatsit4=[] +....\penalty 10000 +....\glue -120.14171 +....\hbox(9.27464+1.26472)x63.2362, glue set 21.07874fil, direction TLT +.....\whatsit4=[] +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolHei-Regular(0)/m/n/10.53937 第 +.....\glue 2.63484 plus 1.0 minus 1.0 +.....\TU/lmss/m/n/10.53937 1 +.....\glue 2.63484 plus 1.0 minus 1.0 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolHei-Regular(0)/m/n/10.53937 小 +.....\glue 0.0 plus 0.60931 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolHei-Regular(0)/m/n/10.53937 节 +.....\glue 0.0 plus 1.0fil +....\penalty 0 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolHei-Regular(0)/m/n/10.53937 测 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolHei-Regular(0)/m/n/10.53937 试 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.64413+0.0)x5858.4646, direction TLT +......\whatsit4=[] +......\mathon +......\kern2927.55127 (italic) +......\hbox(1.64413+0.0)x3.36206, direction TLT +.......\whatsit4=[] +.......\TU/lmr/bx/n/10.53937 . +......\kern2927.55127 (italic) +......\mathoff +....\penalty 10000 +....\hbox(6.90329+0.11594)x16.33604, glue set 10.27591fil, direction TLT +.....\whatsit4=[] +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87541 +....\glue(\rightskip) 26.87541 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.90208 +...\hbox(9.27464+1.26472)x345.0, glue set 187.44351fill, direction TLT +....\whatsit4=[] +....\glue(\leftskip) 120.14171 +....\localpar +.....\localinterlinepenalty=0 +.....\localbrokenpenalty=0 +.....\localleftbox=null +.....\localrightbox=null +....\hbox(0.0+0.0)x56.9055, direction TLT +....\hbox(0.0+0.0)x0.0, direction TLT +.....\whatsit4=[] +....\penalty 10000 +....\glue -120.14171 +....\hbox(9.27464+1.26472)x63.2362, glue set 21.07874fil, direction TLT +.....\whatsit4=[] +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolHei-Regular(0)/m/n/10.53937 第 +.....\glue 2.63484 plus 1.0 minus 1.0 +.....\TU/lmss/m/n/10.53937 2 +.....\glue 2.63484 plus 1.0 minus 1.0 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolHei-Regular(0)/m/n/10.53937 小 +.....\glue 0.0 plus 0.60931 +.....\hbox(9.27464+1.26472)x10.53937, direction TLT +......\LTJY3/FandolHei-Regular(0)/m/n/10.53937 节 +.....\glue 0.0 plus 1.0fil +....\penalty 0 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolHei-Regular(0)/m/n/10.53937 测 +....\penalty 500 +....\glue 0.0 plus 0.60931 +....\hbox(9.27464+1.26472)x10.53937, direction TLT +.....\LTJY3/FandolHei-Regular(0)/m/n/10.53937 试 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.64413+0.0)x5858.4646, direction TLT +......\whatsit4=[] +......\mathon +......\kern2927.55127 (italic) +......\hbox(1.64413+0.0)x3.36206, direction TLT +.......\whatsit4=[] +.......\TU/lmr/bx/n/10.53937 . +......\kern2927.55127 (italic) +......\mathoff +....\penalty 10000 +....\hbox(6.90329+0.11594)x16.33604, glue set 10.27591fil, direction TLT +.....\whatsit4=[] +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87541 +....\glue(\rightskip) 26.87541 +...\glue -1.26472 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +...\glue 0.0 plus 0.0001fil +..\glue(\baselineskip) 22.98077 +..\hbox(7.01923+0.0)x345.0, glue set 169.86516fil, direction TLT +...\whatsit4=[] +...\glue 0.0 plus 1.0fil +...\TU/lmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-04.lvt b/ctex/test/testfiles/github472-04.lvt new file mode 100644 index 00000000..d573a43b --- /dev/null +++ b/ctex/test/testfiles/github472-04.lvt @@ -0,0 +1,33 @@ +\input{regression-test} + +\documentclass[fontset=fandol]{ctexart} +\usepackage{tocloft} + +\renewcommand{\cftsecfont}{\sffamily} +\cftsetindents{sec}{2cm}{6em} +\ctexset{section/name={第,小节}} + +\begin{document} + +\START + +\AUTHOR{Xiangdong Zeng} + +\OMIT +\mbox{文字ABC} +\clearpage +\TIMO + +\loggingoutput + +\TEST{\tableofcontents with tocloft}{ + \tableofcontents + \clearpage +} + +\OMIT + +\section{测试} +\section{测试} + +\end{document} diff --git a/ctex/test/testfiles/github472-04.pdftex.tlg b/ctex/test/testfiles/github472-04.pdftex.tlg new file mode 100644 index 00000000..17d2efab --- /dev/null +++ b/ctex/test/testfiles/github472-04.pdftex.tlg @@ -0,0 +1,144 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with tocloft +============================================================ +(github472-04.toc +LaTeX Font Info: Trying to load font information for C70+zhhei on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.53937> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(633.0+0.0)x407.0 +.\glue 16.0 +.\vbox(617.0+0.0)x345.0, shifted 62.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 25.0 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 483.94165fil +...\write-{} +...\glue(\topskip) 0.0 +...\hbox(12.04498+1.50562)x345.0, glue set 314.88751fil +....\hbox(0.0+0.0)x0.0 +....\C70/rm/bx/n/15.05624/76 +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 1.44095 +....\C70/rm/bx/n/15.05624/5f U +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\glue(\parfillskip) 0.0 plus 1.0fil +....\glue(\rightskip) 0.0 +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 10.4369 plus 0.90753 +...\glue -10.4369 plus -0.90753 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 6.50435 +...\hbox(8.43149+1.05394)x345.0, glue set 187.44339fill +....\glue(\leftskip) 120.1418 +....\hbox(0.0+0.0)x56.9055 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -120.1418 +....\hbox(8.43149+1.05394)x63.2363, glue set 26.3485fil +.....\C70/zhhei/m/n/10.53937/7b , +.....\kern -0.00002 +.....\kern 0.00002 +.....\OT1/cmss/m/n/10.53937 1 +.....\C70/zhhei/m/n/10.53937/5c ^^O +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 0.60931 +.....\C70/zhhei/m/n/10.53937/82 +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 1.0fil +....\C70/zhhei/m/n/10.53937/6d K +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 0.60931 +....\C70/zhhei/m/n/10.53937/8b +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.63945+0.0)x5858.46925 +......\mathon +......\kern 2927.55127 +......\hbox(1.63945+0.0)x3.36671 +.......\OT1/cmr/bx/n/10.53937 . +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87546 +....\glue(\rightskip) 26.87546 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 6.95602 +...\hbox(8.43149+1.05394)x345.0, glue set 187.44339fill +....\glue(\leftskip) 120.1418 +....\hbox(0.0+0.0)x56.9055 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -120.1418 +....\hbox(8.43149+1.05394)x63.2363, glue set 26.3485fil +.....\C70/zhhei/m/n/10.53937/7b , +.....\kern -0.00002 +.....\kern 0.00002 +.....\OT1/cmss/m/n/10.53937 2 +.....\C70/zhhei/m/n/10.53937/5c ^^O +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 0.60931 +.....\C70/zhhei/m/n/10.53937/82 +.....\kern -0.00002 +.....\kern 0.00002 +.....\glue 0.0 plus 1.0fil +....\C70/zhhei/m/n/10.53937/6d K +....\kern -0.00002 +....\kern 0.00002 +....\glue 0.0 plus 0.60931 +....\C70/zhhei/m/n/10.53937/8b +....\kern -0.00002 +....\kern 0.00002 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.63945+0.0)x5858.46925 +......\mathon +......\kern 2927.55127 +......\hbox(1.63945+0.0)x3.36671 +.......\OT1/cmr/bx/n/10.53937 . +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87546 +....\glue(\rightskip) 26.87546 +...\glue -1.05394 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +...\glue 0.0 plus 0.0001fil +..\glue(\baselineskip) 23.20798 +..\hbox(6.79202+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\OT1/cmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-04.tlg b/ctex/test/testfiles/github472-04.tlg new file mode 100644 index 00000000..af045b64 --- /dev/null +++ b/ctex/test/testfiles/github472-04.tlg @@ -0,0 +1,158 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with tocloft +============================================================ +(github472-04.toc +Package fontspec Warning: Font "FandolHei-Regular" does not contain requested +(fontspec) Script "CJK". +Package fontspec Info: Font family 'FandolHei-Regular(0)' created for font +(fontspec) 'FandolHei-Regular' with options +(fontspec) [Script={CJK},Extension={.otf},BoldFont={FandolHei-Bold}]. +(fontspec) +(fontspec) This font family consists of the following NFSS +(fontspec) series/shapes: +(fontspec) +(fontspec) - 'normal' (m/n) with NFSS spec.: +(fontspec) <->"[FandolHei-Regular.otf]/OT" +(fontspec) - 'small caps' (m/sc) with NFSS spec.: +(fontspec) - 'bold' (bx/n) with NFSS spec.: +(fontspec) <->"[FandolHei-Bold.otf]/OT" +(fontspec) - 'bold small caps' (bx/sc) with NFSS spec.: +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.53937> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(633.0+0.0)x407.0 +.\glue 16.0 +.\vbox(617.0+0.0)x345.0, shifted 62.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 25.0 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 484.75462fil +...\write-{} +...\glue(\topskip) 0.0 +...\hbox(11.23196+2.1982)x345.0, glue set 314.88751fil +....\hbox(0.0+0.0)x0.0 +....\TU/FandolSong-Regular(0)/bx/n/15.05624 目 +....\glue 0.0 plus 1.44095 +....\TU/FandolSong-Regular(0)/bx/n/15.05624 录 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\glue(\parfillskip) 0.0 plus 1.0fil +....\glue(\rightskip) 0.0 +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 10.44768 plus 0.90848 +...\glue -10.44768 plus -0.90848 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.99094 +...\hbox(8.25232+1.86545)x345.0, glue set 187.44351fill +....\glue(\leftskip) 120.14171 +....\hbox(0.0+0.0)x56.9055 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -120.14171 +....\hbox(8.24179+1.86545)x63.2362, glue set 19.3292fil +.....\TU/FandolHei-Regular(0)/m/n/10.53937 第 +.....\glue 3.50961 plus 1.7548 minus 1.16986 +.....\TU/lmss/m/n/10.53937 1 +.....\glue 3.50961 plus 1.7548 minus 1.16986 +.....\TU/FandolHei-Regular(0)/m/n/10.53937 小 +.....\glue 0.0 plus 0.60931 +.....\TU/FandolHei-Regular(0)/m/n/10.53937 节 +.....\kern -0.00017 +.....\kern 0.00017 +.....\glue 0.0 plus 1.0fil +....\TU/FandolHei-Regular(0)/m/n/10.53937 测 +....\glue 0.0 plus 0.60931 +....\TU/FandolHei-Regular(0)/m/n/10.53937 试 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.64413+0.0)x5858.4646 +......\mathon +......\kern 2927.55127 +......\hbox(1.64413+0.0)x3.36206 +.......\TU/lmr/bx/n/10.53937 . +.......\kern -0.0002 +.......\kern 0.0002 +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.90329+0.11592)x16.33604, glue set 10.27591fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +.....\kern -0.0002 +.....\kern 0.0002 +....\penalty 10000 +....\glue(\parfillskip) -26.87541 +....\glue(\rightskip) 26.87541 +...\glue 10.53937 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 6.32368 +...\hbox(8.25232+1.86545)x345.0, glue set 187.44351fill +....\glue(\leftskip) 120.14171 +....\hbox(0.0+0.0)x56.9055 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -120.14171 +....\hbox(8.24179+1.86545)x63.2362, glue set 19.3292fil +.....\TU/FandolHei-Regular(0)/m/n/10.53937 第 +.....\glue 3.50961 plus 1.7548 minus 1.16986 +.....\TU/lmss/m/n/10.53937 2 +.....\glue 3.50961 plus 1.7548 minus 1.16986 +.....\TU/FandolHei-Regular(0)/m/n/10.53937 小 +.....\glue 0.0 plus 0.60931 +.....\TU/FandolHei-Regular(0)/m/n/10.53937 节 +.....\kern -0.00017 +.....\kern 0.00017 +.....\glue 0.0 plus 1.0fil +....\TU/FandolHei-Regular(0)/m/n/10.53937 测 +....\glue 0.0 plus 0.60931 +....\TU/FandolHei-Regular(0)/m/n/10.53937 试 +....\kern -0.00017 +....\kern 0.00017 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.64413+0.0)x5858.4646 +......\mathon +......\kern 2927.55127 +......\hbox(1.64413+0.0)x3.36206 +.......\TU/lmr/bx/n/10.53937 . +.......\kern -0.0002 +.......\kern 0.0002 +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.90329+0.11592)x16.33604, glue set 10.27591fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\TU/lmr/bx/n/10.53937 3 +.....\kern -0.0002 +.....\kern 0.0002 +....\penalty 10000 +....\glue(\parfillskip) -26.87541 +....\glue(\rightskip) 26.87541 +...\glue -1.86545 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +...\glue 0.0 plus 0.0001fil +..\glue(\baselineskip) 22.98077 +..\hbox(7.01923+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\TU/lmr/m/n/10.53937 2 +...\kern -0.0002 +...\kern 0.0002 +...\glue 0.0 plus 1.0fil +============================================================ diff --git a/ctex/test/testfiles/github472-04.uptex.tlg b/ctex/test/testfiles/github472-04.uptex.tlg new file mode 100644 index 00000000..5dd76ba0 --- /dev/null +++ b/ctex/test/testfiles/github472-04.uptex.tlg @@ -0,0 +1,122 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +Author: Xiangdong Zeng +============================================================ +TEST 1: \tableofcontents with tocloft +============================================================ +(github472-04.toc +LaTeX Font Info: Trying to load font information for JT2+zhsf on input line .... +) +LaTeX Font Info: Trying to load font information for JY2+zhsf on input line .... +) +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.53937> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +) +\tf@toc=\write... +Completed box being shipped out [2] +\vbox(633.0+0.0)x407.0 +.\glue 16.0 +.\vbox(617.0+0.0)x345.0, shifted 62.0 +..\vbox(12.0+0.0)x345.0, glue set 12.0fil +...\glue 0.0 plus 1.0fil +...\hbox(0.0+0.0)x345.0 +..\glue 25.0 +..\glue(\lineskip) 0.0 +..\vbox(550.0+0.0)x345.0, glue set 482.73729fil +...\write-{} +...\glue(\topskip) 0.0 +...\hbox(13.24948+1.80675)x345.0, glue set 314.88751fil +....\hbox(0.0+0.0)x0.0 +....\JY2/zhrm/bx/n/15.05624 目 +....\JY2/zhrm/bx/n/15.05624 录 +....\penalty 10000 +....\glue(\parfillskip) 0.0 plus 1.0fil +....\glue(\rightskip) 0.0 +...\mark{{\protect \MakeUppercase {目录}}{\protect \MakeUppercase {目录}\ETC.} +...\penalty 10000 +...\glue 10.4369 plus 0.90753 +...\glue -10.4369 plus -0.90753 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.36006 +...\hbox(9.27464+1.26471)x345.0, glue set 187.44339fill +....\glue(\leftskip) 120.1418 +....\hbox(0.0+0.0)x56.9055 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -120.1418 +....\hbox(9.27464+1.26471)x63.2363, glue set 21.07881fil +.....\JY2/zhsf/m/n/10.53937 第 +.....\glue(\xkanjiskip) 2.63484 plus 1.0 minus 1.0 +.....\OT1/cmss/m/n/10.53937 1 +.....\glue(\xkanjiskip) 2.63484 plus 1.0 minus 1.0 +.....\JY2/zhsf/m/n/10.53937 小 +.....\JY2/zhsf/m/n/10.53937 节 +.....\glue 0.0 plus 1.0fil +....\JY2/zhsf/m/n/10.53937 测 +....\JY2/zhsf/m/n/10.53937 试 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.63945+0.0)x5858.46925 +......\mathon +......\kern 2927.55127 +......\hbox(1.63945+0.0)x3.36671 +.......\OT1/cmr/bx/n/10.53937 . +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87546 +....\glue(\rightskip) 26.87546 +...\glue 10.53938 plus 1.0 +...\glue(\parskip) 0.0 +...\glue(\baselineskip) 5.9021 +...\hbox(9.27464+1.26471)x345.0, glue set 187.44339fill +....\glue(\leftskip) 120.1418 +....\hbox(0.0+0.0)x56.9055 +....\hbox(0.0+0.0)x0.0 +....\penalty 10000 +....\glue -120.1418 +....\hbox(9.27464+1.26471)x63.2363, glue set 21.07881fil +.....\JY2/zhsf/m/n/10.53937 第 +.....\glue(\xkanjiskip) 2.63484 plus 1.0 minus 1.0 +.....\OT1/cmss/m/n/10.53937 2 +.....\glue(\xkanjiskip) 2.63484 plus 1.0 minus 1.0 +.....\JY2/zhsf/m/n/10.53937 小 +.....\JY2/zhsf/m/n/10.53937 节 +.....\glue 0.0 plus 1.0fil +....\JY2/zhsf/m/n/10.53937 测 +....\JY2/zhsf/m/n/10.53937 试 +....\penalty 10000 +....\leaders 0.0 plus 1.0fill +.....\hbox(1.63945+0.0)x5858.46925 +......\mathon +......\kern 2927.55127 +......\hbox(1.63945+0.0)x3.36671 +.......\OT1/cmr/bx/n/10.53937 . +......\kern 2927.55127 +......\mathoff +....\penalty 10000 +....\hbox(6.79202+0.0)x16.33607, glue set 10.27599fil +.....\glue 0.0 plus 1.0fil minus 1.0fil +.....\OT1/cmr/bx/n/10.53937 3 +....\penalty 10000 +....\glue(\parfillskip) -26.87546 +....\glue(\rightskip) 26.87546 +...\glue -1.26471 +...\glue 0.0 plus 1.0fil +...\glue 0.0 +...\glue 0.0 plus 0.0001fil +..\glue(\baselineskip) 23.20798 +..\hbox(6.79202+0.0)x345.0, glue set 169.86516fil +...\glue 0.0 plus 1.0fil +...\OT1/cmr/m/n/10.53937 2 +...\glue 0.0 plus 1.0fil +============================================================