-
Notifications
You must be signed in to change notification settings - Fork 0
/
tuftex-tuftebreak.sty
27 lines (20 loc) · 969 Bytes
/
tuftex-tuftebreak.sty
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tuftex-tuftebreak}[2023-06-20 package tuftex-tuftebreak]
% package preliminary declarations: none
% package options: none
% package declarations
% From the original tufte-common.def:
%\newskip\tufteskipamount
%\tufteskipamount=1.0\baselineskip plus 0.5ex minus 0.2ex
\newlength\@tuftex@tufteskipamount
\setlength{\@tuftex@tufteskipamount}{1.0\baselineskip plus 0.5ex minus 0.2ex}
% From the original tufte-common.def
%\newcommand{\tuftebreak}{\par\ifdim\lastskip<\tufteskipamount
% \removelastskip\penalty-100\tufteskip\fi}
\NewDocumentCommand{\@tuftex@TufteBreak}{}{\par\ifdim\lastskip<\@tuftex@tufteskipamount
\removelastskip\penalty-100\@tuftex@TufteSkip\fi}
% From the original tufte-common.def
%\newcommand{\tufteskip}{\vspace\tufteskipamount}
\NewDocumentCommand{\@tuftex@TufteSkip}{}{\vspace\@tuftex@tufteskipamount}
% expose to outside world with legacy name
\NewCommandCopy{\tuftebreak}{\@tuftex@TufteBreak}