Bruce Muirhead wrote:

hi I need to define my own headers for a few documents (very small
documents!), but have been unable to work out how to do this.

I know I need to use fancyhdr, which is as simple as choosing myheadings
in document settings, but I have to admit that I have no idea of show to
actually tell lyx what I want in the header! Unfortunately, I am
relatively tex/latex ignorant, so a lot of the apparently relevant
documentation is uninformative for me.
In these instances I need to have my name and address in the top left
hand corner. (I can kludge this, I know, for one page documents, but
works of more than one page would be very difficult to do.) In other
instances I need to have my name in the top left hand corner, the page
number centred, and the title of the document in the right hand corner.

Is there some easy way to achieve these two results?

thanks in advance

Bruce

Hi,

well if you need more information about how to use fancyhrd than have a look at its documentation. I have started using fancyhrd just couple of weeks ago and the documentation really help. You can get it from

http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf



As far as you question goes chage the style of the doucment to fancy than add the foolowing

\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{type you name and adress here as you want it to appear}
\chead{\thepage} % this will give you the page number in the center
\rhead{Type the title of ther document here}
\lfoot{}
\cfoot{}
\rfoot{}

\renewcommand{\headrulewidth}{0.4pt} % these two commands will produce line in the footer and header if you dont want it than just put zeros instead of 0.4
\renewcommand{\footrulewidth}{0.4pt}



regards,


kamran

Reply via email to