For some reason the headruler I added in my document isn't as long as the \textwidth
. It doesn't seem to be centered but it could also be that it's asymetrical, and I don't know why?
See the picture and you will see my document in \showframe
mode and the headruler not stretching as wide as the text box.
To the left the headruler code is also visible.
So, how to fix this?
PS; The following code example is similar and reproduces the headruler problem.
\documentclass[10pt,titlepage,twoside]{article}
\usepackage[a6paper]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[swedish]{babel}
\sloppy
\usepackage{graphicx}
\usepackage{fancybox}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead[]{}
\chead[]{}
\rhead[]{}
\usepackage[
cam,
width=11.1truecm,
height=15.4truecm,
center,
pdflatex,
]{crop}
\usepackage{showframe}
\evensidemargin = -10mm
\oddsidemargin = -11mm
\headsep = 5mm
\textheight = 124mm
\textwidth = 75mm
\marginparwidth = 0pt
\footskip = 5mm
\usepackage{fourier-orns}
\renewcommand\headrule{%
\hrulefill%
\raisebox{0pt}[10pt][10pt]{%
\quad%
\decofourleft%
\decotwo%
\decofourright%
\quad}%
\hrulefill}
\begin{document}
\maketitle
\section{Introduction}
There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.
There is another theory which states that this has already happened.
\begin{figure}[h!]
\centering
\includegraphics[scale=1.7]{universe}
\caption{The Universe}
\label{fig:universe}
\end{figure}
\section{Conclusion}
``I always thought something was fundamentally wrong with the universe'' \citep{adams1995hitchhiker}
\bibliographystyle{plain}
\bibliography{references}
\end{document}
geometry
package together? ;-)