Forgot password
 Register account
View 6493|Reply 4

请教latex怎么打竖式加减法

[Copy link]

414

Threads

1641

Posts

15

Reputation

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

898

Posts

8

Reputation

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}

414

Threads

1641

Posts

15

Reputation

Show all posts

original poster abababa posted 2017-4-14 21:34
回复 2# 色k
原来如此,谢谢。

764

Threads

4672

Posts

27

Reputation

Show all posts

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

414

Threads

1641

Posts

15

Reputation

Show all posts

original poster abababa posted 2017-4-15 16:26
回复 4# isee

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

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-21 13:54 GMT+8

Powered by Discuz!

Processed in 0.011705 seconds, 22 queries