Option clash for package xcolor compiling











up vote
1
down vote

favorite












What does these error mean please?



! LaTeX Error: Option clash for package xcolor.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... usepackage


This is preamble



documentclass[12pt,a4paper]{report}
setlengthtextwidth{145mm}
setlengthtextheight{247mm}
setlengthoddsidemargin{15mm}
setlengthevensidemargin{15mm}
setlengthtopmargin{0mm}
setlengthheadsep{0mm}
setlengthheadheight{0mm}
letopenright=clearpage
usepackage[a-2u]{pdfx}
usepackage[english,czech]{babel}
usepackage{lmodern}
usepackage[T1]{fontenc}
usepackage{textcomp}

%% Použité kódování znaků: obvykle latin2, cp1250 nebo utf8:
usepackage[utf8]{inputenc}

%%% Další užitečné balíčky (jsou součástí běžných distribucí LaTeXu)
usepackage{amsmath} % rozšíření pro sazbu matematiky
usepackage{amsfonts} % matematické fonty
usepackage{amsthm} % sazba vět, definic apod.
usepackage{bbding} % balíček s nejrůznějšími symboly
% (čtverečky, hvězdičky, tužtičky, nůžtičky, ...)
usepackage{bm} % tučné symboly (příkaz bm)
usepackage{graphicx} % vkládání obrázků
usepackage{fancyvrb} % vylepšené prostředí pro strojové písmo
usepackage{indentfirst} % zavede odsazení 1. odstavce kapitoly
usepackage{natbib} % zajištuje možnost odkazovat na literaturu
% stylem AUTOR (ROK), resp. AUTOR [ČÍSLO]
usepackage[nottoc]{tocbibind} % zajistí přidání seznamu literatury,
% obrázků a tabulek do obsahu
usepackage{icomma} % inteligetní čárka v matematickém módu
usepackage{dcolumn} % lepší zarovnání sloupců v tabulkách
usepackage{booktabs} % lepší vodorovné linky v tabulkách
usepackage{paralist} % lepší enumerate a itemize
usepackage[usenames]{xcolor} % barevná sazba
usepackage{lmodern,textcomp}

usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}


newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}


I tried



PassOptionsToPackage{table,xcdraw}{xcolor}


but it didn't help.



Error is on this line



usepackage{lmodern,textcomp}


Thank you.










share|improve this question


















  • 3




    Welcome to TeX.SX! Just put the usepackage[usenames]{xcolor} first. I also get a No color profile found to use for RGB screen colors.. because of usepackage[a-2u]{pdfx} but perhaps this is not a problem for you? Btw, rather than just posting your preamble, it is better to post a complete minimal working example that people can compile to see your problem.
    – Andrew
    Nov 27 at 4:06












  • Thank you very much.
    – Elisabeth
    Nov 27 at 4:15










  • PassOptionsToPackage should appear very soon after documentclass, in order to give the packages a chance to get aware of the provided options.
    – Christian Hupfer
    Nov 27 at 9:57






  • 1




    Anyway, you don't need the [usenames] option nowadays: it is the default.
    – Bernard
    Nov 27 at 9:59






  • 1




    amsmath, amssymb, bm, icomma, dcolumn, booktabs, lmodern and textcomp packages is also loaded twice in your example. And you should consider providing pdfx with a metadata file and set either setRGBcolorprofile or setCMYKcolorprofile as per the documentation.
    – Ole Anders
    Nov 27 at 13:17















up vote
1
down vote

favorite












What does these error mean please?



! LaTeX Error: Option clash for package xcolor.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... usepackage


This is preamble



documentclass[12pt,a4paper]{report}
setlengthtextwidth{145mm}
setlengthtextheight{247mm}
setlengthoddsidemargin{15mm}
setlengthevensidemargin{15mm}
setlengthtopmargin{0mm}
setlengthheadsep{0mm}
setlengthheadheight{0mm}
letopenright=clearpage
usepackage[a-2u]{pdfx}
usepackage[english,czech]{babel}
usepackage{lmodern}
usepackage[T1]{fontenc}
usepackage{textcomp}

%% Použité kódování znaků: obvykle latin2, cp1250 nebo utf8:
usepackage[utf8]{inputenc}

%%% Další užitečné balíčky (jsou součástí běžných distribucí LaTeXu)
usepackage{amsmath} % rozšíření pro sazbu matematiky
usepackage{amsfonts} % matematické fonty
usepackage{amsthm} % sazba vět, definic apod.
usepackage{bbding} % balíček s nejrůznějšími symboly
% (čtverečky, hvězdičky, tužtičky, nůžtičky, ...)
usepackage{bm} % tučné symboly (příkaz bm)
usepackage{graphicx} % vkládání obrázků
usepackage{fancyvrb} % vylepšené prostředí pro strojové písmo
usepackage{indentfirst} % zavede odsazení 1. odstavce kapitoly
usepackage{natbib} % zajištuje možnost odkazovat na literaturu
% stylem AUTOR (ROK), resp. AUTOR [ČÍSLO]
usepackage[nottoc]{tocbibind} % zajistí přidání seznamu literatury,
% obrázků a tabulek do obsahu
usepackage{icomma} % inteligetní čárka v matematickém módu
usepackage{dcolumn} % lepší zarovnání sloupců v tabulkách
usepackage{booktabs} % lepší vodorovné linky v tabulkách
usepackage{paralist} % lepší enumerate a itemize
usepackage[usenames]{xcolor} % barevná sazba
usepackage{lmodern,textcomp}

usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}


newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}


I tried



PassOptionsToPackage{table,xcdraw}{xcolor}


but it didn't help.



Error is on this line



usepackage{lmodern,textcomp}


Thank you.










share|improve this question


















  • 3




    Welcome to TeX.SX! Just put the usepackage[usenames]{xcolor} first. I also get a No color profile found to use for RGB screen colors.. because of usepackage[a-2u]{pdfx} but perhaps this is not a problem for you? Btw, rather than just posting your preamble, it is better to post a complete minimal working example that people can compile to see your problem.
    – Andrew
    Nov 27 at 4:06












  • Thank you very much.
    – Elisabeth
    Nov 27 at 4:15










  • PassOptionsToPackage should appear very soon after documentclass, in order to give the packages a chance to get aware of the provided options.
    – Christian Hupfer
    Nov 27 at 9:57






  • 1




    Anyway, you don't need the [usenames] option nowadays: it is the default.
    – Bernard
    Nov 27 at 9:59






  • 1




    amsmath, amssymb, bm, icomma, dcolumn, booktabs, lmodern and textcomp packages is also loaded twice in your example. And you should consider providing pdfx with a metadata file and set either setRGBcolorprofile or setCMYKcolorprofile as per the documentation.
    – Ole Anders
    Nov 27 at 13:17













up vote
1
down vote

favorite









up vote
1
down vote

favorite











What does these error mean please?



! LaTeX Error: Option clash for package xcolor.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... usepackage


This is preamble



documentclass[12pt,a4paper]{report}
setlengthtextwidth{145mm}
setlengthtextheight{247mm}
setlengthoddsidemargin{15mm}
setlengthevensidemargin{15mm}
setlengthtopmargin{0mm}
setlengthheadsep{0mm}
setlengthheadheight{0mm}
letopenright=clearpage
usepackage[a-2u]{pdfx}
usepackage[english,czech]{babel}
usepackage{lmodern}
usepackage[T1]{fontenc}
usepackage{textcomp}

%% Použité kódování znaků: obvykle latin2, cp1250 nebo utf8:
usepackage[utf8]{inputenc}

%%% Další užitečné balíčky (jsou součástí běžných distribucí LaTeXu)
usepackage{amsmath} % rozšíření pro sazbu matematiky
usepackage{amsfonts} % matematické fonty
usepackage{amsthm} % sazba vět, definic apod.
usepackage{bbding} % balíček s nejrůznějšími symboly
% (čtverečky, hvězdičky, tužtičky, nůžtičky, ...)
usepackage{bm} % tučné symboly (příkaz bm)
usepackage{graphicx} % vkládání obrázků
usepackage{fancyvrb} % vylepšené prostředí pro strojové písmo
usepackage{indentfirst} % zavede odsazení 1. odstavce kapitoly
usepackage{natbib} % zajištuje možnost odkazovat na literaturu
% stylem AUTOR (ROK), resp. AUTOR [ČÍSLO]
usepackage[nottoc]{tocbibind} % zajistí přidání seznamu literatury,
% obrázků a tabulek do obsahu
usepackage{icomma} % inteligetní čárka v matematickém módu
usepackage{dcolumn} % lepší zarovnání sloupců v tabulkách
usepackage{booktabs} % lepší vodorovné linky v tabulkách
usepackage{paralist} % lepší enumerate a itemize
usepackage[usenames]{xcolor} % barevná sazba
usepackage{lmodern,textcomp}

usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}


newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}


I tried



PassOptionsToPackage{table,xcdraw}{xcolor}


but it didn't help.



Error is on this line



usepackage{lmodern,textcomp}


Thank you.










share|improve this question













What does these error mean please?



! LaTeX Error: Option clash for package xcolor.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... usepackage


This is preamble



documentclass[12pt,a4paper]{report}
setlengthtextwidth{145mm}
setlengthtextheight{247mm}
setlengthoddsidemargin{15mm}
setlengthevensidemargin{15mm}
setlengthtopmargin{0mm}
setlengthheadsep{0mm}
setlengthheadheight{0mm}
letopenright=clearpage
usepackage[a-2u]{pdfx}
usepackage[english,czech]{babel}
usepackage{lmodern}
usepackage[T1]{fontenc}
usepackage{textcomp}

%% Použité kódování znaků: obvykle latin2, cp1250 nebo utf8:
usepackage[utf8]{inputenc}

%%% Další užitečné balíčky (jsou součástí běžných distribucí LaTeXu)
usepackage{amsmath} % rozšíření pro sazbu matematiky
usepackage{amsfonts} % matematické fonty
usepackage{amsthm} % sazba vět, definic apod.
usepackage{bbding} % balíček s nejrůznějšími symboly
% (čtverečky, hvězdičky, tužtičky, nůžtičky, ...)
usepackage{bm} % tučné symboly (příkaz bm)
usepackage{graphicx} % vkládání obrázků
usepackage{fancyvrb} % vylepšené prostředí pro strojové písmo
usepackage{indentfirst} % zavede odsazení 1. odstavce kapitoly
usepackage{natbib} % zajištuje možnost odkazovat na literaturu
% stylem AUTOR (ROK), resp. AUTOR [ČÍSLO]
usepackage[nottoc]{tocbibind} % zajistí přidání seznamu literatury,
% obrázků a tabulek do obsahu
usepackage{icomma} % inteligetní čárka v matematickém módu
usepackage{dcolumn} % lepší zarovnání sloupců v tabulkách
usepackage{booktabs} % lepší vodorovné linky v tabulkách
usepackage{paralist} % lepší enumerate a itemize
usepackage[usenames]{xcolor} % barevná sazba
usepackage{lmodern,textcomp}

usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}


newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}


I tried



PassOptionsToPackage{table,xcdraw}{xcolor}


but it didn't help.



Error is on this line



usepackage{lmodern,textcomp}


Thank you.







color






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 27 at 3:51









Elisabeth

3206




3206








  • 3




    Welcome to TeX.SX! Just put the usepackage[usenames]{xcolor} first. I also get a No color profile found to use for RGB screen colors.. because of usepackage[a-2u]{pdfx} but perhaps this is not a problem for you? Btw, rather than just posting your preamble, it is better to post a complete minimal working example that people can compile to see your problem.
    – Andrew
    Nov 27 at 4:06












  • Thank you very much.
    – Elisabeth
    Nov 27 at 4:15










  • PassOptionsToPackage should appear very soon after documentclass, in order to give the packages a chance to get aware of the provided options.
    – Christian Hupfer
    Nov 27 at 9:57






  • 1




    Anyway, you don't need the [usenames] option nowadays: it is the default.
    – Bernard
    Nov 27 at 9:59






  • 1




    amsmath, amssymb, bm, icomma, dcolumn, booktabs, lmodern and textcomp packages is also loaded twice in your example. And you should consider providing pdfx with a metadata file and set either setRGBcolorprofile or setCMYKcolorprofile as per the documentation.
    – Ole Anders
    Nov 27 at 13:17














  • 3




    Welcome to TeX.SX! Just put the usepackage[usenames]{xcolor} first. I also get a No color profile found to use for RGB screen colors.. because of usepackage[a-2u]{pdfx} but perhaps this is not a problem for you? Btw, rather than just posting your preamble, it is better to post a complete minimal working example that people can compile to see your problem.
    – Andrew
    Nov 27 at 4:06












  • Thank you very much.
    – Elisabeth
    Nov 27 at 4:15










  • PassOptionsToPackage should appear very soon after documentclass, in order to give the packages a chance to get aware of the provided options.
    – Christian Hupfer
    Nov 27 at 9:57






  • 1




    Anyway, you don't need the [usenames] option nowadays: it is the default.
    – Bernard
    Nov 27 at 9:59






  • 1




    amsmath, amssymb, bm, icomma, dcolumn, booktabs, lmodern and textcomp packages is also loaded twice in your example. And you should consider providing pdfx with a metadata file and set either setRGBcolorprofile or setCMYKcolorprofile as per the documentation.
    – Ole Anders
    Nov 27 at 13:17








3




3




Welcome to TeX.SX! Just put the usepackage[usenames]{xcolor} first. I also get a No color profile found to use for RGB screen colors.. because of usepackage[a-2u]{pdfx} but perhaps this is not a problem for you? Btw, rather than just posting your preamble, it is better to post a complete minimal working example that people can compile to see your problem.
– Andrew
Nov 27 at 4:06






Welcome to TeX.SX! Just put the usepackage[usenames]{xcolor} first. I also get a No color profile found to use for RGB screen colors.. because of usepackage[a-2u]{pdfx} but perhaps this is not a problem for you? Btw, rather than just posting your preamble, it is better to post a complete minimal working example that people can compile to see your problem.
– Andrew
Nov 27 at 4:06














Thank you very much.
– Elisabeth
Nov 27 at 4:15




Thank you very much.
– Elisabeth
Nov 27 at 4:15












PassOptionsToPackage should appear very soon after documentclass, in order to give the packages a chance to get aware of the provided options.
– Christian Hupfer
Nov 27 at 9:57




PassOptionsToPackage should appear very soon after documentclass, in order to give the packages a chance to get aware of the provided options.
– Christian Hupfer
Nov 27 at 9:57




1




1




Anyway, you don't need the [usenames] option nowadays: it is the default.
– Bernard
Nov 27 at 9:59




Anyway, you don't need the [usenames] option nowadays: it is the default.
– Bernard
Nov 27 at 9:59




1




1




amsmath, amssymb, bm, icomma, dcolumn, booktabs, lmodern and textcomp packages is also loaded twice in your example. And you should consider providing pdfx with a metadata file and set either setRGBcolorprofile or setCMYKcolorprofile as per the documentation.
– Ole Anders
Nov 27 at 13:17




amsmath, amssymb, bm, icomma, dcolumn, booktabs, lmodern and textcomp packages is also loaded twice in your example. And you should consider providing pdfx with a metadata file and set either setRGBcolorprofile or setCMYKcolorprofile as per the documentation.
– Ole Anders
Nov 27 at 13:17















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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461942%2foption-clash-for-package-xcolor-compiling%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.





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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461942%2foption-clash-for-package-xcolor-compiling%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?

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

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents