Math cases align being colored as a tableTable with partially colored cellsColored text in table is floatingcolored table with some bold colored linesExhaustive Information about text alignment in TabularTabular and grid typesettingtabu package - gaps in vertical linesTikZ: Drawing an arc from an intersection to an intersectionAlign colored numbers in tableRecolor text, such that floats and footnotes are affected correctlycolored math with the align environment

Is there a DSLR/mirorless camera with minimal options like a classic, simple SLR?

What differences exist between adamantine and adamantite in all editions of D&D?

Please figure out this Pan digital Prince

Java Servlet & JSP simple login

How do free-speech protections in the United States apply in public to corporate misrepresentations?

A word that means "blending into a community too much"

Is the use of umgeben in the passive unusual?

Is using 'echo' to display attacker-controlled data on the terminal dangerous?

A map of non-pathological topology?

Section numbering in binary

Does the Nuka-Cola bottler actually generate nuka cola?

Why is Na5 not played in this line of the French Defense, Advance Variation?

Electricity free spaceship

How can I spread content from an ancient text without governmental supervision?

Do you have to have figures when playing D&D?

Write a function that checks if a string starts with or contains something

What STL algorithm can determine if exactly one item in a container satisfies a predicate?

Is Lambda Calculus purely syntactic?

Should I refuse to be named as co-author of a low quality paper?

Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?

What is this Amiga 1200 mod?

Grep Match and extract

Is it possible to fly backward if you have really strong headwind?

Separate SPI data



Math cases align being colored as a table


Table with partially colored cellsColored text in table is floatingcolored table with some bold colored linesExhaustive Information about text alignment in TabularTabular and grid typesettingtabu package - gaps in vertical linesTikZ: Drawing an arc from an intersection to an intersectionAlign colored numbers in tableRecolor text, such that floats and footnotes are affected correctlycolored math with the align environment













5















My cases environment is being colored as a table. I do not want that. Seems tikz is causing this, because removing it from document fix, but I use tikz everywhere in my real document.



Is there any other solutions for coloring tables without mess with cases environment?



Below the MWE (compiled with LuaLatex)



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

rowcolors2greenpink

begintable[htb]
centering
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument









share|improve this question






















  • When one removes usepackagetikz from your MWE one gets ! Undefined control sequence. l.8 rowcolors 2greenpink. True, the cases won't be colored then but is this really what you want to say? Can you provide us with a code which runs when removing tikz and substantiates that tikz is the culprit?

    – marmot
    8 hours ago











  • Please also remove the rowcolors. Since, seems rowcolors is being provided by tikz.

    – Lin
    8 hours ago












  • Seems is a mix of [table] parameter and rowcolors, don't know who really provides. Don't know enough about latex internals.

    – Lin
    8 hours ago











  • Yes, if you remove rowcolors, neither the table nor the cases environment will be colored. rowcolors can be made work by adding usepackage[table]xcolor usepackagecolortbl, i.e. you do not need tikz for that. So if you do not want the cases to be colored, either do not use rowcolors, or just use them locally in the tables you want to color.

    – marmot
    8 hours ago











  • should be used the xcolor or colortbl or both?

    – Lin
    8 hours ago















5















My cases environment is being colored as a table. I do not want that. Seems tikz is causing this, because removing it from document fix, but I use tikz everywhere in my real document.



Is there any other solutions for coloring tables without mess with cases environment?



Below the MWE (compiled with LuaLatex)



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

rowcolors2greenpink

begintable[htb]
centering
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument









share|improve this question






















  • When one removes usepackagetikz from your MWE one gets ! Undefined control sequence. l.8 rowcolors 2greenpink. True, the cases won't be colored then but is this really what you want to say? Can you provide us with a code which runs when removing tikz and substantiates that tikz is the culprit?

    – marmot
    8 hours ago











  • Please also remove the rowcolors. Since, seems rowcolors is being provided by tikz.

    – Lin
    8 hours ago












  • Seems is a mix of [table] parameter and rowcolors, don't know who really provides. Don't know enough about latex internals.

    – Lin
    8 hours ago











  • Yes, if you remove rowcolors, neither the table nor the cases environment will be colored. rowcolors can be made work by adding usepackage[table]xcolor usepackagecolortbl, i.e. you do not need tikz for that. So if you do not want the cases to be colored, either do not use rowcolors, or just use them locally in the tables you want to color.

    – marmot
    8 hours ago











  • should be used the xcolor or colortbl or both?

    – Lin
    8 hours ago













5












5








5


0






My cases environment is being colored as a table. I do not want that. Seems tikz is causing this, because removing it from document fix, but I use tikz everywhere in my real document.



Is there any other solutions for coloring tables without mess with cases environment?



Below the MWE (compiled with LuaLatex)



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

rowcolors2greenpink

begintable[htb]
centering
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument









share|improve this question














My cases environment is being colored as a table. I do not want that. Seems tikz is causing this, because removing it from document fix, but I use tikz everywhere in my real document.



Is there any other solutions for coloring tables without mess with cases environment?



Below the MWE (compiled with LuaLatex)



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

rowcolors2greenpink

begintable[htb]
centering
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument






tikz-pgf tables color






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 8 hours ago









LinLin

40017




40017












  • When one removes usepackagetikz from your MWE one gets ! Undefined control sequence. l.8 rowcolors 2greenpink. True, the cases won't be colored then but is this really what you want to say? Can you provide us with a code which runs when removing tikz and substantiates that tikz is the culprit?

    – marmot
    8 hours ago











  • Please also remove the rowcolors. Since, seems rowcolors is being provided by tikz.

    – Lin
    8 hours ago












  • Seems is a mix of [table] parameter and rowcolors, don't know who really provides. Don't know enough about latex internals.

    – Lin
    8 hours ago











  • Yes, if you remove rowcolors, neither the table nor the cases environment will be colored. rowcolors can be made work by adding usepackage[table]xcolor usepackagecolortbl, i.e. you do not need tikz for that. So if you do not want the cases to be colored, either do not use rowcolors, or just use them locally in the tables you want to color.

    – marmot
    8 hours ago











  • should be used the xcolor or colortbl or both?

    – Lin
    8 hours ago

















  • When one removes usepackagetikz from your MWE one gets ! Undefined control sequence. l.8 rowcolors 2greenpink. True, the cases won't be colored then but is this really what you want to say? Can you provide us with a code which runs when removing tikz and substantiates that tikz is the culprit?

    – marmot
    8 hours ago











  • Please also remove the rowcolors. Since, seems rowcolors is being provided by tikz.

    – Lin
    8 hours ago












  • Seems is a mix of [table] parameter and rowcolors, don't know who really provides. Don't know enough about latex internals.

    – Lin
    8 hours ago











  • Yes, if you remove rowcolors, neither the table nor the cases environment will be colored. rowcolors can be made work by adding usepackage[table]xcolor usepackagecolortbl, i.e. you do not need tikz for that. So if you do not want the cases to be colored, either do not use rowcolors, or just use them locally in the tables you want to color.

    – marmot
    8 hours ago











  • should be used the xcolor or colortbl or both?

    – Lin
    8 hours ago
















When one removes usepackagetikz from your MWE one gets ! Undefined control sequence. l.8 rowcolors 2greenpink. True, the cases won't be colored then but is this really what you want to say? Can you provide us with a code which runs when removing tikz and substantiates that tikz is the culprit?

– marmot
8 hours ago





When one removes usepackagetikz from your MWE one gets ! Undefined control sequence. l.8 rowcolors 2greenpink. True, the cases won't be colored then but is this really what you want to say? Can you provide us with a code which runs when removing tikz and substantiates that tikz is the culprit?

– marmot
8 hours ago













Please also remove the rowcolors. Since, seems rowcolors is being provided by tikz.

– Lin
8 hours ago






Please also remove the rowcolors. Since, seems rowcolors is being provided by tikz.

– Lin
8 hours ago














Seems is a mix of [table] parameter and rowcolors, don't know who really provides. Don't know enough about latex internals.

– Lin
8 hours ago





Seems is a mix of [table] parameter and rowcolors, don't know who really provides. Don't know enough about latex internals.

– Lin
8 hours ago













Yes, if you remove rowcolors, neither the table nor the cases environment will be colored. rowcolors can be made work by adding usepackage[table]xcolor usepackagecolortbl, i.e. you do not need tikz for that. So if you do not want the cases to be colored, either do not use rowcolors, or just use them locally in the tables you want to color.

– marmot
8 hours ago





Yes, if you remove rowcolors, neither the table nor the cases environment will be colored. rowcolors can be made work by adding usepackage[table]xcolor usepackagecolortbl, i.e. you do not need tikz for that. So if you do not want the cases to be colored, either do not use rowcolors, or just use them locally in the tables you want to color.

– marmot
8 hours ago













should be used the xcolor or colortbl or both?

– Lin
8 hours ago





should be used the xcolor or colortbl or both?

– Lin
8 hours ago










1 Answer
1






active

oldest

votes


















5














I read your question as



  • you want to color the table and not the cases environment and

  • you want to use tikz.

This can be accomplished by using rowcolors only locally.



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

begintable[htb]
centeringrowcolors2greenpink
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument


enter image description here



Instead of usepackagetikz you could also use



usepackage[table]xcolor
usepackagecolortbl


to make the above example compile.



Of course, you can make things more automatic by patching begintable etc. but I am not necessarily a fan of these hacks.






share|improve this answer

























  • thanks. That is what I was trying to figure out.

    – Lin
    8 hours ago











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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f494863%2fmath-cases-align-being-colored-as-a-table%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









5














I read your question as



  • you want to color the table and not the cases environment and

  • you want to use tikz.

This can be accomplished by using rowcolors only locally.



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

begintable[htb]
centeringrowcolors2greenpink
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument


enter image description here



Instead of usepackagetikz you could also use



usepackage[table]xcolor
usepackagecolortbl


to make the above example compile.



Of course, you can make things more automatic by patching begintable etc. but I am not necessarily a fan of these hacks.






share|improve this answer

























  • thanks. That is what I was trying to figure out.

    – Lin
    8 hours ago















5














I read your question as



  • you want to color the table and not the cases environment and

  • you want to use tikz.

This can be accomplished by using rowcolors only locally.



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

begintable[htb]
centeringrowcolors2greenpink
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument


enter image description here



Instead of usepackagetikz you could also use



usepackage[table]xcolor
usepackagecolortbl


to make the above example compile.



Of course, you can make things more automatic by patching begintable etc. but I am not necessarily a fan of these hacks.






share|improve this answer

























  • thanks. That is what I was trying to figure out.

    – Lin
    8 hours ago













5












5








5







I read your question as



  • you want to color the table and not the cases environment and

  • you want to use tikz.

This can be accomplished by using rowcolors only locally.



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

begintable[htb]
centeringrowcolors2greenpink
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument


enter image description here



Instead of usepackagetikz you could also use



usepackage[table]xcolor
usepackagecolortbl


to make the above example compile.



Of course, you can make things more automatic by patching begintable etc. but I am not necessarily a fan of these hacks.






share|improve this answer















I read your question as



  • you want to color the table and not the cases environment and

  • you want to use tikz.

This can be accomplished by using rowcolors only locally.



documentclass[table]article
usepackagepolyglossia
usepackageamsmath
usepackagetikz

begindocument

begintable[htb]
centeringrowcolors2greenpink
begintabularc
a & b \
hline
1 & 2 \
3 & 4
endtabular
endtable

beginalign*
begincases
x + y &le 2 \
x - y &ge 2
endcases
endalign*
enddocument


enter image description here



Instead of usepackagetikz you could also use



usepackage[table]xcolor
usepackagecolortbl


to make the above example compile.



Of course, you can make things more automatic by patching begintable etc. but I am not necessarily a fan of these hacks.







share|improve this answer














share|improve this answer



share|improve this answer








edited 6 hours ago

























answered 8 hours ago









marmotmarmot

134k6174322




134k6174322












  • thanks. That is what I was trying to figure out.

    – Lin
    8 hours ago

















  • thanks. That is what I was trying to figure out.

    – Lin
    8 hours ago
















thanks. That is what I was trying to figure out.

– Lin
8 hours ago





thanks. That is what I was trying to figure out.

– Lin
8 hours ago

















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f494863%2fmath-cases-align-being-colored-as-a-table%23new-answer', 'question_page');

);

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







Popular posts from this blog

ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу