TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

I am using the code from margin-floats-and-hyperlinks. It works nicely, however the figure generated is not left aligned in the margin as the caption below it is. I also tried \raggedright as suggested in align-figure-to-the-right-with-raggedleft.

Figure is not left aligned in the margin



% Margin float environment
  {\FloatBarrier% process all floats before this point so the figure/table numbers stay in order.

% Margin figure environment

% Margin table environment


    \caption{A long caption so that we get at least two lines}
share|improve this question
up vote 8 down vote accepted

You have a spurious space in the definition of marginfigure and margintable:

% Margin figure environment
  {\begin{@tufte@margin@float}[#1]{figure}% <--- added '%'

% Margin table environment
  {\begin{@tufte@margin@float}[#1]{table}% <--- added '%'

enter image description here

As a reference, see What is the use of percent signs (%) at the end of lines?. Alternatively, you could insert an \ignorespaces at the start of the environments.

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.