![将句子对齐。就像 Word 中的标尺一样!](https://linux22.com/image/407585/%E5%B0%86%E5%8F%A5%E5%AD%90%E5%AF%B9%E9%BD%90%E3%80%82%E5%B0%B1%E5%83%8F%20Word%20%E4%B8%AD%E7%9A%84%E6%A0%87%E5%B0%BA%E4%B8%80%E6%A0%B7%EF%BC%81.png)
本质上,我希望能够将非粗体句子对齐。在 Word 中,我会使用标尺。就像您忽略所有下划线一样
正则系综:具有固定粒子数、体积和温度的系统。__________________(微正则集合具有固定的能量而不是温度!)
答案1
这里介绍两种方式:一种是用description
环境+调整参数,一种是用linegoal
包:
\documentclass[11pt]{article}
\usepackage{geometry}
\usepackage{calc}
\usepackage{linegoal}
\usepackage{enumitem}
\begin{document}
\sffamily
\begin{description}[font = \sffamily\bfseries, leftmargin=\widthof{\bfseries Canonical Ensemble:\hskip\labelsep}]
\item[Canonical Ensemble:]System with fixed particle number, volume and temperature.\\ (Microcanonical ensemble has fixed energy instead of temperature!)
\end{description}
\vskip 1cm
\noindent\textbf{Canonical Ensemble:}\enspace\parbox[t]{\linegoal}{System with fixed particle number, volume and temperature.\\ (Microcanonical ensemble has fixed energy instead of temperature!)}
\end{document}
答案2
答案3
我推荐Sango建议的方法,但你也可以这样做。
\documentclass{standalone}
\begin{document}
\noindent
\begin{tabular}{p{0.3\textwidth} p{0.6\textwidth}}
\textbf{Canonical Ensemble:} & System with fixed particle number, volume and temperature.
Microcanonical ensemble has fixed energy instead of temperature!
\end{tabular}
\end{document}