%
% This package adjusts the font sizes and spacing for large-print readers.
%

\NeedsTeXFormat{LaTeX2e}[1994/06/01]

\ProvidesPackage{tufte-largeprint}[2012/09/15 v1.0.0 Large-print Tufte styles]


%
% Adjust the font sizes and leading
%
\renewcommand\Huge{\@setfontsize\Huge{32}{36}}
\renewcommand\huge{\@setfontsize\huge{28}{34}}
\renewcommand\LARGE{\@setfontsize\LARGE{24}{30}}
\renewcommand\Large{\@setfontsize\Large{22}{26}}
\renewcommand\large{\@setfontsize\large{18}{22}}
\renewcommand\normalsize{%
  \@setfontsize\normalsize{12}{16}%
  \abovedisplayskip 15\p@ \@plus4\p@ \@minus8\p@
  \abovedisplayshortskip \z@ \@plus4\p@
  \belowdisplayshortskip 8\p@ \@plus4\p@ \@minus3\p@
  \belowdisplayskip \abovedisplayskip
  \let\@listi\@listI}
\normalbaselineskip=15pt
\normalsize
\renewcommand\small{%
  \@setfontsize\small{10}{12}%
  \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 7\p@ \@plus4\p@ \@minus3\p@
  \def\@listi{\leftmargin\leftmargini
    \topsep 10\p@ \@plus4\p@ \@minus6\p@
    \parsep 5\p@ \@plus2\p@ \@minus\p@
    \itemsep \parsep}
  \belowdisplayskip \abovedisplayskip
}
\renewcommand\footnotesize{%
  \@setfontsize\footnotesize{10}{14}%
  \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
  \def\@listi{\leftmargin\leftmargini
    \topsep 9\p@ \@plus3\p@ \@minus5\p@
    \parsep 4.5\p@ \@plus2\p@ \@minus\p@
    \itemsep \parsep}
  \belowdisplayskip \abovedisplayskip
}
\renewcommand\scriptsize{\@setfontsize\scriptsize{10}{14}}
\renewcommand\tiny{\@setfontsize\tiny{10}{14}}

%% modified up to here
%% compiled okay, but page is only about 2/3 in height

%
% Indentation spacing
%

\setlength{\parindent}{1.5em}%
\setlength{\parskip}{0pt}%
\setlength{\RaggedRightRightskip}{\z@ plus 0.08\hsize}

% Paragraph indentation and separation for normal text
\def\@tufte@reset@par{%
  \setlength{\RaggedRightParindent}{1.5em}%
  \setlength{\JustifyingParindent}{1.5em}%
  \setlength{\parindent}{1.5pc}%
  \setlength{\parskip}{0pt}%
}
\@tufte@reset@par

% Paragraph indentation and separation for marginal text
\def\@tufte@margin@par{%
  \setlength{\RaggedRightParindent}{1em}%
  \setlength{\JustifyingParindent}{1em}%
  \setlength{\parindent}{1em}%
  \setlength{\parskip}{0.2em}%
}

\setlength\leftmargini   {1.5em}
\setlength\leftmarginii  {1.5em}
\setlength\leftmarginiii {1.5em}
\setlength\leftmarginiv  {1.5em}
\setlength\leftmarginv   {1.5em}
\setlength\leftmarginvi  {1.5em}
\setlength\labelsep      {1em}
\setlength\labelwidth    {\leftmargini}
\addtolength\labelwidth{-\labelsep}

%
% Adjust the page margins
%
%\geometry{letterpaper,left=1in,top=1in,headsep=\baselineskip,textwidth=26pc,marginparsep=2pc,marginparwidth=12pc,textheight=28\baselineskip,headheight=\baselineskip}%

% 2020-04-16 this worked okay. but is line spacing okay?
%\geometry{letterpaper,left=1in,top=1in,headsep=\baselineskip,textwidth=26pc,marginparsep=2pc,marginparwidth=12pc,textheight=42\baselineskip,headheight=\baselineskip}%

\geometry{letterpaper,left=0.75in,top=1.25in,headsep=2\baselineskip,textwidth=28pc,marginparsep=2pc,marginparwidth=14pc,textheight=40\baselineskip,headheight=\baselineskip}%

\ifthenelse{\boolean{@tufte@afourpaper}}{%
  \geometry{a4paper,left=24.8mm,top=27.4mm,headsep=\baselineskip,textwidth=107mm,marginparsep=8.2mm,marginparwidth=49.4mm,textheight=32\baselineskip,headheight=\baselineskip}
}{}

% TODO: adjust for A5 paper, too

%
% Prevent a bunch of line overruns by allowing sloppier paragraphs
%

\sloppy

%
% That's it!
%
\endinput