General ⇒ Heading Rule Color
-
- Posts: 1
- Joined: Thu Nov 20, 2008 9:29 pm
Heading Rule Color
\documentclass[10pt]{article}
\usepackage{graphicx} % Figure manipulation
\usepackage{color}
\usepackage[plain, headings]{nccfancyhdr}
\definecolor{heading}{rgb}{0.106,0.147,0.203}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{2pt}
\makeatletter
\renewcommand{\headrule}{
\setlength\@tempdima{\headrulewidth}
\textcolor{heading}{\hrule\@height\@tempdima\@width\headwidth}
\vskip -2\@tempdima}
\makeatother
\begin{document}
Sample Text.
\end{document}
Can anyone help correct this code, or point me in another (better) direction? Thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Heading Rule Color
your code produces the expected result; at least on my system. Maybe the color that you are defining is too close to black that you do not appreciate the difference; try
Code: Select all
\definecolor{heading}{rgb}{0.5,1,0}
Code: Select all
\definecolor{heading}{rgb}{0.106,0.147,0.203}
If the problem persists, please let us know.