Skip to content

Instantly share code, notes, and snippets.

@godbyk
Created March 16, 2012 21:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godbyk/2052945 to your computer and use it in GitHub Desktop.
Save godbyk/2052945 to your computer and use it in GitHub Desktop.
Minipage similar to full-width environment -- with nice spacing
\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