\documentclass[10pt]{ctexart}
\usepackage[paperwidth=21cm,paperheight=29.7cm,top=2.6cm,bottom=2.533cm,right=1cm,left=1cm,headheight=24pt,footskip=41pt]{geometry}
\usepackage{color}
\linespread{1.9}
\begin{document}
\noindent
\par
\hangindent 0.4cm
\hangafter 1
\noindent
\makebox[0.4cm][r]{4. }完成句子
\quad\\[0pt]
(1).{\fontsize{60.0pt}{\baselineskip}\selectfont \CJKunderline[textformat=\color{white}]{$\frac{2}{3}$}}(大量的) time and money has been spent on the project, so they can't give it up halfway.
\quad\\[0pt]
(2).{\fontsize{50.0pt}{\baselineskip}\selectfont \CJKunderline{我是答案}}(众所周知) Americans like moving. Most of them move seven times in their life.
\end{document}
提问于:
浏览数:
2305
3 回答
0
<p>一个尝试:在加下划线的内容之前插入零宽的 `\rule`</p><p>```tex</p><p>\CJKunderline[hidden, textformat=\rule{0pt}{1.5ex}]{...}</p><p>```</p>
-
效果还可以,^_^ – wlianghe00 2020-04-23 16:03 回复
0
<p></p><p></p><p>我不太明白这样一个有文档记载的功能,为什么时至今日依然有这么多人用一些奇技淫巧来造轮子,而且还不圆。</p><p><br/></p><p><span style="color: #859900;"></span></p><p><span style="color: #859900;"></span></p><p><span style="color: #859900;">\documentclass</span>[zihao = 5]{<span style="color: #859900;">ctexart</span>}</p><p><span style="color: #859900;">\usepackage</span>{<span style="color: #859900;">xeCJKfntef</span>}</p><p><span style="color: #93a1a1;font-weight: bold;">\newcommand</span>*{<span style="color: #268bd2;">\lineskipstrut</span>}[1][2]{<span style="color: #268bd2;">\rule</span>{0sp}{#1<span style="color: #268bd2;">\baselineskip</span>}}</p><p><span style="color: #268bd2;">\begin</span>{document}</p><p>虚室生白,吉祥止止<span style="color: #268bd2;">\CJKunderline</span>{速速显形!}虚室生白,吉祥止止</p><p><br/></p><p>虚室生白,吉祥止止<span style="color: #268bd2;">\CJKunderline</span>[hidden, textformat = <span style="color: #268bd2;">\lineskipstrut</span>[1.5]]{你看不见我}虚室生白,吉祥止止</p><p><span style="color: #268bd2;">\end</span>{document}</p><p><br/></p><p><img src="/data/ueditor/php/upload/image/20200423/1587631794543313.png" title="1587631794543313.png" alt="image.png"/></p>
-
-
回复 wlianghe00 : 你的问题里没有提及,这一点,你只说是要解决「截断」的问题。代码已修改。你可以利用 \lineskipstrut[3] 来获得高度为 3 倍行距的隐形桩子,用来成高到三倍 – Liam 2020-04-23 16:51 回复
-
0
<p>因为被你的内容遮住了,使用raisebox即可</p><pre class="brush:plain;toolbar:false">\CJKunderline[textformat=\color{red}]{\raisebox{0.5ex}{$\frac{2}{3}$}}}</pre><p><br></p>
你的回答
请登录后回答
你的回答将会帮助更多人,请务必认真回答问题。