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.
color
|
show 1 more comment
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.
color
3
Welcome to TeX.SX! Just put theusepackage[usenames]{xcolor}
first. I also get aNo color profile found to use for RGB screen colors..
because ofusepackage[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 afterdocumentclass
, 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 providingpdfx
with a metadata file and set eithersetRGBcolorprofile
orsetCMYKcolorprofile
as per the documentation.
– Ole Anders
Nov 27 at 13:17
|
show 1 more comment
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.
color
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
color
asked Nov 27 at 3:51
Elisabeth
3206
3206
3
Welcome to TeX.SX! Just put theusepackage[usenames]{xcolor}
first. I also get aNo color profile found to use for RGB screen colors..
because ofusepackage[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 afterdocumentclass
, 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 providingpdfx
with a metadata file and set eithersetRGBcolorprofile
orsetCMYKcolorprofile
as per the documentation.
– Ole Anders
Nov 27 at 13:17
|
show 1 more comment
3
Welcome to TeX.SX! Just put theusepackage[usenames]{xcolor}
first. I also get aNo color profile found to use for RGB screen colors..
because ofusepackage[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 afterdocumentclass
, 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 providingpdfx
with a metadata file and set eithersetRGBcolorprofile
orsetCMYKcolorprofile
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
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f461942%2foption-clash-for-package-xcolor-compiling%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
3
Welcome to TeX.SX! Just put the
usepackage[usenames]{xcolor}
first. I also get aNo color profile found to use for RGB screen colors..
because ofusepackage[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 afterdocumentclass
, 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 eithersetRGBcolorprofile
orsetCMYKcolorprofile
as per the documentation.– Ole Anders
Nov 27 at 13:17