Forgot password
 Register account
View 18303|Reply 3

定积分最后取值时的竖线高度怎么弄?

[Copy link]

414

Threads

1641

Posts

15

Reputation

Show all posts

abababa posted 2014-9-6 18:41 |Read mode
我想让前面字母矮的时候竖线高一些,前面字母高的时候竖线随字母高度变化,具体就是
$uv\Big|_{0}^{1}$的竖线想让它高一些,而$\left.\dfrac{1}{1+\dfrac{1}{x}}\right|_{0}^{1}$的竖线高度随表达式高度变化。
能不能用一个统一的命令,比如\value{表达式}_{下限}^{上限},然后竖线达到上面说的那样?

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2014-9-6 19:40
\value 是已有的命令,要换一个名字。

定义它其实很简单啊,就是插入一个有一定高度的且宽度为0的东西,于是利用 \vphantom 即可
\newcommand\rsx[1]{\left.{#1}\vphantom{\Big|}\right|}
然后 \rsx{uv}_0^1, \rsx{\dfrac{1}{1+\dfrac{1}{x}}}_0^1 即可
\(\newcommand\rsx[1]{\left.{#1}\vphantom{\Big|}\right|}\)
\[\rsx{uv}_0^1=\rsx{\dfrac{1}{1+\dfrac{1}{x}}}_0^1\]

Comment

已被@yan12125引用  posted 2025-3-2 22:30

414

Threads

1641

Posts

15

Reputation

Show all posts

original poster abababa posted 2014-9-6 20:00
回复 2# kuing
谢谢,就是这个效果。我还在想用什么条件判断的包来判断高度呢,原来通过这样的方式解决的,我想得太复杂了。

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 13:41 GMT+8

Powered by Discuz!

Processed in 0.030750 seconds, 23 queries