summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/flexipage/Test-flexipage.tex
blob: be69577405428b53070001194dd9105e4f8df0d3 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
\documentclass[twoside,8pt]{extarticle}
\PassOptionsToPackage{
 paperheight =5in, % inherits from class
 paperwidth = 4in, % inherits from class
% inner = , % default 36pt or 0.5in
% outer = , % 36pt or 0.5in
% top = , % 36pt or 0.5in
% bot = , % 36pt or 0.5in
% binding = 9pt, % 9pt or 0.125in
 outerbleed = 9pt, % 0pt, but check with your printer
 innerbleed = 4pt, % 0pt, but check with your printer
% grid  , % 12 it is just a number
% marginalgrid =  , % 3 it is just a number
% marginparsep =  , % 3ex, if using sidenotesplus change to 4 or 5ex
% headsep = , % inherits from class
% headheight = , % inherits from class
% footskip=  , % inherits from class
 show, % a switch to show frames around the printable areas.
% fancyhdrOff
}{flexipage}
\usepackage{flexipage}
\usepackage[]{lucimatx}
\linespread{1.06}
\usepackage{lipsum}
\setlipsum{%
  par-before = \begingroup\color{gray},
  par-after = \endgroup,
  sentence-before = \begingroup\color{gray},
  sentence-after = \endgroup
}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[EL,OR]{\thepage}
\fancyhead[ER]{My New Book}
\fancyhead[OL]{Chapter 1}
\renewcommand{\headrulewidth}{0pt}

\usepackage{microtype}

\begin{document}


\begin{verbatim}
\documentclass[twoside,8pt]{extbook}
\PassOptionsToPackage{
  paperheight = 5in, %  inherits from class
  paperwidth =  4in , %  inherits from class
% inner =         , %  default 36pt or 0.5in
  outer =         , %          36pt or 0.5in
% top =           , %          36pt or 0.5in
% bot =           , %          36pt or 0.5in
% binding =       , %           9pt or 0.125in
  outerbleed = 9pt, %           0pt,
  innerbleed = 4pt, %           0pt,
% grid =          , %          12
% marginalgrid =  , %           3
% marginparsep =  , %           3ex,
% headsep =       , % inherits from class
% headheight =    , % inherits from class
% footskip=       , % inherits from class
  show            , % a switch to show frames
% fancyhdrOff       % not using fancyhdr
}{flexipage}
\end{verbatim}
\footnotesize

         \lipsum[10][1-3] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[8]}

         \lipsum[2] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[8][1-5]}

         \lipsum[2][1-6]

~

{\normalsize
\noindent\verb"\NewMarginPage<6ex>{4}" increases marginal and \verb"\parsep" on next page}
\NewMarginPage<6ex>{4} % Increase margin size

         \lipsum[3][1-3]  \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[10][1-4]}

         \lipsum[1][1-8]

       \lipsum[2][1-7]

~

{\normalsize
\noindent\verb"\ResetFlexiPage" to original page setup with the narrower margin}
\ResetFlexiPage

         \lipsum[10][1-5] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[1][1-3]} \lipsum[2]

~

{\normalsize
\noindent\verb"\Lanscape" enters landscape mode}
\begin{Landscape} % enter lanscape mode,

         \lipsum[1-4]

~

{\normalsize
\noindent\verb"\endLandscape" exits landscape mode }
\end{Landscape} % exit lanscape mode,
         \lipsum[2][1-5] \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[1][1-3]} \lipsum[11]

~

{\normalsize
\noindent\verb"\begin{landscape}" enters landscape environment}
 \begin{landscape}
 \lipsum[2-5]
 \end{landscape}
{\normalsize
\noindent\verb"\end{landscape}" exits landscape environment}

~

 \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[1][1-3]}  \lipsum[17]

~

{\normalsize
\noindent\verb"\NewFullPage" enters full page mode}
\NewFullPage

         \lipsum[1-4]

~

{\normalsize
\noindent\verb"\OldMarginPage " restores the previous page format}
\OldMarginPage

 \marginpar[{\itshape\tiny\lipsum[1][1-4]}]{\itshape\tiny\lipsum[1][1-3]}  \lipsum[17]



\end{document}