宏包hanzibox换行后文字对不齐

发布于 2025-04-28 14:33:49

老师们好!请教一个问题,在使用hanzibox,发现换行后,对不齐文字,一般是要怎么处理?谢谢!

\documentclass{ctexart}
\usepackage{hanzibox}

\begin{document}

\noindent
\hanziboxset{frametype=咪,framecolor=red,charcolor=red,pinyinline=true,charf=\Huge,pinyinf=\tiny}
\hanzibox{你好}\\
\hanzibox{你好}
\end{document}

PixPin_2025-04-28_14-29-38.jpg

查看更多

关注者
0
被浏览
57
Sagittarius Rover
Sagittarius Rover 6小时前
我要成为Typst糕手/(ㄒoㄒ)/~~
Never use \\, use \noindent if needed.
\documentclass{ctexart}
\usepackage{hanzibox}
\hanziboxset{frametype=咪,framecolor=red,charcolor=red,pinyinline=true,charf=\Huge,pinyinf=\tiny}
\setlength{\parindent}{0pt}%
\begin{document}

\hanzibox{你好}

\hanzibox{你好啊啊啊}

\end{document}

或者

\documentclass{ctexart}
\usepackage[showframe]{geometry}
\usepackage{hanzibox}
\hanziboxset{frametype=咪,framecolor=red,charcolor=red,pinyinline=true,charf=\Huge,pinyinf=\tiny}
\begin{document}

\noindent\hanzibox{你好}

\noindent\hanzibox{你好啊啊啊}

\end{document}

image.png

1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览