public
Created

Minipage similar to full-width environment -- with nice spacing

  • Download Gist
fullwidth-minipage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
\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}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.