TeX - LaTeX Asked by RockyRock on January 24, 2021
I have been encountering a very strange behaviour with the ieeecolor.cls
document class! Compiling a latex document using this class with the tikz
package triggers some color warnings: Warning Incompatible color definition
, but the pdf generated seems to be as expected (i.e. see MWE below).
However, very odd things happen when the following section is added to the tex file:
%%%% Inverse PDF page and text color
definecolor{pagcol}{rgb}{0.1255,0.1255,0.1255}
definecolor{txtcol}{rgb}{0.85,0.85,0.85}
pagecolor{pagcol}
color{txtcol}
In this case, the behaviour of latex is rather unexpected and the colors are not as they should anymore. This seems to come from a clash between the new ieeecolor
class and some packages like tikz
.
Has anyone encountered this issue before? Has anyone find a fix for this?
The ieeecolor
class can be found on the IEEE Author Centre Website, it requires the files ieeecolor.cls
and ‘generic.sty’.
Minimum working example with page and text color code commented:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%2345678901234567890123456789012345678901234567890123456789012345678901234567890
% 1 2 3 4 5 6 7 8
%documentclass[letterpaper,10pt,conference]{ieeeconf} % Comment this line out
% if you need a4paper
%documentclass[a4paper, 10pt, conference]{ieeeconf} % Use this line for a4
% paper
documentclass[journal,twoside,web]{ieeecolor} % %% NEW ieeecolor class %%
% IEEEoverridecommandlockouts % This command is only
% needed if you want to
% use the thanks command
% overrideIEEEmargins
% See the addtolength command later in the file to balance the column lengths
% on the last page of the document
% The following packages can be found on http:www.ctan.org
usepackage{generic}
usepackage{lipsum}
usepackage{tikz}
usepackage{pagecolor}
%%%%% Inverse PDF page and text color
%definecolor{pagcol}{rgb}{0.1255,0.1255,0.1255}
%definecolor{txtcol}{rgb}{0.85,0.85,0.85}
%pagecolor{pagcol}
%color{txtcol}
title{My Dummy Article}
author{Julius~Caesar~IEEEmembership{Fellow~Member,~IEEE}
thanks{J.~Caesar is with the Senate House, Rome}
}
begin{document}
maketitle
thispagestyle{empty}
pagestyle{empty}
begin{abstract}
lipsum[1]
end{abstract}
begin{IEEEkeywords}
Key word 1, Key word 2.
end{IEEEkeywords}
section{Dummy Section 1}
lipsum
section{Dummy Section 2}
lipsum
begin{figure}[!htbp]
centering
begin{tikzpicture}
draw (0,0) -- (4,0) -- (4,4) -- (0,4) -- (0,0);
end{tikzpicture}
caption{A Dummy Square figure}
end{figure}
lipsum
end{document}
generic.sty
deflogoname{LOGO-generic-web}
definecolor{subsectioncolor}{rgb}{0,0.541,0.855}
setlength{firstpagerule}{39pc}
setlength{logowidth}{4pc}
defjournalname{Generic Colorized Journal}
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP