-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtuftex-maketitle.sty
53 lines (48 loc) · 1.72 KB
/
tuftex-maketitle.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tuftex-maketitle}[2023-06-20 package tuftex-maketitle]
% package preliminary declarations
\RequirePackage{tuftex-tuftebreak}
% package options: none - not implementing sfsidenotes
% package declarations
% From the original tufte-common.def
%\renewcommand{\maketitle}{%
% \newpage
% \global\@topnum\z@% prevent floats from being placed at the top of the page
% \begingroup
% \setlength{\parindent}{0pt}%
% \setlength{\parskip}{4pt}%
% \let\@@title\@empty
% \let\@@author\@empty
% \let\@@date\@empty
% \ifthenelse{\boolean{@tufte@sfsidenotes}}{%
% \gdef\@@title{\sffamily\LARGE\allcaps{\@title}\par}%
% \gdef\@@author{\sffamily\Large\allcaps{\@author}\par}%
% \gdef\@@date{\sffamily\Large\allcaps{\@date}\par}%
% }{%
% \gdef\@@title{\LARGE\itshape\@title\par}%
% \gdef\@@author{\Large\itshape\@author\par}%
% \gdef\@@date{\Large\itshape\@date\par}%
% }%
% \@@title
% \@@author
% \@@date
% \endgroup
% \thispagestyle{plain}% suppress the running head
% \tuftebreak% add some space before the text begins
% \@afterindentfalse\@afterheading% suppress indentation of the next paragraph
%}
\NewDocumentCommand{\@tuftex@MakeTitle}{}{
\clearpage % require user to do floats with [hbp] to not be on page 1
\begingroup
\setlength{\parindent}{0pt}%
\setlength{\parskip}{4pt}%
\LARGE\itshape\@title\par
\Large\itshape\@author\par
\Large\itshape\@date\par
\endgroup
\thispagestyle{empty}% suppress the running head
\@tuftex@TufteBreak% add some space before the text begins
\@afterindentfalse\@afterheading% suppress indentation of the next paragraph
}
% Expose to outside world with legacy command name
\RenewDocumentCommand{\maketitle}{}{\@tuftex@MakeTitle}