楼主: oliyiyi
4067 0

【latex】多行公式间加入行间箭头 [推广有奖]

版主

已卖:2997份资源

泰斗

1%

还不是VIP/贵宾

-

TA的文库  其他...

计量文库

威望
7
论坛币
27300 个
通用积分
31674.3271
学术水平
1454 点
热心指数
1573 点
信用等级
1364 点
经验
384134 点
帖子
9629
精华
66
在线时间
5508 小时
注册时间
2007-5-21
最后登录
2025-7-8

初级学术勋章 初级热心勋章 初级信用勋章 中级信用勋章 中级学术勋章 中级热心勋章 高级热心勋章 高级学术勋章 高级信用勋章 特级热心勋章 特级学术勋章 特级信用勋章

楼主
oliyiyi 发表于 2015-11-26 19:27:31 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

一般情况下,两个公式的关系比较多的是推导与被推导的关系,通常在被推导公式前放一箭头,但是前后公式表达关联关系就出现了困难,甚而有时我们也想在公式之间加入文本,而不想让文本占据单独行,也有类似的应用场景。

例如如下效果:

实现这一效果采用mathtools宏包即可。上图的代码实现如下:

[color=rgb(51, 51, 51) !important][backcolor=rgb(188, 188, 188) !important]

[backcolor=transparent !important]

[backcolor=transparent !important]

[backcolor=transparent !important]

[backcolor=transparent !important]

[backcolor=transparent !important]

[color=rgb(153, 153, 153) !important]TeX


1


2


3


4


5


6


7


8


9


10


11


12


13


14


15


16


17


18


19


20


21


22


23


24



[color=rgb(0, 111, 224) !important]
  1.        
  2. \documentclass{article}
  3. \usepackage{mathtools}
  4. \newcommand\TextBetweenLines[1]{\ArrowBetweenLines[\text{#1}]}

  5. \begin{document}

  6. \begin{alignat*}{2}
  7.                      & & y_{0} & =\frac{\pm\sqrt{1-z^{2}}}{z} \\
  8.   \ArrowBetweenLines & & y_{0}z & =\pm\sqrt{1-z^{2}} \\
  9.   \ArrowBetweenLines & & y_{0}^{2}z^{2} & =1-z^{2}
  10. \end{alignat*}

  11. \begin{alignat*}{2}
  12.   y_{0}^{2}z^{2} & =1-z^{2} & & \\
  13.   \ArrowBetweenLines *(1+y_{0})z^{2} & =1 & & \\
  14.   \ArrowBetweenLines* z & =\pm\frac{1}{1+y_{0}^{2}}. & &
  15. \end{alignat*}

  16. \begin{alignat*}{2}
  17.                          & & D_{1} & \coloneqq C_{a}\cap\left\{ (x,y,z)\in D_{2}:x>0\right\} \\
  18.   \TextBetweenLines{and} & & D_{2} & :=\left\{ (x,y,z)\in D_{1}:x<0\right\} .
  19. \end{alignat*}

  20. \end{document}
复制代码




选自:http://tex.stackexchange.com/questions/262604/typesetting-displayed-equivalences-and-definitions-of-unequal-length


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:LaTeX Late atex LAT ATE document article

缺少币币的网友请访问有奖回帖集合
https://bbs.pinggu.org/thread-3990750-1-1.html

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-27 19:57