表格中的文本垂直居中 2024-5-23 • tables vertical-alignment 在此图像中,由于没有像g,y第一个单元格中的字符,圆括号和文本之间似乎存在错位CBSE。 有没有办法像下图一样自动将文本居中? 我在 GIMP 中编辑了以下内容,并将文本CBSE稍微向下移动,使其垂直对齐。 有没有办法在 LaTeX 中执行相同操作? 来自我的类文件的代码片段 \begin{tabular}{|M{0.295\textwidth}|c|c|c|} \hline Program & Institute & Percent/CGPA & Year of Completion \\ \hline #1 & #2 & #3 & #4 \hline \end{tabular} 答案1 这不是一个错误。这是预期的行为。括号说明了可能的下降部分。 \documentclass{article} \begin{document} (CBSE) \end{document} 如果您想调整垂直对齐,请使用\raisebox。 \documentclass{article} \begin{document} \raisebox{.1333ex}{(}CBSE\raisebox{.1333ex}{)} \end{document} 答案2 您可以使用较大字体中的小型大写字母来获得此结果,如果您是完美主义者,请添加一些负字距调整: \documentclass{article} \begin{document} XII (CBSE) \large\textsc{xii \kern-0.1em(\kern-0.07em cbse\kern-0.05em)} \Large\textsc{xii (cbse)} \end{document} 相关内容 pst-optic 示例为 Ghostscript 造成不可恢复的错误 Linux 服务器 - 配置为路由器 两个用户可以拥有相同的公网 IP 吗? 从 Visual Studio 2010 中卸载 VisualSVN 2.0 如何从 USB 安装“非免费固件”(wifi 驱动程序)? 在 CentOS 5 中使用覆盖所有模式提取 zip 文件的内容 使用 bash 验证信用卡号 无法在 MiKTeX 上安装新软件包 如何在参考书目条目中填写化学式? 打开 SharePoint 文档时出现问题,已签出,但从临时文件夹打开