How to put “+” and “x” after hline in tabular, and reducing space?
I want to write "+" and "x" after hline, and I want reducing the space between number and number.
From this
become
This is my code
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
begin{document}
begin{center}
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
spacing symbols
add a comment |
I want to write "+" and "x" after hline, and I want reducing the space between number and number.
From this
become
This is my code
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
begin{document}
begin{center}
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
spacing symbols
add a comment |
I want to write "+" and "x" after hline, and I want reducing the space between number and number.
From this
become
This is my code
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
begin{document}
begin{center}
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
spacing symbols
I want to write "+" and "x" after hline, and I want reducing the space between number and number.
From this
become
This is my code
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
begin{document}
begin{center}
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
spacing symbols
spacing symbols
asked 4 hours ago
Ongky Denny Wijaya
1037
1037
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
usepackage{tikz}
usetikzlibrary{tikzmark,calc}
begin{document}
begin{center}
begin{tabular}{*{8}{@{,}c}}
&&&&6&0&0&1\
&&&&&2&7&tikzmarknode{2a}{2}\
hline %$times$
&&&1&4&0&0&tikzmarknode{2b}{2}\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
hline%$+$
&2&1&3&4&2&7&tikzmarknode{2c}{2}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
end{tikzpicture}
end{center}
end{document}
+1. As a "good housekeeping" measure, maybe also replaceleft=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm
withmargin=2cm
?
– Mico
38 mins ago
add a comment |
To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}
. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}
.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[margin=2cm]{geometry}
begin{document}
begin{center}
setlengthtabcolsep{0pt} % <-- new
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
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%2f467054%2fhow-to-put-and-x-after-hline-in-tabular-and-reducing-space%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
usepackage{tikz}
usetikzlibrary{tikzmark,calc}
begin{document}
begin{center}
begin{tabular}{*{8}{@{,}c}}
&&&&6&0&0&1\
&&&&&2&7&tikzmarknode{2a}{2}\
hline %$times$
&&&1&4&0&0&tikzmarknode{2b}{2}\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
hline%$+$
&2&1&3&4&2&7&tikzmarknode{2c}{2}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
end{tikzpicture}
end{center}
end{document}
+1. As a "good housekeeping" measure, maybe also replaceleft=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm
withmargin=2cm
?
– Mico
38 mins ago
add a comment |
Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
usepackage{tikz}
usetikzlibrary{tikzmark,calc}
begin{document}
begin{center}
begin{tabular}{*{8}{@{,}c}}
&&&&6&0&0&1\
&&&&&2&7&tikzmarknode{2a}{2}\
hline %$times$
&&&1&4&0&0&tikzmarknode{2b}{2}\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
hline%$+$
&2&1&3&4&2&7&tikzmarknode{2c}{2}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
end{tikzpicture}
end{center}
end{document}
+1. As a "good housekeeping" measure, maybe also replaceleft=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm
withmargin=2cm
?
– Mico
38 mins ago
add a comment |
Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
usepackage{tikz}
usetikzlibrary{tikzmark,calc}
begin{document}
begin{center}
begin{tabular}{*{8}{@{,}c}}
&&&&6&0&0&1\
&&&&&2&7&tikzmarknode{2a}{2}\
hline %$times$
&&&1&4&0&0&tikzmarknode{2b}{2}\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
hline%$+$
&2&1&3&4&2&7&tikzmarknode{2c}{2}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
end{tikzpicture}
end{center}
end{document}
Here is a proposal. Decreasing the distance is standard. In order to place the symbols, I am loading TikZ. Loading TikZ for only this may be overkill.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
usepackage{tikz}
usetikzlibrary{tikzmark,calc}
begin{document}
begin{center}
begin{tabular}{*{8}{@{,}c}}
&&&&6&0&0&1\
&&&&&2&7&tikzmarknode{2a}{2}\
hline %$times$
&&&1&4&0&0&tikzmarknode{2b}{2}\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$tikzmarknode{dot}{cdot}$\
hline%$+$
&2&1&3&4&2&7&tikzmarknode{2c}{2}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
node at ([xshift=5mm]$(2a.south)!0.6!(2b.north)$) {$times$};
node at ([xshift=5mm]$(dot.south)!0.6!(2c.north)$) {$+$};
end{tikzpicture}
end{center}
end{document}
edited 3 hours ago
answered 4 hours ago
marmot
85.2k495179
85.2k495179
+1. As a "good housekeeping" measure, maybe also replaceleft=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm
withmargin=2cm
?
– Mico
38 mins ago
add a comment |
+1. As a "good housekeeping" measure, maybe also replaceleft=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm
withmargin=2cm
?
– Mico
38 mins ago
+1. As a "good housekeeping" measure, maybe also replace
left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm
with margin=2cm
?– Mico
38 mins ago
+1. As a "good housekeeping" measure, maybe also replace
left=2.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm
with margin=2cm
?– Mico
38 mins ago
add a comment |
To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}
. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}
.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[margin=2cm]{geometry}
begin{document}
begin{center}
setlengthtabcolsep{0pt} % <-- new
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
add a comment |
To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}
. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}
.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[margin=2cm]{geometry}
begin{document}
begin{center}
setlengthtabcolsep{0pt} % <-- new
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
add a comment |
To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}
. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}
.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[margin=2cm]{geometry}
begin{document}
begin{center}
setlengthtabcolsep{0pt} % <-- new
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
To snug up the numerals, all you need to do is add the instruction setlengthtabcolsep{0pt}
. If the result looks too tight, maybe try setlengthtabcolsep{0.25pt}
.
documentclass[a4paper,12pt,oneside]{letter}
usepackage[margin=2cm]{geometry}
begin{document}
begin{center}
setlengthtabcolsep{0pt} % <-- new
begin{tabular}{cccccccc}
&&&&6&0&0&1\
&&&&&2&7&2\
hline$times$
&&&1&4&0&0&2\
&&5&2&0&0&7&$cdot$\
&1&4&0&0&2&$cdot$&$cdot$\
hline$+$
&2&1&3&4&2&7&2
end{tabular}
end{center}
end{document}
answered 39 mins ago
Mico
273k30369756
273k30369756
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f467054%2fhow-to-put-and-x-after-hline-in-tabular-and-reducing-space%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