TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anyone send example for this code?

share|improve this question
Hello. You can make your code highlighted by indenting it by 4 spaces (which I have done). I do not think the tex-core tag is appropriate for a question which is purely LaTeX. Can you precise your question a bit? – ℝaphink Aug 9 '11 at 5:54

Here the code provided is used as an example:


    % clear fancy header and footer

    % code start
    % code end

    % set pagestyle to use fancy header and footer

    % insert some text into the document
    \markboth{lipsum 1}{demo 1}

    \markboth{lipsum 2}{demo 2}

    \markboth{lipsum 3}{demo 3}

    \markboth{lipsum 4}{demo 4}

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.