summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/rotpages/Examples/rotpages-doublecolumn-ex.tex
blob: fce34674f3a482d036bb31bb7b2450cc9686b336 (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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
\documentclass[12pt,twoside,twocolumn]{article}
\usepackage[a4paper,headheight=4ex]{geometry}
\usepackage{times}
\usepackage{rotpages}
\usepackage{fancyhdr}

\title{\texttt{rotpages.sty} --- Multiple page rotation in \LaTeX\\
  Example file}
\author{Sergio Callegari}
\date{January 1st, 2003}

\fancyhead[LE]{\emph{rotpages.sty}}
\fancyhead[RO]{Multiple page rotation in \LaTeX}
\fancyfoot{}
\fancyfoot[L]{{\footnotesize Example file for a two column document.}}
\fancyfoot[R]{\thepage}


\begin{document}
\sloppy
\pagestyle{fancy}
\maketitle
\thispagestyle{fancy}

This is the first column of the document. In this document we take
advantage only of the simplest features of the \texttt{rotpages.sty}
package, i.e.\@ we only use the basic \verb|\rotboxpages| and
\verb|\endrotboxpages| commands.


The first columns are typeset normally.  To fill them a little, we include
the first part of \emph{Pinocchio} by Carlo Collodi.

\bigskip
{\slshape%
  \textbf{CHAPTER 1}
  
  \emph{How it happened that Mastro Cherry, carpenter,
  found a piece of wood that wept and laughed like a child}
  \medskip
 
  Centuries ago there lived ---
  
  "A king!" my little readers will say immediately.
  
  No, children, you are mistaken.  Once upon a time
  there was a piece of wood.  It was not an expensive piece
  of wood.  Far from it.  Just a common block of firewood,
  one of those thick, solid logs that are put on the fire in
  winter to make cold rooms cozy and warm.
  
  I do not know how this really happened, yet the fact
  remains that one fine day this piece of wood found itself
  in the shop of an old carpenter.  His real name was
  Mastro Antonio, but everyone called him Mastro Cherry,
  for the tip of his nose was so round and red and shiny
  that it looked like a ripe cherry.
  
  As soon as he saw that piece of wood, Mastro Cherry
  was filled with joy.  Rubbing his hands together happily,
  he mumbled half to himself:
  
  "This has come in the nick of time.  I shall use it to
  make the leg of a table."
  
  He grasped the hatchet quickly to peel off the bark and
  shape the wood.  But as he was about to give it the first
  blow, he stood still with arm uplifted, for he had heard a
  wee, little voice say in a beseeching tone:  "Please be careful!
  Do not hit me so hard!"
  
  What a look of surprise shone on Mastro Cherry's
  face!  His funny face became still funnier.
  
  He turned frightened eyes about the room to find out
  where that wee, little voice had come from and he saw
  no one! He looked under the bench--no one! He peeped
  inside the closet--no one! He searched among the shavings--
  no one! He opened the door to look up and down
  the street--and still no one!

  "Oh, I see!" he then said, laughing and scratching his Wig.
  "It can easily be seen that I only thought I heard the tiny
  voice say the words! Well, well--to work once more."
  
  He struck a most solemn blow upon the piece of wood.
  
  "Oh, oh!  You hurt!" cried the same far-away little voice.
  
  Mastro Cherry grew dumb, his eyes popped out of his
  head, his mouth opened wide, and his tongue hung down
  on his chin.
  
  As soon as he regained the use of his senses, he said,
  trembling and stuttering from fright:
  
  "Where did that voice come from, when there is no
  one around?  Might it be that this piece of wood has
  learned to weep and cry like a child?  I can hardly
  believe it.  Here it is--a piece of common firewood, good
  only to burn in the stove, the same as any other.  Yet--
  might someone be hidden in it?  If so, the worse for him.
  I'll fix him!"
  
  With these words, he grabbed the log with both hands
  and started to knock it about unmercifully.  He threw it
  to the floor, against the walls of the room, and even up
  to the ceiling.
  
  He listened for the tiny voice to moan and cry.
  He waited two minutes--nothing; five minutes--nothing;
  ten minutes--nothing.
  
  "Oh, I see," he said, trying bravely to laugh and
  ruffling up his wig with his hand.  "It can easily be seen
  I only imagined I heard the tiny voice!  Well, well--to
  work once more!"

  The poor fellow was scared half to death, so he tried
  to sing a gay song in order to gain courage.
  
  He set aside the hatchet and picked up the plane to
  make the wood smooth and even, but as he drew it to
  and fro, he heard the same tiny voice.  This time it giggled
  as it spoke:
  
  "Stop it!  Oh, stop it!  Ha, ha, ha! You tickle my stomach."
  
  This time poor Mastro Cherry fell as if shot.  When
  he opened his eyes, he found himself sitting on the floor.
  
  His face had changed; fright had turned even the tip of
  his nose from red to deepest purple.

}
\bigskip
Note that the next columns are upside down.

\rotboxpages%
Here come the rotated columns. Note that while formatting the
document, this column is \emph{deferred}, until all the block of rotated
columns is processed. In this way, this column is printed as the last one
of the block. However, if the printed work is read upside down, this
column correctly appears as the first of the block.

Obviously, also this column contains the continuation of the novel:

\bigskip
{\slshape%

  \textbf{CHAPTER 2}

  \emph{Mastro Cherry gives the piece of wood to his friend Geppetto,
    who takes it to make himself a Marionette that will dance,
    fence, and turn somersaults}
  \medskip
  
  In that very instant, a loud knock sounded on the door.
  "Come in," said the carpenter, not having an atom of
  strength left with which to stand up.
  
  At the words, the door opened and a dapper little old man came in.
  His name was Geppetto, but to the boys of the neighborhood he was
  Polendina\footnote{Corneal mush}, on account of the wig he always
  wore which was just the color of yellow corn.
  
}

\bigbreak

Here we make a small break in the story. Please, take a second to
observe how the column content is rotated, while the page headers and
footers, comprising the page number, are printed with the standard
orientation. Take also a quick look at the footnote and observe that
it is in the right place.

Note also that in order to introduce a frame, the rotated columns are
slightly smaller (i.e.\@ they contain a little less text than the
normal ones.)  

After this informative bit, it is time for some more Pinocchio:

\bigskip
{\slshape%
  Geppetto had a very bad temper.  Woe to the one who
  called him Polendina!  He became as wild as a beast and
  no one could soothe him.
  
  "Good day, Mastro Antonio," said Geppetto.  "What
  are you doing on the floor?"
  
  "I am teaching the ants their A B C's."
  
  "Good luck to you!"
  
  "What brought you here, friend Geppetto?"
  
  "My legs.  And it may flatter you to know, Mastro
  Antonio, that I have come to you to beg for a favor."
  
  "Here I am, at your service," answered the carpenter,
  raising himself on to his knees.
  
  "This morning a fine idea came to me."
  
  "Let's hear it."
  
  "I thought of making myself a beautiful wooden
  Marionette.  It must be wonderful, one that will be able to
  dance, fence, and turn somersaults.  With it I intend to go
  around the world, to earn my crust of bread and cup of
  wine.  What do you think of it?"
  
  "Bravo, Polendina!" cried the same tiny voice which
  came from no one knew where.
  
  On hearing himself called Polendina, Mastro Geppetto
  turned the color of a red pepper and, facing the carpenter,
  said to him angrily:
  
  "Why do you insult me?"
  
  "Who is insulting you?"
  
  "You called me Polendina."
  
  "I did not."
  
  "I suppose you think \_I\_ did!  Yet I KNOW it was you."
  
  "No!"
  
  "Yes!"
  
  "No!"
  
  "Yes!"
  
  And growing angrier each moment, they went from
  words to blows, and finally began to scratch and bite and
  slap each other.
  
  When the fight was over, Mastro Antonio had Geppetto's
  yellow wig in his hands and Geppetto found the carpenter's
  curly wig in his mouth.
  
  "Give me back my wig!" shouted Mastro Antonio in a surly voice.
  
  "You return mine and we'll be friends."
  
  The two little old men, each with his own wig back on
  his own head, shook hands and swore to be good friends
  for the rest of their lives.
  
  "Well then, Mastro Geppetto," said the carpenter, to
  show he bore him no ill will, "what is it you want?"
  
  "I want a piece of wood to make a Marionette.  Will you give it to
  me?"
    
  Mastro Antonio, very glad indeed, went immediately
  to his bench to get the piece of wood which had frightened
  him so much.  But as he was about to give it to his friend,
  with a violent jerk it slipped out of his hands and hit
  against poor Geppetto's thin legs.
  
  "Ah!  Is this the gentle way, Mastro Antonio, in which
  you make your gifts?  You have made me almost lame!"
  
  "I swear to you I did not do it!"
  
  "It was \_I\_, of course!"
  
  "It's the fault of this piece of wood."
  
  "You're right; but remember you were the one to throw it at my legs."
  
  "I did not throw it!"
  
  "Liar!"
  
  "Geppetto, do not insult me or I shall call you Polendina."
  
  "Idiot."
  
  "Polendina!"
  
  "Donkey!"
  
  "Polendina!"
  
  "Ugly monkey!"
  
  "Polendina!"
  
  On hearing himself called Polendina for the third time,
  Geppetto lost his head with rage and threw himself upon
  the carpenter.  Then and there they gave each other a
  sound thrashing.
  
  After this fight, Mastro Antonio had two more scratches
  on his nose, and Geppetto had two buttons missing from
  his coat.  Thus having settled their accounts, they shook
  hands and swore to be good friends for the rest of their lives.
  
  Then Geppetto took the fine piece of wood,
  thanked Mastro Antonio, and limped away toward home.
}
\endrotboxpages 

And the normal behaviur of \LaTeX is back!
Exiting isn't it? So don't forget to tell your friends about this new
package!
\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: