[texhax] Problems with command \markboth

Darío darioslc at gmail.com
Fri Jun 14 22:13:52 CEST 2013


>> Hi everyone, I was writing and I need use the command \markboth for
>> add a headings so at right and left, my code is:
>>
>> \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.
>
>
>
> --
> Ulrike Fischer

Thanks Ulrike, but the commands did you tell me:

> 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}

and when I compile, the pdf resultant put the Biography and name
together and not separated.

I resolve the problem using:
(before to \begin{document})
\pagestyle{fancy}

\lhead{{\bf{A little Biography}}}\rhead{}
\rhead{{\bf{Licata Caruso, Darío Salvador}}}

and worked really good!



--
Darío
¿quién se atreve a escribir después del monólogo de Molly Bloom? (T.S. Elliot)


On 14 June 2013 13:52, Ulrike Fischer <news3 at nililand.de> wrote:
> Am Fri, 14 Jun 2013 09:59:42 -0300 schrieb Darío:
>
>> Hi everyone, I was writing and I need use the command \markboth for
>> add a headings so at right and left, my code is:
>>
>> \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.
>
>
>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org



--
Darío
¿quién se atreve a escribir después del monólogo de Molly Bloom? (T.S. Elliot)



More information about the texhax mailing list