| 1 |
\documentclass[twoside,8pt]{extarticle} |
| 2 |
\PassOptionsToPackage{ |
| 3 |
paperheight =5in, % inherits from class |
| 4 |
paperwidth = 4in, % inherits from class |
| 5 |
% inner = , % default 36pt or 0.5in |
| 6 |
% outer = , % 36pt or 0.5in |
| 7 |
% top = , % 36pt or 0.5in |
| 8 |
% bot = , % 36pt or 0.5in |
| 9 |
% binding = 9pt, % 9pt or 0.125in |
| 10 |
outerbleed = 9pt, % 0pt, but check with your printer |
| 11 |
innerbleed = 4pt, % 0pt, but check with your printer |
| 12 |
% grid , % 12 it is just a number |
| 13 |
% marginalgrid = , % 3 it is just a number |
| 14 |
% marginparsep = , % 3ex, if using sidenotesplus change to 4 or 5ex |
| 15 |
% headsep = , % inherits from class |
| 16 |
% headheight = , % inherits from class |
| 17 |
% footskip= , % inherits from class |
| 18 |
show, % a switch to show frames around the printable areas. |
| 19 |
% fancyhdrOff |
| 20 |
}{flexipage} |
| 21 |
\usepackage{flexipage} |
| 22 |
\usepackage[]{lucimatx} |
| 23 |
\linespread{1.06} |
| 24 |
\usepackage{lipsum} |
| 25 |
\setlipsum{% |
| 26 |
par-before = \begingroup\color{gray}, |
| 27 |
par-after = \endgroup, |
| 28 |
sentence-before = \begingroup\color{gray}, |
| 29 |
sentence-after = \endgroup |
| 30 |
} |
| 31 |
|
| 32 |
\usepackage{fancyhdr} |
| 33 |
\pagestyle{fancy} |
| 34 |
\fancyhead[EL,OR]{\thepage} |
| 35 |
\fancyhead[ER]{My New Book} |
| 36 |
\fancyhead[OL]{Chapter 1} |
| 37 |
\renewcommand{\headrulewidth}{0pt} |
| 38 |
|
| 39 |
\usepackage{microtype} |
| 40 |
|
| 41 |
\begin{document} |
| 42 |
|
| 43 |
|
| 44 |
\begin{verbatim} |
| 45 |
\documentclass[twoside,8pt]{extbook} |
| 46 |
\PassOptionsToPackage{ |
| 47 |
paperheight = 5in, % inherits from class |
| 48 |
paperwidth = 4in , % inherits from class |
| 49 |
% inner = , % default 36pt or 0.5in |
| 50 |
outer = , % 36pt or 0.5in |
| 51 |
% top = , % 36pt or 0.5in |
| 52 |
% bot = , % 36pt or 0.5in |
| 53 |
% binding = , % 9pt or 0.125in |
| 54 |
outerbleed = 9pt, % 0pt, |
| 55 |
innerbleed = 4pt, % 0pt, |
| 56 |
% grid = , % 12 |
| 57 |
% marginalgrid = , % 3 |
| 58 |
% marginparsep = , % 3ex, |
| 59 |
% headsep = , % inherits from class |
| 60 |
% headheight = , % inherits from class |
| 61 |
% footskip= , % inherits from class |
| 62 |
show , % a switch to show frames |
| 63 |
% fancyhdrOff % not using fancyhdr |
| 64 |
}{flexipage} |
| 65 |
\end{verbatim} |
| 66 |
\footnotesize |
| 67 |
|
| 68 |
\lipsum[10][1-3] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[8]} |
| 69 |
|
| 70 |
\lipsum[2] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[8][1-5]} |
| 71 |
|
| 72 |
\lipsum[2][1-6] |
| 73 |
|
| 74 |
~ |
| 75 |
|
| 76 |
{\normalsize |
| 77 |
\noindent\verb"\NewMarginPage<6ex>{4}" increases marginal and \verb"\parsep" on next page} |
| 78 |
\NewMarginPage<6ex>{4} % Increase margin size |
| 79 |
|
| 80 |
\lipsum[3][1-3] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[10][1-4]} |
| 81 |
|
| 82 |
\lipsum[1][1-8] |
| 83 |
|
| 84 |
\lipsum[2][1-7] |
| 85 |
|
| 86 |
~ |
| 87 |
|
| 88 |
{\normalsize |
| 89 |
\noindent\verb"\ResetFlexiPage" to original page setup with the narrower margin} |
| 90 |
\ResetFlexiPage |
| 91 |
|
| 92 |
\lipsum[10][1-5] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[1][1-3]} \lipsum[2] |
| 93 |
|
| 94 |
~ |
| 95 |
|
| 96 |
{\normalsize |
| 97 |
\noindent\verb"\Lanscape" enters landscape mode} |
| 98 |
\begin{Landscape} % enter lanscape mode, |
| 99 |
|
| 100 |
\lipsum[1-4] |
| 101 |
|
| 102 |
~ |
| 103 |
|
| 104 |
{\normalsize |
| 105 |
\noindent\verb"\endLandscape" exits landscape mode } |
| 106 |
\end{Landscape} % exit lanscape mode, |
| 107 |
\lipsum[2][1-5] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[1][1-3]} \lipsum[11] |
| 108 |
|
| 109 |
~ |
| 110 |
|
| 111 |
{\normalsize |
| 112 |
\noindent\verb"\begin{landscape}" enters landscape environment} |
| 113 |
\begin{landscape} |
| 114 |
\lipsum[2-5] |
| 115 |
\end{landscape} |
| 116 |
{\normalsize |
| 117 |
\noindent\verb"\end{landscape}" exits landscape environment} |
| 118 |
|
| 119 |
~ |
| 120 |
|
| 121 |
\marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[1][1-3]} \lipsum[17] |
| 122 |
|
| 123 |
~ |
| 124 |
|
| 125 |
{\normalsize |
| 126 |
\noindent\verb"\NewFullPage" enters full page mode} |
| 127 |
\NewFullPage |
| 128 |
|
| 129 |
\lipsum[1-4] |
| 130 |
|
| 131 |
~ |
| 132 |
|
| 133 |
{\normalsize |
| 134 |
\noindent\verb"\OldMarginPage " restores the previous page format} |
| 135 |
\OldMarginPage |
| 136 |
|
| 137 |
\marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[1][1-3]} \lipsum[17] |
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
\end{document} |