tufte-book 및 marginfix

tufte-book 및 marginfix

이 수정 사항을 적용하고 싶습니다.전체 너비 텍스트는 모든 marginfixed 부동을 페이지에서 오른쪽으로 이동합니다.tufte-book 문서 클래스에 추가했지만 \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}

! 패키지 titlesec 오류: 수평 모드로 입력되었습니다.

문제는 아마도tufte-common.def이후 \chapter를 사용합니다 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 

관련 정보