Created
March 16, 2012 21:47
-
-
Save godbyk/2052945 to your computer and use it in GitHub Desktop.
Minipage similar to full-width environment -- with nice spacing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{tufte-handout} | |
%% Just draws a baseline grid on the page | |
\usepackage{pagegrid} | |
\pagegridsetup{ | |
top-left, | |
step=\baselineskip, | |
arrowlength=1pt, | |
} | |
% End baseline grid code | |
\makeatletter | |
\newlength{\fullwidthlength} | |
\AtBeginDocument{\setlength{\fullwidthlength}{\@tufte@fullwidth}} | |
\makeatother | |
\usepackage{lipsum} | |
\begin{document} | |
\lipsum[1] | |
\noindent | |
\begin{minipage}{\fullwidthlength} | |
\strut | |
\lipsum*[2] | |
\strut | |
\end{minipage} | |
% The value for <width> above should make that paragraph identical this one | |
\begin{fullwidth} | |
\lipsum*[2] | |
\end{fullwidth}\unskip\par% <-- added this to fix spacing after fullwidth environment | |
\lipsum*[3] | |
\clearpage | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment