怎么样,在emacs中每行都设置-justification-full而不会搞砸返回?

时间:2010-03-15 20:19:12

标签: emacs

我在emacs中遇到两个问题。

首先。 如何为整个文档设置-justification-full? 我可以成功地为一个区域做M-X set-justification-full,但我想让它在整个文档中工作。

二。 当我完成set-justification-full时,如何设置不让线路从一个地方跳到另一个地方,然后按回车键?也就是说,我有以下段落:

%%if normalized beforehand then the rule would be,
%%\begin{gather}
%%(\hat{y}_{i}^{'} \times \hat{y}_{i+1}^{'}) \cdot \hat{z}_{mst} = 1, \quad then \ \Omega > 1\\
%%(\hat{y}_{i}^{'} \times \hat{y}_{i+1}^{'}) \cdot \hat{z}_{mst} =
%%-1,\quad then \ \Omega < -1
%%\end{gather}

当我设置-justification-full时,它会将六行转换为三行,也就是说,我想要做的是每行对齐。这在emacs中是否可行?

非常感谢你的帮助。

Inhaki2006


很抱歉。这个例子没有换行,我的意思是。

%%如果事先规范化,那么规则将是,
%% \ {开始收集}
%%(\ hat {y} {i} ^ {'} \ times \ hat {y} {i + 1} ^ {'})\ cdot \ hat {z} { mst} = 1,\ quad然后\ \ Omega&gt; 1 \
%%(\ hat {y}
{i} ^ {'} \ times \ hat {y} {i + 1} ^ {'})\ cdot \ hat {z} {mst} = %% - 1,\ quad然后\ \ Omega
%% \ end {gather}

再次感谢,

1 个答案:

答案 0 :(得分:0)

首先,如何:

(defun set-justification-entire-buffer ()
  "do set-justification-full for the entire buffer"
  (interactive)
  (set-justification-full (point-min) (point-max)))