采用 Tufte-Handout 样式对侧边注释进行水平对齐。

采用 Tufte-Handout 样式对侧边注释进行水平对齐。

我正在使用 Tufte 讲义模板,我发现许多边距注释(图片标题、脚注、引文等)没有对齐。我想知道是否有一个简单的解决方法。

在此处输入图片描述

答案1

使用justified选项\documentclass

\documentclass[justified]{tufte-book}

在此处输入图片描述

平均能量损失

\documentclass[justified]{tufte-book}
\usepackage{lipsum}
\usepackage{filecontents}
\begin{filecontents*}{references.bib}
@book{dirac,
  title={The Principles of Quantum Mechanics},
  author={Paul Adrien Maurice Dirac},
  series={International series of monographs on physics},
  year={1981},
  publisher={Clarendon Press},
}
\end{filecontents*}
\begin{document}
\section{Main text}
\sidenote[][-3cm]{sidenotes\\ This is a justified side note. This is a justified side note. This is a justified side note. This is a justified side note. This is a justified side note } \cite{dirac}
\lipsum[2]

\begin{marginfigure}
\rule{\textwidth}{2.6cm}
\caption{Caption of a figure that is aligned properly. Caption of a figure that is aligned properly. Caption of a figure that is aligned properly. Caption of a figure that is aligned properly. Caption of a figure that is aligned properly. }
\label{fig:marginfig}
\end{marginfigure}

\bibliographystyle{plain}
\bibliography{references}
\end{document}

相关内容