You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the following pic shows, it seems that /href command doesn't support Chinese correctly.
% !TeX encoding = UTF-8% !TEX TS-program = xelatex\documentclass[a4paper,oneside,onecolumn,12pt]{ctexrep}
\usepackage{ulem}
\usepackage[colorlinks=false,allbordercolors={0 0 0},pdfborderstyle={/S/U/W 1}]{hyperref}
\begin{document}
This is a line aims to test the support of href when linebreaking. \href{https://github.com/latex3/hyperref}{Test English linebreak.}
这是一行文字,目的是测试hyperref在CJK文字换行时的表现。\href{https://github.com/latex3/hyperref}{测试测试测试测试测试测试测试测试测试。}
\end{document}
The text was updated successfully, but these errors were encountered:
You mean the line going through the text? That is more a xetex/xdvipdfmx problem than a hyperref problem. xdvipdfmx has its own ideas how to calculate the link area, with lualatex you would see something different.
You can try something like this to enlarge the area:
\documentclass[a4paper,oneside,onecolumn,12pt,fontset=fandol]{ctexrep} %fontset is needed for me on windows
\usepackage{ulem}
\usepackage[colorlinks=false,allbordercolors={0 0 0},pdfborderstyle={/S/U/W 1}]{hyperref}
\begin{document}
This is a line aims to test the support of href when linebreaking. \href{https://github.com/latex3/hyperref}{Test English linebreak.}
这是一行文字,目的是测试hyperref在CJK文字换行时的表现。\href{https://github.com/latex3/hyperref}{\special{pdf:xann width 0pt height 9pt depth 5pt}测试测试测试测试测试测\special{pdf:xann width 0pt height 9pt depth 5pt}试测试测试测试。}
\end{document}
As the following pic shows, it seems that
/href
command doesn't support Chinese correctly.The text was updated successfully, but these errors were encountered: