English 中文(简体)
如何在LaTeX的白色空间之后设置禁忌?
原标题:How to set tab stops after whitespaces in LaTeX?

我试图在刺.环境中在LaTeX设置路障。 我的问题是,我想在几个白色空间之后打下一个禁忌。 问题当然是,LaTeX无视多个白人空间,似乎只是在实际案文之后支持设置禁忌。

我希望能够做的是,将下面的arrow子打成格式,以便它们共同走下去。

A   -> B
CD  -> A 
BDD -> F

问题在于,为了确定禁忌的目的,arrow子的外在位置被忽略。 解决办法是什么?

最佳回答

<代码>tabbing 环境允许设定表标和位置表;可将其用于模拟简单的表格。

= in the first line set a tab end, > progress to the next tab end in the second line and below.

请注意,tabbing并不扩大禁忌,因此,你需要确保两者间相距甚远。 例如,我把一些不可破碎的空间放在第1行的之后:

egin{tabbing}
A~~~~ = $	o$ = B \
CD > $	o$ > A \
BDD > $	o$ > F \
end{tabbing}

结果看起来好像

https://i.stack.imgur.com/xAGv4.png” alt=“resulteckshot”/>

使用表格(例如<代码>表)往往比较容易,但<代码>tabbing允许以后重新定义表点,因此可以用来模拟压缩案文,如源代码。

另见:LaTeX:tabbing

问题回答

如果你想用数学方式做到这一点,请在您的序言中填入“条码”

egin{align*}
  A &	o B \
  CD &	o A
end{align*}

这些营地是看不见的,相互配合,因此,arrow将走。

也可作为表格(无需<代码>amsmath >包装):

egin{tabular}{r @{$	o$} l}
  A & B \
  CD & A
end{tabular}

具体栏目中的@表示,各栏将以你喜欢的任何文号——在此情况下为arrow——从而使该符号在各行之间保持一致。

使用<代码>{hskip 4em},具体指明四处宽的白天空间,或你拥有的面积。 晚间有一些预想的白色空间特征,例如qquad> hskip2em

hskip白色space specified in this way is inflexible, that is, Tex will not change the amount of Whitespace, but You can use some such as {hskip 3em + 1em unds 1em} forspace that tries to be 3ems long, but can limit orcal to between 2ems and 4ems.





相关问题
How to make all text upper case / capital?

I want all texts in TextBlock, Label, MenuItem.Header to be displayed in upper case. The strings are taken from a ResourceDictionary e.g.: <TextBlock Text="{StaticResource String1}"/> <...

New Line Haskell

Hey。 关于本周的辅导,其中一个问题要求采用其他功能格式Line和格式List编制一个行文清单,从而形成一种功能格式。

Formatting comments in LaTeX s algorithmic environment

I want to typeset an algorithm in LaTeX. I m using the algorithmic package and environment to do so. Everything is working great except when I add comments (using COMMENT), they are output ...

How can I format columns without using Perl s format?

Often in Perl I want to print out column/row data, say, from a hash. This is simple: foreach my $k(keys %h) { print $k, " ", $h{$k}, " "; } However, if the key happens to have ...

NSDateFormat, super simple! Where am I screwing up?

Ok, this is really simple, maybe I m a getting a bit burnt out, but seems like it should work, Query XML feed, put out date string, format, display in a cell. The issue is I m a getting a NULL ...

A "safe" python HTML text formatting (ala textile)

I ve been looking around for an existing python library in the style of textile to format text for users to enter. If it was just me entering it, just textile would have been fine, but since the ...

热门标签