[texhax] Problems with command \markboth

Ulrike Fischer news3 at nililand.de
Sun Jun 16 18:22:32 CEST 2013


Am Fri, 14 Jun 2013 17:13:52 -0300 schrieb Darío:


>>> \begin{document}
>>>
>>> \pagestyle{headings}
>>> \markboth{Biography}{name}
>>>
>>> but when I compile appears "name" at the left and the page number on
>>> the right, I need which appears Biography,
>>> what's the problem?
>>
>> You are not using \leftmark in the definition of your page style.
>>
>> You can use e.g. fancyhdr to setup a pagestyle which makes use of
>> \leftmark (=Bibliography) + \rightmark (=name) in the header.


> don't works good, I wrote in the code:
> 
> \begin{document}
> \pagestyle{headings}
> \rightmark{Biography}
> \leftmark{name}

No, you must use the commands in the header definitition.

> I resolve the problem using:
> (before to \begin{document})
> \pagestyle{fancy}
> 
> \lhead{{\bf{A little Biography}}}\rhead{}
> \rhead{{\bf{Licata Caruso, Darío Salvador}}}

Use here \lhead{\leftmark, \rightmark}

and in the document \markboth{Biography}{name}


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the texhax mailing list