TeX 的`\hfil` 和`\vfil` 有Word 解释吗?

Sea*_*red 8 latex microsoft-word

我开始喜欢 TeX\hfil\vfil宏,它们插入一个橡胶空间(分别是水平或垂直),可用于在页面上相对于边距移动内容。例如,

Some text\hfil here
Run Code Online (Sandbox Code Playgroud)

产生

+------------------------------------------------------------------------------+
| Some text                                                               here |
|                                                                              |
.                                                                              .
Run Code Online (Sandbox Code Playgroud)

Some text

\vfil

here
Run Code Online (Sandbox Code Playgroud)

产生

+------------------------------------------------------------------------------+
| Some text                                                                    |
|                                                                              |
.                                                                              .
|                                                                              |
| here                                                                         |
+------------------------------------------------------------------------------+
Run Code Online (Sandbox Code Playgroud)

有鉴于此,我们都知道我们不能总是使用我们最喜欢的工具,所以我坚持使用 MS Word 2007。我记得,滥用表格环境总是会导致眼泪,所以我宁愿避免它们。这里有任何实际的Word 类比吗?


请注意,我的意思不是垂直或水平对齐文本(因为 Word 理解术语“对齐”)——尽管在任何一种情况下文本都将跨越整个文本区域,但对齐通常意味着单词间距仍然有些统一. 我需要文本在两端保持默认间距。

Dan*_*ght 0

这是一个拼凑品;但是您也许可以通过创建一个 2 列布局部分来使用 \hfil 获得您想要的内容,其中左列中的文本左对齐,右列中的文本右对齐。

主要限制是,如果您需要一行上的一些左侧文本来超越另一行上的右侧文本。在这种情况下,您需要将这些行放在不同的列集中。如果你需要反复来回切换,它会很快变得丑陋。

+------------------------------------------------------------------------------+
| Some text with "||" to indicate the column split         ||             here |
| And some more text here would need     ||    this line and the next to be in |
| a separate set of columns from the     ||                         first line |
|                                                                              |
.                                                                              .
Run Code Online (Sandbox Code Playgroud)