如何实现“固定列宽,自动换行 且有下框线”

发布于 2021-05-20 22:51:56

尊敬的各位大佬!

参考了 https://github.com/x-magus/ThesisUESTC
为了实现image.png

我的代码

\begin{tabular}{@{}lp{8.4cm}@{}}%
        {\fontsize{16pt}{20pt}\selectfont\textbf{论文题目:}} & \multirow[t]{2}{8.4cm}{
          \centering\fontsize{16pt}{24pt}\selectfont
          \hfut@title 基线 你在哪? 给我对准} \\
        \cline{2-2}
                & \\
        \cline{2-2}
      \end{tabular}

效果:

image.png


在这个表格之前 我使用了 \renewcommand\arraystretch{1.75},重定义的表格的行距,查看了 multirow 的宏包说明,可能是基线的问题?
image.png

我该如何解决这个基线对准的问题呢? 或者有什么其他的方案呢。或者我该去读什么文档?

谢谢大佬阅读!

查看更多

关注者
0
被浏览
1.3k
3 个回答
LaTeXStudio
LaTeXStudio 2021-05-20
这家伙很懒,什么也没写!

实现的话 简单就是定义两个命令,一个放在上面,一个放在下面,这样方便很多。自己这样调整太麻烦了。

Poet
Poet 2021-05-21
这家伙很懒,什么也没写!

解决了。

在设置\renewcommand\arraystretch{1.75}的情况下 对\multirow的内容\linespread{1.75}\selectfont

\begin{tabular}{@{}lp{8.4cm}@{}}%
        {\fontsize{16pt}{20pt}\selectfont\textbf{论文题目:}} & \multirow[t]{2}{8.4cm}{
          \centering\linespread{1.75}\fontsize{16pt}{20pt}\selectfont
          \hfut@title} \\
        \cline{2-2}
                & \\
        \cline{2-2}
      \end{tabular}
行者
行者 2021-08-04
这家伙很懒,什么也没写!

这里有一个解决方法:“固定列宽、内容居中、自动换行、且有下画线”效果的一种实现方法,https://latexstudio.net/index/details/index/mid/1799.html

image.png

原始出处:Cut string into pieces,https://tex.stackexchange.com/questions/609378/cut-string-into-pieces

撰写答案

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

发布
问题

分享
好友

手机
浏览

扫码手机浏览