如何在 dcolumn (小数对齐) 中使用 sans-serif? 2024-5-24 • sans-serif dcolumn 我正在用 sans 字体设置一些时间表。我想用它dcolumn来对齐小数点上的时间,但该包假定您正在使用数学。 有没有简单的方法可以解决这个问题,并将dcolumn列设置为当前或指定的字体?我不需要任何数学符号。 答案1 您可以使用sansmath: \documentclass{article} \usepackage{dcolumn,sansmath} \newenvironment{sftabular} {\sffamily\mathversion{sans}\tabular} {\endtabular} \begin{document} \begin{sftabular}{lD{.}{.}{2.2}} xyz & 2.1 \\ abc & 12.2 \\ uvw & 1.21 \end{sftabular} \end{document} 相关内容 取消绑定 Alt-Click(gnome 经典) 仅选择 dhcp 上的首选 dns 服务器 无法在 Apple 上的 Parallels 上添加 Windows 10 中 Office 2007 的 Exchange 用户, 使用 OpenVPN tun 设备处理特定请求 /etc/init.d/或 /etc/rc.d/init.d/? 我的电脑卡在 Ubuntu 启动屏幕,无法启动 什么是“链接节拍”? 将 eps 图形转换为单个 pdf 文件 虚拟 Windows(和 Linux)系统的精确文件树?| 黑客模拟器游戏 如何在 make 中使用 bash 变量