Table with colour cell without blank space in the corners The Next CEO of Stack...
Method for adding error messages to a dictionary given a key
How to check if all elements of 1 list are in the *same quantity* and in any order, in the list2?
Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?
How to count occurrences of text in a file?
Writing differences on a blackboard
Some questions about different axiomatic systems for neighbourhoods
Does soap repel water?
Why is my new battery behaving weirdly?
Is wanting to ask what to write an indication that you need to change your story?
WOW air has ceased operation, can I get my tickets refunded?
A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See
Why do airplanes bank sharply to the right after air-to-air refueling?
What connection does MS Office have to Netscape Navigator?
What steps are necessary to read a Modern SSD in Medieval Europe?
Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?
What is the value of α and β in a triangle?
Unclear about dynamic binding
Domestic-to-international connection at Orlando (MCO)
Can you be charged for obstruction for refusing to answer questions?
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Newlines in BSD sed vs gsed
Is there a difference between "Fahrstuhl" and "Aufzug"
Can we say or write : "No, it'sn't"?
Why does standard notation not preserve intervals (visually)
Table with colour cell without blank space in the corners
The Next CEO of Stack OverflowAltering cell colour hides cell border in LyXLatex: rowcolor in tabular not respecting table widthHow do I prevent cellcolor from over effect of hlinetabu package - gaps in vertical linescell colour overlaps cell bordersAdding colour to a cellHow to colour a cell and keep the contents in maths-mode?Cell colour overlapping cell bordersColor table cell, errorLaTeX table non-split cell with diagonal split colour
This code allows you to create a table in which the first two rows have colors. I want to create the same table but without the blanks that are left, right and middle of the cells, so that it stays uniform. How can I do this?
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{|ccc|}
hline
rowcolor[HTML]{000000}
multicolumn{3}{|c|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
tables color colortbl
add a comment |
This code allows you to create a table in which the first two rows have colors. I want to create the same table but without the blanks that are left, right and middle of the cells, so that it stays uniform. How can I do this?
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{|ccc|}
hline
rowcolor[HTML]{000000}
multicolumn{3}{|c|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
tables color colortbl
add a comment |
This code allows you to create a table in which the first two rows have colors. I want to create the same table but without the blanks that are left, right and middle of the cells, so that it stays uniform. How can I do this?
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{|ccc|}
hline
rowcolor[HTML]{000000}
multicolumn{3}{|c|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
tables color colortbl
This code allows you to create a table in which the first two rows have colors. I want to create the same table but without the blanks that are left, right and middle of the cells, so that it stays uniform. How can I do this?
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{|ccc|}
hline
rowcolor[HTML]{000000}
multicolumn{3}{|c|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
tables color colortbl
tables color colortbl
asked 13 mins ago
Carmen GonzálezCarmen González
278411
278411
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You need to add some @{}
in your table definitions. See the following MWE (code changings marked with <======
):
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{@{}|@{}ccc@{}|@{}} % <==================================
hline
rowcolor[HTML]{000000}
multicolumn{3}{|@{}c@{}|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline % <================================
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
and the result:
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%2f482350%2ftable-with-colour-cell-without-blank-space-in-the-corners%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
You need to add some @{}
in your table definitions. See the following MWE (code changings marked with <======
):
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{@{}|@{}ccc@{}|@{}} % <==================================
hline
rowcolor[HTML]{000000}
multicolumn{3}{|@{}c@{}|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline % <================================
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
and the result:
add a comment |
You need to add some @{}
in your table definitions. See the following MWE (code changings marked with <======
):
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{@{}|@{}ccc@{}|@{}} % <==================================
hline
rowcolor[HTML]{000000}
multicolumn{3}{|@{}c@{}|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline % <================================
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
and the result:
add a comment |
You need to add some @{}
in your table definitions. See the following MWE (code changings marked with <======
):
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{@{}|@{}ccc@{}|@{}} % <==================================
hline
rowcolor[HTML]{000000}
multicolumn{3}{|@{}c@{}|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline % <================================
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
and the result:
You need to add some @{}
in your table definitions. See the following MWE (code changings marked with <======
):
documentclass[aps,pre,twocolumn,amsmath,amssymb]{revtex4-1}
usepackage{array,booktabs}
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
usepackage[table]{xcolor}
usepackage{blindtext}
usepackage{graphicx}
usepackage{caption}
usepackage{float}
usepackage{xcolor,colortbl}
usepackage{verbatim}
usepackage[portuguese]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{pdfrender}
DeclareRobustCommand*{pmbb}[1]{%
textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1pt,
}{#1}%
}
hfuzz 1pt
vfuzz 1pt
setlength{parskip}{baselineskip}
begin{document}
begin{table}[H]
begin{tabular}{@{}|@{}ccc@{}|@{}} % <==================================
hline
rowcolor[HTML]{000000}
multicolumn{3}{|@{}c@{}|}{cellcolor[HTML]{000000}{color[HTML]{FFFFFF} Paquímetro B (medidas em mm)}} \ hline % <================================
rowcolor[HTML]{656565}
{color[HTML]{FFFFFF} Bloco de 20 mm} & {color[HTML]{FFFFFF} Bloco de 80 mm} & {color[HTML]{FFFFFF} Dois blocos (100 mm)} \ hline
20,0 & 80,1 & 100,1 \ hline
20,0 & 80,0 & 100,0 \ hline
cellcolor[HTML]{FFFFFF}20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,1 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & 100,1 \ hline
20,0 & 80,1 & 100,0 \ hline
20,0 & 80,0 & 100,0 \ hline
20,0 & 80,0 & cellcolor[HTML]{FFFFFF}100,1 \ hline
end{tabular}
end{table}
end{document}
and the result:
answered 3 mins ago
KurtKurt
40.2k850164
40.2k850164
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.
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%2f482350%2ftable-with-colour-cell-without-blank-space-in-the-corners%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