Array/tabular for long multiplication
In other topic @egreg helped me a lot but there can be thousand of bugs in horizontal long multiplication.
I am a bit frustrated and can't make array like that:
The red drawings are commas. I'm trying to use tabular it's not elegant at all.
arrays
add a comment |
In other topic @egreg helped me a lot but there can be thousand of bugs in horizontal long multiplication.
I am a bit frustrated and can't make array like that:
The red drawings are commas. I'm trying to use tabular it's not elegant at all.
arrays
1
Could you please add a code and a link to "the other topic"?
– JouleV
Apr 14 at 19:24
add a comment |
In other topic @egreg helped me a lot but there can be thousand of bugs in horizontal long multiplication.
I am a bit frustrated and can't make array like that:
The red drawings are commas. I'm trying to use tabular it's not elegant at all.
arrays
In other topic @egreg helped me a lot but there can be thousand of bugs in horizontal long multiplication.
I am a bit frustrated and can't make array like that:
The red drawings are commas. I'm trying to use tabular it's not elegant at all.
arrays
arrays
edited Apr 14 at 19:29
Simeon Simeonov
asked Apr 14 at 19:23
Simeon SimeonovSimeon Simeonov
4847
4847
1
Could you please add a code and a link to "the other topic"?
– JouleV
Apr 14 at 19:24
add a comment |
1
Could you please add a code and a link to "the other topic"?
– JouleV
Apr 14 at 19:24
1
1
Could you please add a code and a link to "the other topic"?
– JouleV
Apr 14 at 19:24
Could you please add a code and a link to "the other topic"?
– JouleV
Apr 14 at 19:24
add a comment |
1 Answer
1
active
oldest
votes
Is this what you seek? It uses tabstackengine
.
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&&mathllap{30{,}24cdot5{,}12}\
TABcline{1-8}
&&&&6&0&4&8\
+,&&&3&0&2&4&\
&1&5&1&2&0&&\
TABcline{1-8}
&1&5&4&{,}8&3&&&
}
end{document}
SUPPLEMENT
For cases where there are an even number of lines between the rules, one needs to raise the +
half way, here with +
in lieu of +
:
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
newcommand+{smash{raisebox{.5baselineskip}{$+$}}}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&mathllap{9{,}37cdot1{,}90}\
TABcline{1-7}
&&&8&4&3&3\
+,&&9&3&7&&\
TABcline{1-7}
&1&7&{,}8&0&&
}
end{document}
+1, but result should be 154,2 :-)
– Zarko
Apr 14 at 20:12
Good but when I have only 2 numbers for addition like most of the time the+
should be centered between them like this: imgur.com/a/yPurnum
– Simeon Simeonov
Apr 15 at 11:52
1
@SimeonSimeonov Please see the supplement to my answer.
– Steven B. Segletes
Apr 15 at 12:14
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484844%2farray-tabular-for-long-multiplication%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this what you seek? It uses tabstackengine
.
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&&mathllap{30{,}24cdot5{,}12}\
TABcline{1-8}
&&&&6&0&4&8\
+,&&&3&0&2&4&\
&1&5&1&2&0&&\
TABcline{1-8}
&1&5&4&{,}8&3&&&
}
end{document}
SUPPLEMENT
For cases where there are an even number of lines between the rules, one needs to raise the +
half way, here with +
in lieu of +
:
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
newcommand+{smash{raisebox{.5baselineskip}{$+$}}}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&mathllap{9{,}37cdot1{,}90}\
TABcline{1-7}
&&&8&4&3&3\
+,&&9&3&7&&\
TABcline{1-7}
&1&7&{,}8&0&&
}
end{document}
+1, but result should be 154,2 :-)
– Zarko
Apr 14 at 20:12
Good but when I have only 2 numbers for addition like most of the time the+
should be centered between them like this: imgur.com/a/yPurnum
– Simeon Simeonov
Apr 15 at 11:52
1
@SimeonSimeonov Please see the supplement to my answer.
– Steven B. Segletes
Apr 15 at 12:14
add a comment |
Is this what you seek? It uses tabstackengine
.
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&&mathllap{30{,}24cdot5{,}12}\
TABcline{1-8}
&&&&6&0&4&8\
+,&&&3&0&2&4&\
&1&5&1&2&0&&\
TABcline{1-8}
&1&5&4&{,}8&3&&&
}
end{document}
SUPPLEMENT
For cases where there are an even number of lines between the rules, one needs to raise the +
half way, here with +
in lieu of +
:
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
newcommand+{smash{raisebox{.5baselineskip}{$+$}}}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&mathllap{9{,}37cdot1{,}90}\
TABcline{1-7}
&&&8&4&3&3\
+,&&9&3&7&&\
TABcline{1-7}
&1&7&{,}8&0&&
}
end{document}
+1, but result should be 154,2 :-)
– Zarko
Apr 14 at 20:12
Good but when I have only 2 numbers for addition like most of the time the+
should be centered between them like this: imgur.com/a/yPurnum
– Simeon Simeonov
Apr 15 at 11:52
1
@SimeonSimeonov Please see the supplement to my answer.
– Steven B. Segletes
Apr 15 at 12:14
add a comment |
Is this what you seek? It uses tabstackengine
.
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&&mathllap{30{,}24cdot5{,}12}\
TABcline{1-8}
&&&&6&0&4&8\
+,&&&3&0&2&4&\
&1&5&1&2&0&&\
TABcline{1-8}
&1&5&4&{,}8&3&&&
}
end{document}
SUPPLEMENT
For cases where there are an even number of lines between the rules, one needs to raise the +
half way, here with +
in lieu of +
:
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
newcommand+{smash{raisebox{.5baselineskip}{$+$}}}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&mathllap{9{,}37cdot1{,}90}\
TABcline{1-7}
&&&8&4&3&3\
+,&&9&3&7&&\
TABcline{1-7}
&1&7&{,}8&0&&
}
end{document}
Is this what you seek? It uses tabstackengine
.
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&&mathllap{30{,}24cdot5{,}12}\
TABcline{1-8}
&&&&6&0&4&8\
+,&&&3&0&2&4&\
&1&5&1&2&0&&\
TABcline{1-8}
&1&5&4&{,}8&3&&&
}
end{document}
SUPPLEMENT
For cases where there are an even number of lines between the rules, one needs to raise the +
half way, here with +
in lieu of +
:
documentclass[12pt]{article}
usepackage{mathtools}
usepackage[TABcline]{tabstackengine}
newcommand+{smash{raisebox{.5baselineskip}{$+$}}}
TABstackMath
begin{document}
tabbedShortunderstack[r]{
&&&&&&mathllap{9{,}37cdot1{,}90}\
TABcline{1-7}
&&&8&4&3&3\
+,&&9&3&7&&\
TABcline{1-7}
&1&7&{,}8&0&&
}
end{document}
edited Apr 15 at 12:19
answered Apr 14 at 20:08
Steven B. SegletesSteven B. Segletes
163k9207419
163k9207419
+1, but result should be 154,2 :-)
– Zarko
Apr 14 at 20:12
Good but when I have only 2 numbers for addition like most of the time the+
should be centered between them like this: imgur.com/a/yPurnum
– Simeon Simeonov
Apr 15 at 11:52
1
@SimeonSimeonov Please see the supplement to my answer.
– Steven B. Segletes
Apr 15 at 12:14
add a comment |
+1, but result should be 154,2 :-)
– Zarko
Apr 14 at 20:12
Good but when I have only 2 numbers for addition like most of the time the+
should be centered between them like this: imgur.com/a/yPurnum
– Simeon Simeonov
Apr 15 at 11:52
1
@SimeonSimeonov Please see the supplement to my answer.
– Steven B. Segletes
Apr 15 at 12:14
+1, but result should be 154,2 :-)
– Zarko
Apr 14 at 20:12
+1, but result should be 154,2 :-)
– Zarko
Apr 14 at 20:12
Good but when I have only 2 numbers for addition like most of the time the
+
should be centered between them like this: imgur.com/a/yPurnum– Simeon Simeonov
Apr 15 at 11:52
Good but when I have only 2 numbers for addition like most of the time the
+
should be centered between them like this: imgur.com/a/yPurnum– Simeon Simeonov
Apr 15 at 11:52
1
1
@SimeonSimeonov Please see the supplement to my answer.
– Steven B. Segletes
Apr 15 at 12:14
@SimeonSimeonov Please see the supplement to my answer.
– Steven B. Segletes
Apr 15 at 12:14
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484844%2farray-tabular-for-long-multiplication%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Could you please add a code and a link to "the other topic"?
– JouleV
Apr 14 at 19:24