tufte-book e marginfix

tufte-book e marginfix

Quero aplicar esta correçãoO texto de largura total desloca todos os flutuadores com margens fixas da página para a direitapara a classe de documento tufte-book, mas recebo um erro sempre que uso \chapter.

\documentclass{tufte-book}

\makeatletter
\newlength{\fullwidthlength}
\AtBeginDocument{\setlength{\fullwidthlength}{\@tufte@fullwidth}}
\makeatother
\renewenvironment{fullwidth}{\noindent\begin{minipage}{\fullwidthlength}\strut}{\strut\end{minipage}}
\usepackage{marginfix}

\begin{document}
\chapter{My Chapter}
This is text before some full width text. The footnote that goes with it is way over there.\footnote{This note goes with the text before the full width text.}

\begin{fullwidth}This is some full width text. Its presence on a page using \texttt{marginfix} pushes all notes to the right off the page.\end{fullwidth}

This is some other text, after the full width text, and its note is also way over there.\footnote{This note goes with the text after the full width text.}

\end{document}

! Erro titlesec do pacote: inserido no modo horizontal.

O problema provavelmente está emtufte-common.defjá que \chapterfaz uso de fullwidth.

\titleformat{\chapter}%
  [display]% shape
  {\relax\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\begin{fullwidth}}{}}% format applied to label+text
  {\itshape\huge\thechapter}% label
  {0pt}% horizontal separation between label and title body
  {\huge\rmfamily\itshape}% before the title body
  [\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\end{fullwidth}}{}]% after the title body 

informação relacionada