>
>>>Date: Wed, 12 Apr 2006 18:33:17 +0200 (CEST)
>>>Subject: fancy userdefined
>>>From: [EMAIL PROTECTED]
>>>To: lyx-users@lists.lyx.org
>>>X-PMX-Version: 5.1.2.240295, Antispam-Engine: 2.3.0.1, Antispam-Data:
>>> 2006.4.5.213708 (Univ. Osnabrueck)
>>>X-PMX-Spam: Gauge=X, Probability=10%, Report=PRIORITY_NO_NAME 0.716,
>>> NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0,
> __HAS_X_PRIORITY 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0,
> __USER_AGENT 0
>>>X-PMX-Spam-Level: X
>>>
>>>hello,
>>>
>>>i wanna define my pagestyle with fancy. so i have made following entry
>>> in
>>>the preamble:
>>>
>>>\lhead{}
>>>\chead{}
>>>\rhead{}
>>>\lfoot{My Name, Juli 2006}
>>>\cfoot{}
>>>\rfoot{\thepage}
>>>\renewcommand{\headrulewidth}{0.1pt}
>>>\renewcommand{\footrulewidth}{0.1pt}
>>>
>>>it works. but i don't know how to insert the name of the section in left
>>>head. or the name of the chapter in the left head and the name of the
>>>section in the right. something like this ...
>>>
>>>i have tried "lhead{\thesection}" but then there is just the number of
>>> the
>>>section visible.
>>>
>>>can anybody help?
>
> You may refer to running headers with \leftmark and \rightmark.
> AFAIR, most classes require no other options than \pagestyle{fancy}
> to get these. What happens if you don't redefine \chead and \rhead as
> empty ?
>
>

I don't know how \leftmark and \rightmark works.

If i don't redefine \chead and \rhead then the chapter is presented in the
header. that's ok, but chapters with no numbering are not displayed.

The easiest thing would be just a macro like "\thepage", which give's me
the name of the chapter.

tc

Reply via email to