Subfiles colour Error











up vote
0
down vote

favorite












I have a main file and four subfiles. The main compiles perfectly, but each of the subfiles give the package xcolor Error: Undefined color model. What’s wrong?



Here is the structure of the main file:



documentclass[12pt,a4paper,table,usenames, dvipsnames]{book}
usepackage[table]{xcolor}
usepackage{enumitem,xcolor}
usepackage{empheq}
usepackage[most]{tcolorbox}
newtcbox{mymath}[1]{%
nobeforeafter, math upper, tcbox raise base,
enhanced, colframe=blue!30!black,
colback=def!20, boxrule=1pt,
#1}

newcommand*widefbox[1]{fbox{hspace{0.5em}#1hspace{0.5em}}}

usepackage{subfiles}

begin{document}

end{document}









share|improve this question









New contributor




Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • You are calling twice the package xcolor which may generate this error, perhaps with an option conflict.
    – DRi
    Nov 13 at 10:06












  • I made the corrections you’ ve suggested. The main file compiles OK. The subfiles return the error: !Package xcolorError: Undefined color “Black”. Same for all other colors.
    – Dimitrios Sykias
    Nov 14 at 21:33















up vote
0
down vote

favorite












I have a main file and four subfiles. The main compiles perfectly, but each of the subfiles give the package xcolor Error: Undefined color model. What’s wrong?



Here is the structure of the main file:



documentclass[12pt,a4paper,table,usenames, dvipsnames]{book}
usepackage[table]{xcolor}
usepackage{enumitem,xcolor}
usepackage{empheq}
usepackage[most]{tcolorbox}
newtcbox{mymath}[1]{%
nobeforeafter, math upper, tcbox raise base,
enhanced, colframe=blue!30!black,
colback=def!20, boxrule=1pt,
#1}

newcommand*widefbox[1]{fbox{hspace{0.5em}#1hspace{0.5em}}}

usepackage{subfiles}

begin{document}

end{document}









share|improve this question









New contributor




Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • You are calling twice the package xcolor which may generate this error, perhaps with an option conflict.
    – DRi
    Nov 13 at 10:06












  • I made the corrections you’ ve suggested. The main file compiles OK. The subfiles return the error: !Package xcolorError: Undefined color “Black”. Same for all other colors.
    – Dimitrios Sykias
    Nov 14 at 21:33













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a main file and four subfiles. The main compiles perfectly, but each of the subfiles give the package xcolor Error: Undefined color model. What’s wrong?



Here is the structure of the main file:



documentclass[12pt,a4paper,table,usenames, dvipsnames]{book}
usepackage[table]{xcolor}
usepackage{enumitem,xcolor}
usepackage{empheq}
usepackage[most]{tcolorbox}
newtcbox{mymath}[1]{%
nobeforeafter, math upper, tcbox raise base,
enhanced, colframe=blue!30!black,
colback=def!20, boxrule=1pt,
#1}

newcommand*widefbox[1]{fbox{hspace{0.5em}#1hspace{0.5em}}}

usepackage{subfiles}

begin{document}

end{document}









share|improve this question









New contributor




Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a main file and four subfiles. The main compiles perfectly, but each of the subfiles give the package xcolor Error: Undefined color model. What’s wrong?



Here is the structure of the main file:



documentclass[12pt,a4paper,table,usenames, dvipsnames]{book}
usepackage[table]{xcolor}
usepackage{enumitem,xcolor}
usepackage{empheq}
usepackage[most]{tcolorbox}
newtcbox{mymath}[1]{%
nobeforeafter, math upper, tcbox raise base,
enhanced, colframe=blue!30!black,
colback=def!20, boxrule=1pt,
#1}

newcommand*widefbox[1]{fbox{hspace{0.5em}#1hspace{0.5em}}}

usepackage{subfiles}

begin{document}

end{document}






color subfiles empheq






share|improve this question









New contributor




Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 13 at 9:57









Sebastiano

8,29541754




8,29541754






New contributor




Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 13 at 1:37









Dimitrios Sykias

62




62




New contributor




Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Dimitrios Sykias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • You are calling twice the package xcolor which may generate this error, perhaps with an option conflict.
    – DRi
    Nov 13 at 10:06












  • I made the corrections you’ ve suggested. The main file compiles OK. The subfiles return the error: !Package xcolorError: Undefined color “Black”. Same for all other colors.
    – Dimitrios Sykias
    Nov 14 at 21:33


















  • You are calling twice the package xcolor which may generate this error, perhaps with an option conflict.
    – DRi
    Nov 13 at 10:06












  • I made the corrections you’ ve suggested. The main file compiles OK. The subfiles return the error: !Package xcolorError: Undefined color “Black”. Same for all other colors.
    – Dimitrios Sykias
    Nov 14 at 21:33
















You are calling twice the package xcolor which may generate this error, perhaps with an option conflict.
– DRi
Nov 13 at 10:06






You are calling twice the package xcolor which may generate this error, perhaps with an option conflict.
– DRi
Nov 13 at 10:06














I made the corrections you’ ve suggested. The main file compiles OK. The subfiles return the error: !Package xcolorError: Undefined color “Black”. Same for all other colors.
– Dimitrios Sykias
Nov 14 at 21:33




I made the corrections you’ ve suggested. The main file compiles OK. The subfiles return the error: !Package xcolorError: Undefined color “Black”. Same for all other colors.
– Dimitrios Sykias
Nov 14 at 21:33















active

oldest

votes











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',
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
});


}
});






Dimitrios Sykias is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459719%2fsubfiles-colour-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Dimitrios Sykias is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Dimitrios Sykias is a new contributor. Be nice, and check out our Code of Conduct.













Dimitrios Sykias is a new contributor. Be nice, and check out our Code of Conduct.












Dimitrios Sykias is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459719%2fsubfiles-colour-error%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

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?