Take the 2-minute tour ×
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.

Is there any package right similar to tufte-book?

Using \marginpar, the following (Default) could be produced, but I want to have the Target; i.e. to spread the page header over the margin.

enter image description here

Finally I want to produce the page header positioned like the following .

enter image description here

share|improve this question
Could you explain in a little more detail in what way the tufte package does not fit your requirements? –  Jake Dec 29 '12 at 21:23
That edit is not really what I had in mind. Simply stating "I want to recreate the following layout" with a screenshot but without any attempt at getting started does usually not generate very helpful answers, since it doesn't show much effort on your side. This is especially true if the constraints aren't explained transparently ("personal reasons" is quite vague and pretty much makes this question a candidate for being closed as "too localized"). –  Jake Dec 29 '12 at 22:38
Creating a complex layout from scratch is not a simple task and I don't think anybody here can undertake it. We can help in lifting some problems you may find; but just "write a format for me" is not a question for the site. –  egreg Dec 29 '12 at 23:22
@egreg I agree with your comment in general but I don't think the OP's intention was to ask a write-a-format-for-me question. I think the question is quite reasonable. In fact, many questions are of a similar nature: how do I get red text here and blue text there?; how do I changes the size of the section titles; .... Such questions usually get answered. This question just requires more time to answer. –  Marc van Dongen Dec 30 '12 at 1:31
I can't see any reason why this question should be downvoted. Who ever did this should consider undoing it because it's not very friendly to new users. I usually don't vote but I decided to make an exception to undo the effect of the (currently only) downvote. –  Marc van Dongen Dec 30 '12 at 1:43
show 3 more comments

1 Answer

up vote 7 down vote accepted

If I understand your question correctly, you're looking for some code to create running heads that are similar to those in the Tufte-LaTeX document classes. The running heads display the page numbers and chapter/section heading. In the Tufte-LaTeX document classes, the running heads extend beyond the main text block into the margin notes area.

The following code is based on the Tufte-LaTeX code and will achieve the same effect using the regular LaTeX document classes (e.g., book and article). It may or may not work with other document classes such as memoir. (If it doesn't, it's likely that you'll just need to adjust the names of the lengths to match those used by your document class. The logic should remain similar.)

\documentclass{book}% or article

% The geometry package isn't required; it's just here to set the margins for
% this demonstration.
\geometry{%showframe,% draws lines to show margins
  %asymmetric,% if you want the margin notes to always appear on the right side of the page
  % the following are the margins used by the Tufte-LaTeX document classes

\usepackage{ifthen}% for the \ifthenelse macro

% The Tufte-style running heads are defined similarly to the macros below.
% These macros avoid using Tufte-specific code, but may still be overkill for a
% particular document class. (For example, they detect if you're in twoside
% mode and use different running heads based on that.


\makeatletter% so we can use macros with @ in their names

% Set the header/footer width to be the body text block plus the margin
% note area.
  % Calculate the amount to extend the running heads

  % Set the running head offsets to the overhang length calculated above
    {\fancyhfoffset[RE,RO]{\overhanglength}}% asymmetric
    {\fancyhfoffset[LE,RO]{\overhanglength}}% symmetric

% The running heads/feet don't have rules

\fancyhf{} % clear any existing header and footer fields

% adjust the formatting code to suit your tastes here

\makeatother% restore the original meaning of @

\usepackage{blindtext}% provides filler text


\Blinddocument% filler text

share|improve this answer
Nice and instructive answer! –  Sveinung Dec 30 '12 at 11:35
@godbyk Thank you so much. How can I insert a figure (at bottom of page) just like the attached file? –  smh Dec 30 '12 at 17:21
@smh: Since the figure cuts into the main text, you'll have to use something like the wrapfig package. For figures that fit neatly in the margin note area, you can just put them in a \marginpar. If you have more questions or need more details about this, I'd create a new question. –  godbyk Dec 30 '12 at 17:40
add comment

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.