LaTeX forum ⇒ Page Layout ⇒ Problem with the color of the separating line!

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
kunigami
Posts: 9
Joined: Mon Feb 16, 2009 8:27 pm

Problem with the color of the separating line!

Hi all,

I'm using the following configuration for a document:

\documentclass[landscape,twocolumn,letterpaper]{article}\usepackage{color}\setlength{\columnseprule}{0.5pt}	% default=0pt (no line)

But the separating line is colored yellow. If I don't include the color package it stays black. I'd like to know if there's a way to change the separating line color, like I did with its width.

Thanks,

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm
Hi,

the following solution involves a change in the definition of \@outputdblcol. The code below illustrates this approach; I marked the one line that had to be changed with a comment showing the original setting:
\documentclass[landscape,twocolumn,letterpaper]{article}\usepackage{xcolor}\usepackage{lipsum}%just to generate some text \makeatletter\def\@outputdblcol{%   \if@firstcolumn     \global \@firstcolumnfalse     \global \setbox\@leftcolumn \box\@outputbox   \else     \global \@firstcolumntrue     \setbox\@outputbox \vbox {%                          \hb@xt@\textwidth {%                            \hb@xt@\columnwidth {%                              \box\@leftcolumn \hss}%                            \hfil				{\color{blue}\vrule \@width\columnseprule}%original:                                                 %\normalcolor\vrule \@width\columnseprule                            \hfil                            \hb@xt@\columnwidth {%                              \box\@outputbox \hss}%                                              }%                               }%     \@combinedblfloats     \@outputpage     \begingroup       \@dblfloatplacement       \@startdblcolumn       \@whilesw\if@fcolmade \fi         {\@outputpage          \@startdblcolumn}%     \endgroup   \fi}\makeatother\setlength\columnseprule{1pt} \begin{document} \lipsum[1-20] \end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...

kunigami
Posts: 9
Joined: Mon Feb 16, 2009 8:27 pm
Wow! Thanks a lot! That worked fine.