[Tex/LaTex] How to remove line in header header-footerrules I am using mdframed in header but line still appears as shown below. How can I remove that line?. Regards Best Answer Assuming that you are using the fancyhdr to make the header, simply redefine \headrule to do nothing: \renewcommand\headrule{} Related Solutions[Tex/LaTex] Remove line below header on title page Replace \definemakeup [titlepage] with \definemakeup [titlepage] [headerstate=none] This removes the header and the line below. For more options see ConTeXt Wiki - setupmakeup [Tex/LaTex] How to reduce space between header and text You can do it with reducing headsep using geometry package. \documentclass{article} \usepackage{array,multirow} \usepackage[table]{xcolor} \usepackage{fancyhdr} \usepackage[framemethod=TikZ]{mdframed} \usepackage[top=2cm, bottom=2cm, left=1cm, right=1cm,headsep=4pt]{geometry} %% adjust here \pagestyle{fancy} \fancyhf{} % sets both header and footer to nothing \renewcommand{\headrulewidth}{0pt} \fancyfoot{} \begin{document} \arrayrulecolor{white} \definecolor{textcol}{rgb}{.118, .565, 1.00} \fancyhead[C]{% \begin{mdframed}[linecolor=blue!60,roundcorner=3pt] \parbox[t]{0.333\textwidth}{\raggedright XXX }% \parbox[t]{0.333\textwidth}{\centering \thepage}% \parbox[t]{0.333\textwidth}{\raggedleft YYY} \end{mdframed}% } Some text \end{document} However, reducing headsep will spoil the consistency and elegance. Related Question[Tex/LaTex] Remove line from Header[Tex/LaTex] How to remove the horizontal line below the image in the header[Tex/LaTex] Resume header – format the line in the header[Tex/LaTex] How to remove header in list of figures, tables, and bibliography (book class)
Best Answer
Assuming that you are using the
fancyhdr
to make the header, simply redefine\headrule
to do nothing: