Forgot password?
 Register account
View 6494|Reply 4

请教latex怎么打竖式加减法

[Copy link]

411

Threads

1634

Posts

110K

Credits

Credits
11888

Show all posts

abababa Posted 2017-4-14 21:08 |Read mode
例如想打$AB+CD=II$这样的,用竖式加法打出来,我用了表格,但是这个$I$就很细,不能对齐。
  1. \begin{tabular}{ll}
  2. &$AB$\\
  3. +&$CD$\\
  4. \hline
  5. =&$II$
  6. \end{tabular}
Copy the Code

13

Threads

901

Posts

110K

Credits

Credits
12272

Show all posts

色k Posted 2017-4-14 21:19
那就多打几个 & 咯
  1. \begin{array}{ccc}
  2. &A&B\\
  3. +&C&D\\
  4. \hline
  5. =&I&I
  6. \end{array}
Copy the Code
\begin{array}{ccc}
&A&B\\
+&C&D\\
\hline
=&I&I
\end{array}

411

Threads

1634

Posts

110K

Credits

Credits
11888

Show all posts

 Author| abababa Posted 2017-4-14 21:34
回复 2# 色k
原来如此,谢谢。

768

Threads

4685

Posts

310K

Credits

Credits
35004

Show all posts

isee Posted 2017-4-14 23:40
用TiKZ画图解决亦可。

411

Threads

1634

Posts

110K

Credits

Credits
11888

Show all posts

 Author| abababa Posted 2017-4-15 16:26
回复 4# isee

tikz画觉得有点复杂,这个表格方式的就很好用。

Mobile version|Discuz Math Forum

2025-6-6 07:03 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit