0

Recently I went to try and compile my TeX document but I'm receiving an error that the color, which is 'RubineRed', is undefined despite that I am not using it for the entire document. Can someone see where is the problem where in the following document ?

\PassOptionsToPackage{pdfpagelabels=false}{hyperref}
\documentclass[10pt]{NSP2}
\usepackage{url,floatflt}
\usepackage{helvet,times}
\usepackage{psfig,graphics}
\usepackage{mathptmx,amssymb,bm}
\usepackage{float}
\usepackage{amsmath}
\usepackage[bf,hypcap]{caption}
\usepackage{tcolorbox}
\usepackage{xcolor}
\usepackage{wrapfig}
\usepackage{graphicx}
%\usepackage{subfigure}
\usepackage{setspace}
\usepackage{subfig}
\usepackage{enumerate}
\usepackage{bookmark}
\usepackage{placeins}
\usepackage{multirow}
\usepackage{multicol}
\usepackage[curve,frame,line,arrow,matrix]{xy}
%\usepackage[turkish]{babel}
\usepackage[latin5]{inputenc}
\usepackage{hyperref}
\usepackage[dvipsnames]{xcolor}
\addtolength{\evensidemargin}{-0.35in}
\addtolength{\oddsidemargin}{0.35in}
\setstretch{1.0}
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
\topmargin=0.00cm
\def\sm{\smallskip}
\def\no{\noindent}

\def\firstpage{111}
\setcounter{page}{\firstpage}
\def\thevol{xx}
\def\thenumber{xx}
\def\theyear{xx}

\def\RR{\mathbb{R}}
%\def\ZZ{\mathbb{Z}}
\newcommand{\abs}[1]{\left\vert#1\right\vert}
\newtheorem{exmp}{\rm Example}[section]
\DeclareMathOperator{\Jac}{Jac}

\begin{document}

And the error which I receive is :

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6350 64-bit)
entering extended mode


Babel <3.10> and hyphenation patterns for 75 language(s) loaded.
(NSP2.cls

LaTeX Warning: You have requested document class `NSP2',
               but the document class provides `NSP'.

Document Class: NSP 2012/01/01
("C:\Program Files\MiKTeX 2.9\tex\latex\base\fleqn.clo")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\color.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-cfg\color.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-def\pdftex.def"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty")))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-cfg\graphics.cfg")))
("C:\Program Files\MiKTeX 2.9\tex\latex\lastpage\lastpage.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))
("C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")
(C:\Users\XXX\AppData\Roaming\MiKTeX\2.9\tex\latex\url\url.sty))

Package hyperref Message: Driver (autodetected): hpdftex.

("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def"
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))

! Package color Error: Undefined color `RubineRed'.

See the color package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.571 ...inecolor{abstractcolor}{named}{RubineRed}

? 

Process has been terminated ...
16
  • 1
    welcome to tex.se! please complete your code sniped, that it will be compilable. probably off-topic: you have load xcolor twice. try to the first add option dvipsnames, move it after \usepackage{helvet,times} and remove second one. also replace \usepackage{psfig,graphics} (note s on the end) with \usepackage{graphicx} (note x on the end). where we can find document class NSP2?
    – Zarko
    Sep 26, 2017 at 13:42
  • 1
    Where could we find the NSP2 document class?
    – Bernard
    Sep 26, 2017 at 13:45
  • 2
    \tolerance=1 \emergencystretch=\maxdimen \hyphenpenalty=10000 \hbadness=10000 really? Sep 26, 2017 at 14:01
  • 2
    You've posted the lengthy preamble, but you haven't actually posted the code itself that's generating the problem. It's very difficult to offer a diagnosis if the offending code isn't shown. (You've posted an error log, but that's not the same as posting the code that creates the error message.)
    – Mico
    Sep 26, 2017 at 14:08
  • 2
    Try \PassOptionsToPackage{dvipsnames}{color} before \documentclass{NSP2}.
    – esdd
    Sep 26, 2017 at 14:54

1 Answer 1

1

If you compile a document using NSP2.cls with

latex filename
dvips filename
ps2pdf filename

it will work fine, as the RubineRed colour is one of the colours defined by the dvips driver. If you want to compile with

pdflatex filename

instead, then you need to pass the dvipsnames to the color package, with either

\PassOptionsToPackage{dvipsnames}{color}
\documentclass[10pt]{NSP2}

or

\documentclass[10pt,dvipsnames]{NSP2}

The only part in the document using that colour is the box containing the journal name, located at the top of the first page, above the title of the article. Where it says "New Trends in Mathematical Sciences" in this screenshot:

first page of sample document

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .