Debian Codegraph @

texmf-dist/doc/latex/rotpages/Examples/rotpages-singlecolumn-ex.tex

raw
1 \documentclass[12pt,twoside]{article}
2 \usepackage[a4paper,headheight=4ex]{geometry}
3 \usepackage{times}
4 \usepackage{rotpages}
5 \usepackage{fancyhdr}
6
7 \title{\texttt{rotpages.sty} --- Multiple page rotation in \LaTeX\\
8 Example file}
9 \author{Sergio Callegari}
10 \date{January 1st, 2003}
11
12 \fancyhead[LE]{\emph{rotpages.sty}}
13 \fancyhead[RO]{Multiple page rotation in \LaTeX}
14 \fancyfoot{}
15 \fancyfoot[L]{{\footnotesize Example file for a single column document.}}
16 \fancyfoot[R]{\thepage}
17
18
19 \begin{document}
20 \sloppy
21 \pagestyle{fancy}
22 \maketitle
23 \thispagestyle{fancy}
24
25 This is the first page of the document. In this document we take
26 advantage only of the simplest features of the \texttt{rotpages.sty}
27 package, i.e.\@ we only use the basic \verb|\rotboxpages| and
28 \verb|\endrotboxpages| commands.
29
30
31 The first pages are typeset normally. To fill them a little, we include
32 the first part of \emph{Pinocchio} by Carlo Collodi.
33
34 \bigskip
35 {\slshape%
36 \textbf{CHAPTER 1}
37
38 \emph{How it happened that Mastro Cherry, carpenter,
39 found a piece of wood that wept and laughed like a child}
40 \medskip
41
42 Centuries ago there lived ---
43
44 "A king!" my little readers will say immediately.
45
46 No, children, you are mistaken. Once upon a time
47 there was a piece of wood. It was not an expensive piece
48 of wood. Far from it. Just a common block of firewood,
49 one of those thick, solid logs that are put on the fire in
50 winter to make cold rooms cozy and warm.
51
52 I do not know how this really happened, yet the fact
53 remains that one fine day this piece of wood found itself
54 in the shop of an old carpenter. His real name was
55 Mastro Antonio, but everyone called him Mastro Cherry,
56 for the tip of his nose was so round and red and shiny
57 that it looked like a ripe cherry.
58
59 As soon as he saw that piece of wood, Mastro Cherry
60 was filled with joy. Rubbing his hands together happily,
61 he mumbled half to himself:
62
63 "This has come in the nick of time. I shall use it to
64 make the leg of a table."
65
66 He grasped the hatchet quickly to peel off the bark and
67 shape the wood. But as he was about to give it the first
68 blow, he stood still with arm uplifted, for he had heard a
69 wee, little voice say in a beseeching tone: "Please be careful!
70 Do not hit me so hard!"
71
72 What a look of surprise shone on Mastro Cherry's
73 face! His funny face became still funnier.
74
75 He turned frightened eyes about the room to find out
76 where that wee, little voice had come from and he saw
77 no one! He looked under the bench--no one! He peeped
78 inside the closet--no one! He searched among the shavings--
79 no one! He opened the door to look up and down
80 the street--and still no one!
81
82 "Oh, I see!" he then said, laughing and scratching his Wig.
83 "It can easily be seen that I only thought I heard the tiny
84 voice say the words! Well, well--to work once more."
85
86 He struck a most solemn blow upon the piece of wood.
87
88 "Oh, oh! You hurt!" cried the same far-away little voice.
89
90 Mastro Cherry grew dumb, his eyes popped out of his
91 head, his mouth opened wide, and his tongue hung down
92 on his chin.
93
94 As soon as he regained the use of his senses, he said,
95 trembling and stuttering from fright:
96
97 "Where did that voice come from, when there is no
98 one around? Might it be that this piece of wood has
99 learned to weep and cry like a child? I can hardly
100 believe it. Here it is--a piece of common firewood, good
101 only to burn in the stove, the same as any other. Yet--
102 might someone be hidden in it? If so, the worse for him.
103 I'll fix him!"
104
105 With these words, he grabbed the log with both hands
106 and started to knock it about unmercifully. He threw it
107 to the floor, against the walls of the room, and even up
108 to the ceiling.
109
110 He listened for the tiny voice to moan and cry.
111 He waited two minutes--nothing; five minutes--nothing;
112 ten minutes--nothing.
113
114 "Oh, I see," he said, trying bravely to laugh and
115 ruffling up his wig with his hand. "It can easily be seen
116 I only imagined I heard the tiny voice! Well, well--to
117 work once more!"
118
119 The poor fellow was scared half to death, so he tried
120 to sing a gay song in order to gain courage.
121
122 He set aside the hatchet and picked up the plane to
123 make the wood smooth and even, but as he drew it to
124 and fro, he heard the same tiny voice. This time it giggled
125 as it spoke:
126
127 "Stop it! Oh, stop it! Ha, ha, ha! You tickle my stomach."
128
129 This time poor Mastro Cherry fell as if shot. When
130 he opened his eyes, he found himself sitting on the floor.
131
132 His face had changed; fright had turned even the tip of
133 his nose from red to deepest purple.
134
135 }
136 \bigskip
137 Note that the next pages are upside down.
138
139 \rotboxpages%
140 Here come the rotated pages. Note that while formatting the
141 document, this page is \emph{deferred}, until all the block of rotated
142 pages is processed. In this way, this page is printed as the last one
143 of the block. However, if the printed work is read upside down, this
144 page correctly appears as the first of the block.
145
146 Obviously, also this page contains the continuation of the novel:
147
148 \bigskip
149 {\slshape%
150
151 \textbf{CHAPTER 2}
152
153 \emph{Mastro Cherry gives the piece of wood to his friend Geppetto,
154 who takes it to make himself a Marionette that will dance,
155 fence, and turn somersaults}
156 \medskip
157
158 In that very instant, a loud knock sounded on the door.
159 "Come in," said the carpenter, not having an atom of
160 strength left with which to stand up.
161
162 At the words, the door opened and a dapper little old man came in.
163 His name was Geppetto, but to the boys of the neighborhood he was
164 Polendina\footnote{Corneal mush}, on account of the wig he always
165 wore which was just the color of yellow corn.
166
167 }
168
169 \bigbreak
170
171 Here we make a small break in the story. Please, take a second to
172 observe how the page content is rotated, while the page headers and
173 footers, comprising the page number, are printed with the standard
174 orientation. Take also a quick look at the footnote and observe that
175 it is in the right place.
176
177 Note also that in order to introduce a frame, the rotated pages are
178 slightly smaller (i.e.\@ they contain a little less text than the
179 normal ones.)
180
181 After this informative bit, it is time for some more Pinocchio:
182
183 \bigskip
184 {\slshape%
185 Geppetto had a very bad temper. Woe to the one who
186 called him Polendina! He became as wild as a beast and
187 no one could soothe him.
188
189 "Good day, Mastro Antonio," said Geppetto. "What
190 are you doing on the floor?"
191
192 "I am teaching the ants their A B C's."
193
194 "Good luck to you!"
195
196 "What brought you here, friend Geppetto?"
197
198 "My legs. And it may flatter you to know, Mastro
199 Antonio, that I have come to you to beg for a favor."
200
201 "Here I am, at your service," answered the carpenter,
202 raising himself on to his knees.
203
204 "This morning a fine idea came to me."
205
206 "Let's hear it."
207
208 "I thought of making myself a beautiful wooden
209 Marionette. It must be wonderful, one that will be able to
210 dance, fence, and turn somersaults. With it I intend to go
211 around the world, to earn my crust of bread and cup of
212 wine. What do you think of it?"
213
214 "Bravo, Polendina!" cried the same tiny voice which
215 came from no one knew where.
216
217 On hearing himself called Polendina, Mastro Geppetto
218 turned the color of a red pepper and, facing the carpenter,
219 said to him angrily:
220
221 "Why do you insult me?"
222
223 "Who is insulting you?"
224
225 "You called me Polendina."
226
227 "I did not."
228
229 "I suppose you think \_I\_ did! Yet I KNOW it was you."
230
231 "No!"
232
233 "Yes!"
234
235 "No!"
236
237 "Yes!"
238
239 And growing angrier each moment, they went from
240 words to blows, and finally began to scratch and bite and
241 slap each other.
242
243 When the fight was over, Mastro Antonio had Geppetto's
244 yellow wig in his hands and Geppetto found the carpenter's
245 curly wig in his mouth.
246
247 "Give me back my wig!" shouted Mastro Antonio in a surly voice.
248
249 "You return mine and we'll be friends."
250
251 The two little old men, each with his own wig back on
252 his own head, shook hands and swore to be good friends
253 for the rest of their lives.
254
255 "Well then, Mastro Geppetto," said the carpenter, to
256 show he bore him no ill will, "what is it you want?"
257
258 "I want a piece of wood to make a Marionette. Will you give it to
259 me?"
260
261 Mastro Antonio, very glad indeed, went immediately
262 to his bench to get the piece of wood which had frightened
263 him so much. But as he was about to give it to his friend,
264 with a violent jerk it slipped out of his hands and hit
265 against poor Geppetto's thin legs.
266
267 "Ah! Is this the gentle way, Mastro Antonio, in which
268 you make your gifts? You have made me almost lame!"
269
270 "I swear to you I did not do it!"
271
272 "It was \_I\_, of course!"
273
274 "It's the fault of this piece of wood."
275
276 "You're right; but remember you were the one to throw it at my legs."
277
278 "I did not throw it!"
279
280 "Liar!"
281
282 "Geppetto, do not insult me or I shall call you Polendina."
283
284 "Idiot."
285
286 "Polendina!"
287
288 "Donkey!"
289
290 "Polendina!"
291
292 "Ugly monkey!"
293
294 "Polendina!"
295
296 On hearing himself called Polendina for the third time,
297 Geppetto lost his head with rage and threw himself upon
298 the carpenter. Then and there they gave each other a
299 sound thrashing.
300
301 After this fight, Mastro Antonio had two more scratches
302 on his nose, and Geppetto had two buttons missing from
303 his coat. Thus having settled their accounts, they shook
304 hands and swore to be good friends for the rest of their lives.
305
306 Then Geppetto took the fine piece of wood,
307 thanked Mastro Antonio, and limped away toward home.
308 }
309 \endrotboxpages
310
311 And the normal behaviur of \LaTeX is back!
312 Exiting isn't it? So don't forget to tell your friends about this new
313 package!
314 \end{document}
315
316 %%% Local Variables:
317 %%% mode: latex
318 %%% TeX-master: t
319 %%% End: