I've searched for this and haven't found a working solution yet. It may have to do with the class file used by my school, but I can't fix it.
I'm using TeXShop for Apple on OS 10.4.11 to write my thesis. I'm importing thesis chapters into a final document. My graphics and color packages are:
\usepackage{color}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{epsfig}
If I only include text chapters, there is no compile problem and I get colored text where it should be.
If I include a chapter with images (all are .eps or .pdf), no dice.
I've attached a folder with an example file. If the main document "example" is opened, you'll see two chapters:
\include{colorChap}
\include{graphicsChap}
comment out the second and it will load fine. To only include the second, comment out the lines for colored text:
\usepackage{color}
\definecolor{Green}{rgb}{0,0.75,0.0}
\definecolor{Blue}{rgb}{0.0,0,0.75}
\definecolor{Tour}{rgb}{0,0.6,0.85}
Any help is appreciated!
Graphics, Figures & Tables ⇒ Conflict between packages »color« and »graphicx«
Conflict between packages »color« and »graphicx«
- Attachments
-
- example.zip
- Folder with conditionally working example
- (33.41 KiB) Downloaded 166 times
Last edited by jpThesis on Tue Nov 30, 2010 7:51 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Conflict between packages »color« and »graphicx«
Problem resolved.
If you find yourself in this boat, I'd suggest trying the fix posted on http://my.opera.com/application/blog/20 ... s-in-latex.
specifically, comment out these lines of the color style file, color.sty:
%\def\color@hbox{\hbox\bgroup\color@begingroup}
%\def\color@vbox{\vbox\bgroup\color@begingroup}
%\def\color@endbox{\color@endgroup\egroup}
For whatever reason, my computer didn't want to find this file... I guess you're not supposed to muck with it. It can be found in:
Library/TeX/Root/texmf-dist/tex/latex/graphics/
happy writing!
If you find yourself in this boat, I'd suggest trying the fix posted on http://my.opera.com/application/blog/20 ... s-in-latex.
specifically, comment out these lines of the color style file, color.sty:
%\def\color@hbox{\hbox\bgroup\color@begingroup}
%\def\color@vbox{\vbox\bgroup\color@begingroup}
%\def\color@endbox{\color@endgroup\egroup}
For whatever reason, my computer didn't want to find this file... I guess you're not supposed to muck with it. It can be found in:
Library/TeX/Root/texmf-dist/tex/latex/graphics/
happy writing!
-
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
Conflict between packages »color« and »graphicx«
it is a problem with the documentclass. Use it this way:jpThesis wrote:I've searched for this and haven't found a working solution yet. It may have to do with the class file used by my school, but I can't fix it.
I'm using TeXShop for Apple on OS 10.4.11 to write my thesis. I'm importing thesis chapters into a final document. My graphics and color packages are:
Code: Select all
\makeatletter
\let\my@xfloat\@xfloat
\makeatother
\documentclass{ruthesis}
% Create a modified copy of \@xfloat using the kernel definition
\makeatletter
\def\@xfloat#1[#2]{
\my@xfloat#1[#2]%
\def\baselinestretch{1}%
\@normalsize \normalsize}
\makeatother
\special{papersize=8.5in,11in} %***for A4-default configurations on servers
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{color}
\definecolor{Green}{rgb}{0,0.75,0.0}
\definecolor{Blue}{rgb}{0.0,0,0.75}
\definecolor{Tour}{rgb}{0,0.6,0.85}
\begin{document}
\phd
\title{Thesis Title}
\author{J-Rock}
\program{School}
\director{Director}
\approvals{4}
\submissionyear{2010}
\submissionmonth{December}
\abstract{This is the abstract}
\beforepreface
\afterpreface
%these chapters are in separate .tex files
\include{colorChap}
\include{graphicsChap}
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conflict between packages »color« and »graphicx«
Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules. Please keep that in mind for the future so that further reminders will not be necessary.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10