handoutWithNotes.sty (17865B)
1 % Copyright 2009 by Guido Diepen <guido@guidodiepen.nl> 2 % Parts provided by Edson Valle 3 % 4 % This file may be distributed and/or modified 5 % 6 % 1. under the LaTeX Project Public License and/or 7 % 2. under the GNU Public License. 8 % 9 % Changelog 10 % 20091202 - Added "1 on 1 with notes" layout, provided by Harald Welte 11 % 20091108 - Added "2 on 1 with notes landscape" layout, provided by Edson Valle 12 % 20091104 - Added "3 on 1 with notes" layout 13 % 20091104 - Added "2 on 1 with notes" layout 14 % 20091104 - Added "1 on 1 with notes landscape" layout, provided by Edson Valle 15 % 20090101 - Initial Version 16 17 \RequirePackage{eso-pic,tikz} 18 \RequirePackage[framemethod=tikz]{mdframed} 19 \RequirePackage{pgfpages} 20 21 % Grids mit Tikz 22 \tikzset{grid internal/.style={step=0.5cm,lightgray,line width=0.2pt}} 23 24 \tikzset{grid border/.style={step=0.5cm,lightgray,line width=0.5pt}} 25 26 %% ---------------------------------------------------- MODE 1_to_1-notes-ls 27 \pgfpagesdeclarelayout{1 on 1 with notes landscape} { 28 \edef\pgfpageoptionheight{\the\paperwidth} 29 \edef\pgfpageoptionwidth{\the\paperheight} 30 \edef\pgfpageoptionborder{0pt} 31 } 32 { 33 \setkeys{pgfpagesuselayoutoption}{landscape} 34 \pgfpagesphysicalpageoptions 35 {% 36 logical pages=2,% 37 physical height=\pgfpageoptionheight,% 38 physical width=\pgfpageoptionwidth,% 39 % last logical shipout=3% 40 last logical shipout=1% 41 } 42 43 \pgfpageslogicalpageoptions{1} 44 {% 45 scale=1.2, 46 center=\pgfpoint{.3\pgfphysicalwidth}{.5\pgfphysicalheight}% 47 }% 48 49 50 51 \pgfpageslogicalpageoptions{2} 52 {% 53 border shrink=\pgfpageoptionborder,% 54 resized width=.45\pgfphysicalwidth,% 55 resized height=.45\pgfphysicalheight,% 56 center=\pgfpoint{.78\pgfphysicalwidth}{.6\pgfphysicalheight},% 57 copy from=2 58 }% 59 60 \AtBeginDocument{ 61 \newbox\notesbox 62 \setbox\notesbox=\vbox{ 63 \hsize=\paperwidth 64 \vskip-1in\hskip-1in\vbox{ 65 \vskip1cm 66 Notes\vskip1cm 67 \hrule width\paperwidth\vskip1cm 68 \hrule width\paperwidth\vskip1cm 69 \hrule width\paperwidth\vskip1cm 70 \hrule width\paperwidth\vskip1cm 71 \hrule width\paperwidth\vskip1cm 72 \hrule width\paperwidth\vskip1cm 73 \hrule width\paperwidth\vskip1cm 74 \hrule width\paperwidth\vskip1cm 75 \hrule width\paperwidth\vskip1cm 76 \hrule width\paperwidth\vskip1cm 77 \hrule width\paperwidth\vskip1cm 78 \hrule width\paperwidth} 79 } 80 \pgfpagesshipoutlogicalpage{2}\copy\notesbox 81 82 83 } 84 } 85 86 %% ---------------------------------------------------- MODE 1_to_1-ls 87 \pgfpagesdeclarelayout{1 on 1 without notes landscape} { 88 \edef\pgfpageoptionheight{\the\paperwidth} 89 \edef\pgfpageoptionwidth{\the\paperheight} 90 \edef\pgfpageoptionborder{0pt} 91 } 92 { 93 \setkeys{pgfpagesuselayoutoption}{landscape} 94 \pgfpagesphysicalpageoptions 95 {% 96 logical pages=1,% 97 physical height=\pgfpageoptionheight,% 98 physical width=\pgfpageoptionwidth,% 99 last logical shipout=1% 100 } 101 \pgfpageslogicalpageoptions{1} 102 {% 103 scale=1, 104 center=\pgfpoint{.5\pgfphysicalwidth}{.65\pgfphysicalheight}% 105 }% 106 107 } 108 109 %% ---------------------------------------------------- MODE 2_to_1-ls 110 \pgfpagesdeclarelayout{2 on 1 without notes landscape} { 111 \edef\pgfpageoptionheight{\the\paperheight} 112 \edef\pgfpageoptionwidth{\the\paperwidth} 113 \edef\pgfpageoptionborder{0pt} 114 } 115 { 116 \setkeys{pgfpagesuselayoutoption}{landscape} 117 \pgfpagesphysicalpageoptions 118 {% 119 logical pages=2,% 120 physical height=\pgfpageoptionheight,% 121 physical width=\pgfpageoptionwidth,% 122 % last logical shipout=3% 123 last logical shipout=2% 124 } 125 126 \pgfpageslogicalpageoptions{1} 127 {% 128 scale=1, 129 center=\pgfpoint{.25\pgfphysicalwidth}{.75\pgfphysicalheight}% 130 }% 131 \pgfpageslogicalpageoptions{2} 132 {% 133 scale=1, 134 center=\pgfpoint{.75\pgfphysicalwidth}{.75\pgfphysicalheight}% 135 }% 136 } 137 138 %% ---------------------------------------------------- MODE 1_to_1-ls 139 \pgfpagesdeclarelayout{1 on 1 without notes} { 140 \edef\pgfpageoptionheight{\the\paperwidth} 141 \edef\pgfpageoptionwidth{\the\paperheight} 142 \edef\pgfpageoptionborder{3pt} 143 } 144 { 145 \pgfpagesphysicalpageoptions 146 {% 147 logical pages=1,% 148 physical height=\pgfpageoptionheight,% 149 physical width=\pgfpageoptionwidth,% 150 last logical shipout=1% 151 } 152 \pgfpageslogicalpageoptions{1} 153 {% 154 scale=1.5, 155 center=\pgfpoint{.5\pgfphysicalwidth}{.65\pgfphysicalheight}% 156 }% 157 158 } 159 160 %% ---------------------------------------------------- MODE 4_to_1-notes 161 \pgfpagesdeclarelayout{4 on 1 with notes} { 162 \edef\pgfpageoptionheight{\the\paperheight} 163 \edef\pgfpageoptionwidth{\the\paperwidth} 164 \edef\pgfpageoptionborder{0pt} 165 } 166 { 167 \pgfpagesphysicalpageoptions 168 {% 169 logical pages=8,% 170 physical height=\pgfpageoptionheight,% 171 physical width=\pgfpageoptionwidth,% 172 % last logical shipout=3% 173 last logical shipout=4% 174 } 175 176 \pgfpageslogicalpageoptions{1} 177 {% 178 scale=.70, 179 center=\pgfpoint{.25\pgfphysicalwidth}{.875\pgfphysicalheight}% 180 }% 181 \pgfpageslogicalpageoptions{2} 182 {% 183 scale=.70, 184 center=\pgfpoint{.25\pgfphysicalwidth}{.625\pgfphysicalheight}% 185 }% 186 187 \pgfpageslogicalpageoptions{3} 188 {% 189 scale=.70, 190 center=\pgfpoint{.25\pgfphysicalwidth}{.375\pgfphysicalheight}% 191 }% 192 193 \pgfpageslogicalpageoptions{4} 194 {% 195 scale=.70, 196 center=\pgfpoint{.25\pgfphysicalwidth}{.125\pgfphysicalheight}% 197 }% 198 \pgfpageslogicalpageoptions{5} 199 {% 200 border shrink=\pgfpageoptionborder,% 201 resized width=.5\pgfphysicalwidth,% 202 resized height=.3333\pgfphysicalheight,% 203 center=\pgfpoint{.75\pgfphysicalwidth}{.875\pgfphysicalheight},% 204 copy from=5 205 }% 206 \pgfpageslogicalpageoptions{6} 207 {% 208 border shrink=\pgfpageoptionborder,% 209 resized width=.5\pgfphysicalwidth,% 210 resized height=.3333\pgfphysicalheight,% 211 center=\pgfpoint{.75\pgfphysicalwidth}{.625\pgfphysicalheight},% 212 copy from=6 213 }% 214 \pgfpageslogicalpageoptions{7} 215 {% 216 border shrink=\pgfpageoptionborder,% 217 resized width=.5\pgfphysicalwidth,% 218 resized height=.3333\pgfphysicalheight,% 219 center=\pgfpoint{.75\pgfphysicalwidth}{.375\pgfphysicalheight},% 220 copy from=7 221 }% 222 \pgfpageslogicalpageoptions{8} 223 {% 224 border shrink=\pgfpageoptionborder,% 225 resized width=.5\pgfphysicalwidth,% 226 resized height=.3333\pgfphysicalheight,% 227 center=\pgfpoint{.75\pgfphysicalwidth}{.125\pgfphysicalheight},% 228 copy from=8 229 }% 230 \AtBeginDocument{ 231 \newbox\notesbox 232 \setbox\notesbox=\vbox{ 233 \hsize=\paperwidth 234 \vskip-1in\hskip-1in\vbox{ 235 \vskip1cm 236 Notes\vskip1cm 237 \hrule width\paperwidth\vskip1cm 238 \hrule width\paperwidth\vskip1cm 239 \hrule width\paperwidth\vskip1cm 240 \hrule width\paperwidth\vskip1cm 241 \hrule width\paperwidth\vskip1cm 242 \hrule width\paperwidth\vskip1cm 243 \hrule width\paperwidth} 244 } 245 \pgfpagesshipoutlogicalpage{5}\copy\notesbox 246 \pgfpagesshipoutlogicalpage{6}\copy\notesbox 247 \pgfpagesshipoutlogicalpage{7}\copy\notesbox 248 \pgfpagesshipoutlogicalpage{8}\copy\notesbox 249 } 250 } 251 252 %% ---------------------------------------------------- MODE 2_to_1-notes 253 \pgfpagesdeclarelayout{2 on 1 with notes} { 254 \edef\pgfpageoptionheight{\the\paperheight} 255 \edef\pgfpageoptionwidth{\the\paperwidth} 256 \edef\pgfpageoptionborder{0pt} 257 } 258 { 259 \pgfpagesphysicalpageoptions 260 {% 261 logical pages=4,% 262 physical height=\pgfpageoptionheight,% 263 physical width=\pgfpageoptionwidth,% 264 % last logical shipout=3% 265 last logical shipout=2% 266 } 267 268 \pgfpageslogicalpageoptions{1} 269 {% 270 scale=.70, 271 center=\pgfpoint{.25\pgfphysicalwidth}{.67\pgfphysicalheight}% 272 }% 273 \pgfpageslogicalpageoptions{2} 274 {% 275 scale=.70, 276 center=\pgfpoint{.25\pgfphysicalwidth}{.33\pgfphysicalheight}% 277 }% 278 279 280 \pgfpageslogicalpageoptions{3} 281 {% 282 border shrink=\pgfpageoptionborder,% 283 resized width=.5\pgfphysicalwidth,% 284 resized height=.5\pgfphysicalheight,% 285 center=\pgfpoint{.75\pgfphysicalwidth}{.67\pgfphysicalheight},% 286 copy from=3 287 }% 288 \pgfpageslogicalpageoptions{4} 289 {% 290 border shrink=\pgfpageoptionborder,% 291 resized width=.5\pgfphysicalwidth,% 292 resized height=.5\pgfphysicalheight,% 293 center=\pgfpoint{.75\pgfphysicalwidth}{.33\pgfphysicalheight},% 294 copy from=4 295 }% 296 297 \AtBeginDocument{ 298 \newbox\notesbox 299 \setbox\notesbox=\vbox{ 300 \hsize=\paperwidth 301 \vskip-1in\hskip-1in\vbox{ 302 \vskip1cm 303 Notes\vskip1cm 304 \hrule width\paperwidth\vskip1cm 305 \hrule width\paperwidth\vskip1cm 306 \hrule width\paperwidth\vskip1cm 307 \hrule width\paperwidth\vskip1cm 308 \hrule width\paperwidth\vskip1cm 309 \hrule width\paperwidth\vskip1cm 310 \hrule width\paperwidth} 311 } 312 \pgfpagesshipoutlogicalpage{3}\copy\notesbox 313 \pgfpagesshipoutlogicalpage{4}\copy\notesbox 314 } 315 } 316 317 %% ---------------------------------------------------- MODE 3_to_1-notes 318 \pgfpagesdeclarelayout{3 on 1 with notes} { 319 \edef\pgfpageoptionheight{\the\paperheight} 320 \edef\pgfpageoptionwidth{\the\paperwidth} 321 \edef\pgfpageoptionborder{0pt} 322 } 323 { 324 \pgfpagesphysicalpageoptions 325 {% 326 logical pages=6,% 327 physical height=\pgfpageoptionheight,% 328 physical width=\pgfpageoptionwidth,% 329 % last logical shipout=3% 330 last logical shipout=3% 331 } 332 333 \pgfpageslogicalpageoptions{1} 334 {% 335 scale=.70, 336 center=\pgfpoint{.25\pgfphysicalwidth}{.82\pgfphysicalheight}% 337 }% 338 \pgfpageslogicalpageoptions{2} 339 {% 340 scale=.70, 341 center=\pgfpoint{.25\pgfphysicalwidth}{.50\pgfphysicalheight}% 342 }% 343 \pgfpageslogicalpageoptions{3} 344 {% 345 scale=.70, 346 center=\pgfpoint{.25\pgfphysicalwidth}{.18\pgfphysicalheight}% 347 }% 348 349 350 \pgfpageslogicalpageoptions{4} 351 {% 352 border shrink=\pgfpageoptionborder,% 353 resized width=.5\pgfphysicalwidth,% 354 resized height=.5\pgfphysicalheight,% 355 center=\pgfpoint{.75\pgfphysicalwidth}{.82\pgfphysicalheight},% 356 copy from=4 357 }% 358 \pgfpageslogicalpageoptions{5} 359 {% 360 border shrink=\pgfpageoptionborder,% 361 resized width=.5\pgfphysicalwidth,% 362 resized height=.5\pgfphysicalheight,% 363 center=\pgfpoint{.75\pgfphysicalwidth}{.50\pgfphysicalheight},% 364 copy from=5 365 }% 366 \pgfpageslogicalpageoptions{6} 367 {% 368 border shrink=\pgfpageoptionborder,% 369 resized width=.5\pgfphysicalwidth,% 370 resized height=.5\pgfphysicalheight,% 371 center=\pgfpoint{.75\pgfphysicalwidth}{.18\pgfphysicalheight},% 372 copy from=6 373 }% 374 375 \AtBeginDocument{ 376 \newbox\notesbox 377 \setbox\notesbox=\vbox{ 378 \hsize=\paperwidth 379 \vskip-1in\hskip-1in\vbox{ 380 \vskip1cm 381 Notes\vskip1cm 382 \hrule width\paperwidth\vskip1cm 383 \hrule width\paperwidth\vskip1cm 384 \hrule width\paperwidth\vskip1cm 385 \hrule width\paperwidth\vskip1cm 386 \hrule width\paperwidth\vskip1cm 387 \hrule width\paperwidth\vskip1cm 388 \hrule width\paperwidth} 389 } 390 \pgfpagesshipoutlogicalpage{4}\copy\notesbox 391 \pgfpagesshipoutlogicalpage{5}\copy\notesbox 392 \pgfpagesshipoutlogicalpage{6}\copy\notesbox 393 } 394 } 395 %% ---------------------------------------------------- MODE 2_to_1-notes_ls 396 \pgfpagesdeclarelayout{2 on 1 with notes landscape} { 397 \edef\pgfpageoptionheight{\the\paperheight} 398 \edef\pgfpageoptionwidth{\the\paperwidth} 399 \edef\pgfpageoptionborder{0pt} 400 } 401 { 402 \setkeys{pgfpagesuselayoutoption}{landscape} 403 \pgfpagesphysicalpageoptions 404 {% 405 logical pages=4,% 406 physical height=\pgfpageoptionheight,% 407 physical width=\pgfpageoptionwidth,% 408 % last logical shipout=3% 409 last logical shipout=2% 410 } 411 412 \pgfpageslogicalpageoptions{1} 413 {% 414 scale=1, 415 center=\pgfpoint{.3\pgfphysicalwidth}{.75\pgfphysicalheight}% 416 }% 417 \pgfpageslogicalpageoptions{2} 418 {% 419 scale=1, 420 center=\pgfpoint{.3\pgfphysicalwidth}{.25\pgfphysicalheight}% 421 }% 422 423 424 425 \pgfpageslogicalpageoptions{3} 426 {% 427 border shrink=\pgfpageoptionborder,% 428 resized width=.7\pgfphysicalwidth,% 429 resized height=.4\pgfphysicalheight,% 430 center=\pgfpoint{.75\pgfphysicalwidth}{.3\pgfphysicalheight},% 431 copy from=3 432 }% 433 434 \pgfpageslogicalpageoptions{4} 435 {% 436 border shrink=\pgfpageoptionborder,% 437 resized width=.7\pgfphysicalwidth,% 438 resized height=.4\pgfphysicalheight,% 439 center=\pgfpoint{.75\pgfphysicalwidth}{.8\pgfphysicalheight},% 440 copy from=4 441 }% 442 443 \AtBeginDocument{ 444 \newbox\notesbox 445 \setbox\notesbox=\vbox{ 446 \hsize=\paperwidth 447 \vskip-1in\hskip-1in\vbox{ 448 \vskip1cm 449 Notes\vskip1cm 450 \hrule width\paperwidth\vskip1cm 451 \hrule width\paperwidth\vskip1cm 452 \hrule width\paperwidth\vskip1cm 453 \hrule width\paperwidth\vskip1cm 454 \hrule width\paperwidth\vskip1cm 455 \hrule width\paperwidth\vskip1cm 456 %\hrule width\paperwidth\vskip1cm 457 %\hrule width\paperwidth\vskip1cm 458 \hrule width\paperwidth\vskip1cm 459 \hrule width\paperwidth\vskip1cm 460 \hrule width\paperwidth\vskip1cm 461 \hrule width\paperwidth} 462 } 463 \pgfpagesshipoutlogicalpage{3}\copy\notesbox 464 \pgfpagesshipoutlogicalpage{4}\copy\notesbox 465 466 467 } 468 } 469 470 %% ---------------------------------------------------- MODE 1_to_1-notes 471 \pgfpagesdeclarelayout{1 on 1 with notes} { 472 \edef\pgfpageoptionheight{\the\paperwidth} 473 \edef\pgfpageoptionwidth{\the\paperheight} 474 \edef\pgfpageoptionborder{0pt} 475 } 476 { 477 \setkeys{pgfpagesuselayoutoption}{portrait} 478 \pgfpagesphysicalpageoptions 479 {% 480 logical pages=2,% 481 physical height=\pgfpageoptionheight,% 482 physical width=\pgfpageoptionwidth,% 483 % last logical shipout=3% 484 last logical shipout=1% 485 } 486 487 \pgfpageslogicalpageoptions{1} 488 {% 489 scale=1.5, 490 center=\pgfpoint{.5\pgfphysicalwidth}{.73\pgfphysicalheight}% 491 }% 492 493 \pgfpageslogicalpageoptions{2} 494 {% 495 border shrink=\pgfpageoptionborder,% 496 resized width=\pgfphysicalwidth,% 497 resized height=\pgfphysicalheight,% 498 center=\pgfpoint{.5\pgfphysicalwidth}{.25\pgfphysicalheight},% 499 copy from=2 500 }% 501 502 \AtBeginDocument{ 503 \newbox\notesbox 504 \setbox\notesbox=\vbox{ 505 \hsize=.85\paperwidth 506 \vskip-1in\hskip-1in\vbox{ 507 \vskip1cm 508 Notes\vskip5mm 509 \hrule width\paperwidth\vskip5mm 510 \hrule width\paperwidth\vskip5mm 511 \hrule width\paperwidth\vskip5mm 512 \hrule width\paperwidth\vskip5mm 513 \hrule width\paperwidth\vskip5mm 514 \hrule width\paperwidth\vskip5mm 515 \hrule width\paperwidth\vskip5mm 516 \hrule width\paperwidth\vskip5mm 517 \hrule width\paperwidth\vskip5mm 518 \hrule width\paperwidth\vskip5mm 519 \hrule width\paperwidth\vskip5mm 520 \hrule width\paperwidth\vskip5mm 521 \hrule width\paperwidth\vskip5mm 522 \hrule width\paperwidth\vskip5mm 523 \hrule width\paperwidth} 524 } 525 \pgfpagesshipoutlogicalpage{2}\copy\notesbox 526 527 528 } 529 } 530 531 %% ---------------------------------------------------- MODE 1_to_1 532 \pgfpagesdeclarelayout{3 on 1 with diamonds} { 533 \edef\pgfpageoptionheight{\the\paperheight} 534 \edef\pgfpageoptionwidth{\the\paperwidth} 535 \edef\pgfpageoptionborder{0pt} 536 } 537 { 538 \pgfpagesphysicalpageoptions 539 {% 540 logical pages=6,% 541 physical height=\pgfpageoptionheight,% 542 physical width=\pgfpageoptionwidth,% 543 % last logical shipout=3% 544 last logical shipout=3% 545 } 546 547 \pgfpageslogicalpageoptions{1} 548 {% 549 scale=.70, 550 center=\pgfpoint{.25\pgfphysicalwidth}{.82\pgfphysicalheight}% 551 }% 552 \pgfpageslogicalpageoptions{2} 553 {% 554 scale=.70, 555 center=\pgfpoint{.25\pgfphysicalwidth}{.50\pgfphysicalheight}% 556 }% 557 \pgfpageslogicalpageoptions{3} 558 {% 559 scale=.70, 560 center=\pgfpoint{.25\pgfphysicalwidth}{.18\pgfphysicalheight}% 561 }% 562 563 564 \pgfpageslogicalpageoptions{4} 565 {% 566 border shrink=\pgfpageoptionborder,% 567 resized width=.5\pgfphysicalwidth,% 568 resized height=.5\pgfphysicalheight,% 569 center=\pgfpoint{.75\pgfphysicalwidth}{.82\pgfphysicalheight},% 570 copy from=4 571 }% 572 \pgfpageslogicalpageoptions{5} 573 {% 574 border shrink=\pgfpageoptionborder,% 575 resized width=.5\pgfphysicalwidth,% 576 resized height=.5\pgfphysicalheight,% 577 center=\pgfpoint{.75\pgfphysicalwidth}{.50\pgfphysicalheight},% 578 copy from=5 579 }% 580 \pgfpageslogicalpageoptions{6} 581 {% 582 border shrink=\pgfpageoptionborder,% 583 resized width=.5\pgfphysicalwidth,% 584 resized height=.5\pgfphysicalheight,% 585 center=\pgfpoint{.75\pgfphysicalwidth}{.18\pgfphysicalheight},% 586 copy from=6 587 }% 588 \AtBeginDocument{ 589 \newbox\notesbox 590 \setbox\notesbox=\vbox{ 591 \hsize=\paperwidth 592 \vskip-1in\hskip-1in\vbox{ 593 \vskip1cm 594 Notes\vskip3mm 595 \begin{tikzpicture} 596 \draw[grid internal] (0,0) grid (125mm,75mm); 597 \end{tikzpicture} 598 } 599 } 600 \pgfpagesshipoutlogicalpage{4}\copy\notesbox 601 \pgfpagesshipoutlogicalpage{5}\copy\notesbox 602 \pgfpagesshipoutlogicalpage{6}\copy\notesbox 603 } 604 }