General ⇒ Horizontal rules
Horizontal rules
Is there a way I can make a horizontal rule that is blue instead of black ??
I also don't want it to be all the way accross the page, the command I'm using right now is:
\\newcommand{\lineunder}{\vspace*{-8pt} \\ \hspace*{-6pt} \hrulefill \\ \vspace*{-15pt}}
but I don't know how to incorporate customized color !!
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
Horizontal rules
you could use the xcolor package and the \color command:
Code: Select all
\documentclass{article}
\usepackage{xcolor}
\newcommand{\lineunder}{\vspace*{-8pt}\par\hspace*{-6pt}\color{blue}\hrulefill\\\color{black}\vspace*{-15pt}}
\begin{document}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\lineunder
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\end{document}