-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdf-ebook.sty
37 lines (31 loc) · 987 Bytes
/
pdf-ebook.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
% \needsTeXFormat{LaTeX2e}
\ProvidesPackage{pdf-ebook}[2014/04/01 v0.1 Fonts and formatting for ereaders]
% PDF-specific formatting changes
% These will work with both pdftex and luatex but not xetex
\RequirePackage{ifpdf}
\ifpdf
% Clears the header and footer, including the page numbers
% Fancyhdr offers another way to do this.
\pagestyle{empty}
\@ifpackageloaded{geometry}{%
% Geometry is loaded, change options.
\geometry{paperwidth=3.6in,
paperheight=4.8in,
margin=0in,
onecolumn}
}{%
% If geometry isn't loaded, load it.
\RequirePackage[paperwidth=3.6in,
paperheight=4.8in,
margin=0in,
onecolumn]{geometry}
}
\else
% tex4ht- or DVI-specific options would go here if there were any
\fi
% Set fonts
% Amsmath has to be loaded after stix and before mathastext
% \RequirePackage[T1]{fontenc}
% \RequirePackage[notext]{stix}
% \RequirePackage{droid}
% \RequirePackage{mathastext}