CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
980 stars 124 forks source link

Enable `pkuthss` test and update contrib testfiles #665

Closed muzimuzhi closed 1 year ago

muzimuzhi commented 1 year ago
CasperVector commented 1 year ago

我这里没注意到什么明显的问题,只是这里的链接框稍显奇怪: pkuthss-test-13

muzimuzhi commented 1 year ago

是 FandolSong 字体的问题。

ctex 的测试会在三个系统下运行,所以设置了(向 pkuthss 文档类传递了选项)fontset=fandol 来生成相同的测试结果。然而 FandolSong 在 xetex (xdvipdfmx) 下的字符高度似乎有问题,Fandol 系列的其他字体正常,FandolSong 在 luatex 下也正常。

% !TeX TS-program = xelatex
\documentclass{article}
\usepackage{fontspec}
\usepackage{hyperref}

\begin{document}
\UseName{clist_map_inline:nn}
  { FandolSong, FandolHei, FandolFang, FandolKai }
  {
    {\fontspec{#1}#1: \ref{sec},\hyperref[sec]{中文}}\par
  }

\section{title}\label{sec}
\end{document}
Harry-Chen commented 1 year ago

我看起来也没问题