老师们好!请教一个问题,在使用hanzibox,发现换行后,对不齐文字,一般是要怎么处理?谢谢!
\documentclass{ctexart}
\usepackage{hanzibox}
\begin{document}
\noindent
\hanziboxset{frametype=咪,framecolor=red,charcolor=red,pinyinline=true,charf=\Huge,pinyinf=\tiny}
\hanzibox{你好}\\
\hanzibox{你好}
\end{document}
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}
感谢老师,厉害!
@u125794 空行是有作用的,和
\par
一样均为另起一段。而\\
仅仅是折行,不建议使用\\
。其实上面并没有回答『空格』的来源。
在
\hanziboxset
结尾,必须使用%
以抑制换行的空格(TeX里任何一个<空格>
,<换行>
乃至注释%
符号都必不可少,务必精确校对每一个字符)。谢谢老师,老师太专业了