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 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991
|
%% Copyright Roberto Di Cosmo, Jun Furuse, Didier Remy, and Pierre Weis
%% All rights reserved.
%% $Id$
\documentclass[12pt]{article}
% You need graphics package
\usepackage{../doc/manual}
\usepackage[dvipsnames]{xcolor}
\usepackage{xwindows-colors}
\usepackage{graphicx}
\usepackage{advi-graphicx}
\usepackage{alltt}
\usepackage{pst-all}
%% advi must occur after packages using PStricks macros
%% (it redefines some of them)
\usepackage{advi}
\usepackage{advi-annot}
\usepackage{hyperref}
\def\mathsym#1{\ifmmode{#1}\else$#1$\fi}
\pagestyle{empty}
\definecolor{red}{rgb}{1.0,0.0,0.0}
\definecolor{green}{rgb}{0.0,1.0,0.0}
\definecolor{blue}{rgb}{0.0,0.0,1.0}
\definecolor{lightblue}{rgb}{0.6784,0.8471,0.9020}
\definecolor{c1}{rgb}{1.0,0.0,0.0}
\definecolor{c2}{rgb}{0.5,0.4,0.0}
\definecolor{c3}{rgb}{0.0,0.8,0.0}
\definecolor{c4}{rgb}{0.0,0.4,0.5}
\definecolor{c5}{rgb}{0.0,0.0,1.0}
\definecolor{c6}{rgb}{0.5,0.0,0.5}
\def\smallpause{0.3}
\def\keymenu#1{\textcolor{red}{\underline{#1}}}
\def\advifooter{\vbox to 0em{\vbox to \vsize {\vfill
Press: \keymenu{n}ext page \keymenu{p}revious page
\keymenu{\textvisiblespace} next pause%
\hfill{\adviembed[sticky = advianim, width = 1.56cm, height = 1.824cm]{animate -geometry @g! -window @p advilogo.anim.gif}}
} \vss}}
\def\adviheader{\noindent
{\bf\Large \ActiveDVI}\\
\includegraphics[width = \textwidth]{bar.eps}}
\let \Newpage \newpage
\def \newpage {\Newpage \advifooter\adviheader}
\def\adviemptyfooter{\vbox to 0em{\vbox to \vsize {\vfill
~~\vss\advikillembed{advianim}}}}
\def\lastpage{\Newpage\adviemptyfooter\adviheader}
% \setlength\textwidth{660\p@}
% \setlength\textheight{460\p@}
\begin{document}
% We use the default mode of advi that considers white as transparent
% as if \epstransparent has been evaluated.
\newpage
\subsection* {Modifying the page backround}
You can modify the background of your presentations:
\begin{itemize}
\item define the background color
\item define a function to be run on the background (this is
limited to a few color gradients, but it can be expanded to more
sophisticated effects)
\item add a background image (which can be alpha-blended on top of
the background color).
\end{itemize}
If these options are used \emph{together}, they are applied in this
order: first solid background color, then gradient function, then
image drawing.\\
This file is a simple showcase for the current background effects.
\newpage
\tableofcontents
\newpage
\section{Setting the background color}
This page has a yellow background because we included
in the {\LaTeX} source of the page the following command:
\begin{quote}
\begin{verbatim}
\advibg{color = yellow}
\end{verbatim}
\end{quote}
\advibg{color = yellow}
\newpage
{\color{Goldenrod}
\section{Setting the background color: gradients}
By choosing one of the \verb|hgradient|, \verb|vgradient|,
\verb|d1gradient|, \verb|d2gradient|, \verb|cgradient|, or
\verb|circgradient| predefined functions, we convert the plain
background color into a color gradient from the chosen color to white
(by default).
In fact, the gradient color bounds can be precised with fields:
\begin{itemize}
\item \verb"colorstart" to specify the starting color of the gradient,
\item \verb"colorstop" to specify the ending color of the gradient.
\end{itemize}
When left unspecified, those colors respectively default to
\verb"white" and the background color.
You specify the area where the gradient is drawn by giving the
coordinates of the rectangle that defines the area:
\begin{itemize}
\item \verb"xstart" and \verb"ystart" define the lower left point of the area,
\item \verb"width" and \verb"height" specify the width and height of
the area.
\end{itemize}
When left unspecified, the gradient's area defaults to the entire page.
Area dimension specifications are floating point numbers in the range
\verb|[0 .. 1]|. Each number gives the ratio of the specified
dimension with respect to the corresponding page dimension (hence $0$
means a null dimension and $1$ means the entire actual page relevant
dimension).
For centered or circular gradient, the fields \verb"xcenter" and
\verb"ycenter" define the coordinates of the center point of the
gradient into the gradient area (the \verb"xcenter" and \verb"ycenter"
specifications use the same convention as in the preceding paragraph:
a ratio of a given dimension, in this case a ratio of the gradient
area's width and height respectively).
When left unspecified, the gradient's center defaults to the center of
its area.
\vfill
The command to obtain this background is:
\advibg{color = [named]{CadetBlue}}
\begin{quote}
\begin{verbatim}
\advibg{color = [named]{CadetBlue}}
\end{verbatim}
\end{quote}
\vfill
}
\newpage
\vfill
\subsection{Horizontal gradient}
\vfill
The command to obtain this background is:
\begin{quote}
\begin{verbatim}
\advibg{color = yellow, gradient = "hgradient"}
\end{verbatim}
\end{quote}
\advibg{color = yellow, gradient = "hgradient"}
\vfill
\newpage
\vfill
\subsection{Vertical gradient}
\vfill
The command to obtain this background is:
\advibg{color = blue, gradient = "vgradient"}
\begin{quote}
\begin{verbatim}
\advibg{color = blue, gradient = "vgradient"}
\end{verbatim}
\end{quote}
\vfill
\newpage
\vfill
\subsection{First diagonal gradient}
\vfill
The command to obtain this background is:
\advibg{color = green, gradient = "d1gradient"}
\begin{quote}
\begin{verbatim}
\advibg{color = green, gradient = "d1gradient"}
\end{verbatim}
\end{quote}
\vfill
\newpage
\vfill
\subsection{Second diagonal gradient}
\vfill
The command to obtain this background is:
\advibg{color = green, gradient = "d2gradient"}
\begin{quote}
\begin{verbatim}
\advibg{color = green, gradient = "d2gradient"}
\end{verbatim}
\end{quote}
\vfill
\newpage
\vfill
\subsection{Centered gradient}
\vfill
The command to obtain this background is:
\advibg{color = green, gradient = "cgradient"}
\begin{quote}
\begin{verbatim}
\advibg{color = green, gradient = "cgradient"}
\end{verbatim}
\end{quote}
\vfill
\newpage
\vfill
\subsection{Circular gradient}
\vfill
The command to obtain this background is:
\advibg{color = green, gradient = "circgradient"}
\begin{quote}
\begin{verbatim}
\advibg{color = green, gradient = "circgradient"}
\end{verbatim}
\end{quote}
\vfill
\newpage
\vfill
\subsection{Circular gradient with starting color}
\vfill
The command to obtain this background is:
\advibg{color = green, gradient = "circgradient",
colorstart = red}
\begin{quote}
\begin{verbatim}
\advibg{color = green, gradient = "circgradient",
colorstart = "red"}
\end{verbatim}
\end{quote}
\vfill
\newpage
\vfill
\subsection{Centered gradient with starting color}
\vfill
The command to obtain this background is:
\advibg{color = green, gradient = "cgradient",
colorstart = blue}
\begin{quote}
\begin{verbatim}
\advibg{color = green, gradient = "cgradient",
colorstart = "blue"}
\end{verbatim}
\end{quote}
\vfill
\newpage
\vfill
\subsection{Small centered gradient with starting color}
\vfill
The command to obtain this background is:
\advibg{color = green, gradient = "cgradient",
colorstart = blue,
colorstop = red,
xcenter = 0.25,
ycenter = 0.5,
xstart = 0.5,
ystart = 0.5,
width = 0.1,
height = 0.5}
\begin{quote}
\begin{verbatim}
\advibg{color = green, gradient = "cgradient",
colorstart = blue,
colorstop = red,
xcenter = 0.25,
ycenter = 0.5,
xstart = 0.5,
ystart = 0.5,
width = 0.1,
height = 0.5}
\end{verbatim}
\end{quote}
\vfill
\newpage
\vfill
\subsection{Circular gradient with red starting color}
\vfill
The command to obtain this background is:
\advibg{color = [named]{MistyRose},
gradient = "circgradient",
colorstart = red,
colorstop = [named]{MistyRose},
width = 0.2,
height = 0.15,
xstart = 0.75,
ystart = 0.8,
xcenter = 0.5,
ycenter = 0.5}
\begin{quote}
\begin{verbatim}
\advibg{color = [named]{MistyRose}, gradient = "circgradient",
colorstart = red,
colorstop = [named]{MistyRose},
width = 0.2,
height = 0.15,
xstart = 0.75,
ystart = 0.8,
xcenter = 0.1,
ycenter = 0.5}
\end{verbatim}
\end{quote}
\vfill
\newpage
\section{Setting the background image}
\advibg{image = "world.jpg"}
We can use an image as background.
This page's background is made of \verb|world.jpg| which
is in the test directory. The source of this page contains
\begin{quote}
\begin{verbatim}
\advibg{image = "world.jpg"}
\end{verbatim}
\end{quote}
\parindent 0pt Note: the image formats supported depend on the variable
\begin{quote}
CAMLIMAGESLIBS
\end{quote}
in your Advi's Makefile.config .
\newpage
\section{Positioning the background image}
As documented in the manual, the {\LaTeX} macro for backgrounds has a
wealth of options.\\
For example, there are several different ways to adapt an image to the
size of the background to fill, and they are declared with the
\dockey{fit}{} parameter to \verb|\advibg|:
\dockey[auto]{fit}{fit style}
\begin{quote}
Fit the background image according to \docid{style}, which may only be
{\tt auto} or one of the following keywords:
\begin{center}
\tt auto \hfill {\rm or} \hfill
\begin{tabular}{l@{\qquad}c@{\qquad}r}
topleft& top& topright\\
left& center& right \\
bottomleft& bottom & bottomright\\
\end{tabular}
\end{center}
The {\tt auto} fit mode means scale the image as desired in both directions
so that it fits the page. The other styles only allows the same scaling
factor in both directions:
\begin {itemize}
\item Corner-styles mean adjust the image in the corner and scale so
that all the page is covered.
\item {\tt center} means scale the image so that all the page is
covered and center it on the page.
\item Segment-styles mean adjust the image and the page on the segment
(in which case, the image may not totally cover the page on the
opposite side).
\end {itemize}
\end{quote}
\framebox{Here come several slides meant to show the effect of these settings.}
\newpage
\vfill
{\Huge Automatic fit (default)}
\vfill
This is obtained by not setting the \dockey{fit}{} parameter:\\
\advibg{image = "world.jpg"}
\begin{center}
\begin{verbatim}
\advibg{image = "world.jpg"}
\end{verbatim}
\end{center}
\vfill
Resize the display window to see how this positioning option works.
\vfill
\newpage
\newcommand{\ttadvibg}{$\backslash$advibg}
\newcommand{\docfit}[1]{\vfill%
The command to obtain this background is:\\%
\begin{center}
{#1}
\end{center}
\vfill%
Resize the display window to see how this positioning option works.%
\vfill%
}
\vfill
{\Huge Top}
\advibg{image = "world.jpg", fit = top}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = top\}}
\newpage
\vfill
{\Huge Bottom}
\advibg{image = "world.jpg", fit = bottom}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = bottom\}}
\newpage
\vfill
{\Huge Left}
\advibg{image = "world.jpg", fit = left}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = left\}}
\newpage
\vfill
{\Huge Right}
\advibg{image = "world.jpg", fit = right}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = right\}}
\newpage
\vfill
{\Huge Center}
\advibg{image = "world.jpg", fit = center}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = center\}}
\newpage
\vfill
{\Huge TopLeft}
\advibg{image = "world.jpg", fit = topleft}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = topleft\}}
\newpage
\vfill
{\Huge TopRight}
\advibg{image = "world.jpg", fit = topright}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = topright\}}
\newpage
\vfill
{\Huge BottomLeft}
\advibg{image = "world.jpg", fit = bottomleft}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = bottomleft\}}
\newpage
\vfill
{\Huge BottomRight}
\advibg{image = "world.jpg", fit = bottomright}
\docfit{\tt \ttadvibg\{image = "world.jpg", fit = bottomright\}}
\newpage
\section{Alpha factor and blending}
\dockey[none]{alpha}{float}
\begin{quote}
Set the alpha factor for the background image to \docid{float}
(\doctt{none} means unset).
\end{quote}
\dockey[none]{blend}{blend mode}
\begin{quote}
Set the blend mode to \docid{blend mode}, which should be one of the
following: {\tt normal}, {\tt multiply}, {\tt screen},
{\tt overlay}, {\tt dodge}, {\tt burn}, {\tt darken},
{\tt lighten}, {\tt difference}, {\tt exclusion}, and {\tt none}
(\doctt{none} means unset).
\end{quote}
\framebox{Here are a few example slides}
\newpage
\bigskip
\def\exampleimage{
{\includegraphics[width = \textwidth]{bar.eps}}
{\includegraphics[width = 0.2\textwidth]{dojojismall.jpg}}
}
{\large Normal mode}
{\setblend{normal}{\exampleimage}}
{\large Multiply mode}
{\setblend{multiply}{\exampleimage}}
{\large Screen mode}
{\setblend{screen}{\exampleimage}}
\advibg{color = lightgray}
\newpage
\bigskip
{\large Overlay mode}
{\setblend{overlay}{\exampleimage}}
{\large Dodge mode}
{\setblend{dodge}{\exampleimage}}
{\large Burn mode}
{\setblend{burn}{\exampleimage}}
\advibg{color = lightgray}
\newpage
\bigskip
{\large Darken mode}
{\setblend{darken}{\exampleimage}}
{\large Lighten mode}
{\setblend{lighten}{\exampleimage}}
\advibg{color = lightgray}
\newpage
\bigskip
{\large Difference mode}
{\setblend{difference}{\exampleimage}}
{\large Exclusion mode}
{\setblend{exclusion}{\exampleimage}}
\advibg{color = lightgray}
\newpage
\vfill
{\Huge Alpha channel}
\vfill
In this page, the background is filled with an image for which we
specify an alpha value of less than 1.\\
Notice that this effect is nice, but expensive to realize.
The command to obtain this background is:
\begin{center}
{\tt \char`\\advibg\{alpha = 0.25, image = "dojoji.gif"\}}
\end{center}
\advibg{alpha = 0.25, image = "dojoji.gif"}
\vfill
\newpage
\vfill
{\Huge Blending with a color background}
\vfill
In this page, the background is first set to light blue, then blended
in {\tt difference} mode with the image which is scaled to fit the
available area.\\
The command to obtain this background is:
\advibg{color = lightblue, alpha = 0.1,
blend = difference,
image = "dojoji.gif"}
\begin{center}
{\tt \char`\\advibg\{color = lightblue, alpha = 0.1,
blend = difference,
image = "dojoji.gif"\}}
\end{center}
\vfill
\Newpage
\advibg{color = black}
{\color{white}
\advifooter\adviheader
\section{Reverse video effect}
If you want a reverse video effect, you just have to set the background
of the page to black and the text color to white, as follows:
\begin{itemize}
\item set the background to black, anywhere in the text of the slide with
\begin{quote}
\begin{verbatim}
\advibg{color = black}
\end{verbatim}
\end{quote}
\item set the text color of the entire page to white, by putting the
text of the page between in the scope of a \verb"\color" macro call:
\begin{quote}
\begin{verbatim}
{\color{white}
Text of the page
}
\end{verbatim}
\end{quote}
\end{itemize}
Write \verb"\advibg{none}" at the beginning of the next slide, if you
want to revert to normal background.
}
\newpage
\advibg{none}
\section{Backgrounds Gallery}
\vfill
{\Huge Solid color background}
\vfill
The command to obtain this background is:
\advibg{color = cyan}
\begin{center}
\begin{verbatim}
\advibg{color = cyan}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Solid color\\ with vertical gradient}
\vfill
The command to obtain this background is:
\advibg{color = cyan, gradient = "vgradient"}
\begin{center}
\begin{verbatim}
\advibg{color = cyan, gradient = "vgradient"}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Vertical gradient\\ with blended image ($\alpha = 0.1$)}
\vfill
The command to obtain this background is:
\advibg{alpha = "0.1", image = "dojoji.gif",
color = cyan, gradient = "vgradient"}
\begin{center}
\begin{verbatim}
\advibg{alpha = "0.1", image = "dojoji.gif",
color = cyan, gradient = "vgradient"}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Vertical gradient\\ with blended image ($\alpha = 0.2$)}
\vfill
The command to obtain this background is:
\advibg{alpha = "0.2", image = "dojoji.gif",
color = cyan, gradient = "vgradient"}
\begin{center}
\begin{verbatim}
\advibg{alpha = "0.2", image = "dojoji.gif",
color = cyan, gradient = "vgradient"}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Vertical gradient\\ with blended image ($\alpha = 0.4$)}
\vfill
The command to obtain this background is:
\advibg{alpha = "0.4", image = "dojoji.gif",
color = cyan, gradient = "vgradient"}
\begin{center}
\begin{verbatim}
\advibg{alpha = "0.4", image = "dojoji.gif",
color = cyan, gradient = "vgradient"}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Vertical gradient\\ with blended image ($\alpha = 0.8$)}
\vfill
The command to obtain this background is:
\advibg{alpha = "0.8", image = "dojoji.gif",
color = cyan, gradient = "vgradient"}
\begin{center}
\begin{verbatim}
\advibg{alpha = "0.8", image = "dojoji.gif",
color = cyan, gradient = "vgradient"}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Red circular gradient\\ with blended image ($\alpha = 0.25$)}
\vfill
The command to obtain this background is:
\advibg{color = [named]{LemonChiffon},
gradient = circgradient,
colorstart = red,
image = "dojoji.gif", alpha = 0.25}
\begin{center}
\begin{verbatim}
\advibg{color = [named]{LemonChiffon},
gradient = circgradient,
colorstart = red,
image = "dojoji.gif", alpha = 0.25}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Horizontal red gradient\\ with blended image ($\alpha = 0.25$)}
\vfill
The command to obtain this background is:
\advibg{color = [named]{LemonChiffon},
gradient = hgradient,
colorstart = red,
xstart = 0, ystart = 0,
width = 0.14, height = 1.,
image = "dojoji.gif", alpha = 0.25}
\begin{center}
\begin{verbatim}
\advibg{color = [named]{LemonChiffon},
gradient = hgradient,
colorstart = red, xstart = 0, ystart = 0,
width = 0.14, height = 1.,
image = "dojoji.gif", alpha = 0.25}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Horizontal gradient\\ with solid white}
\vfill
The command to obtain this background is:
\advibg{color = white,
gradient = hgradient,
colorstart = blue, colorstop = green,
xstart = 0, ystart = 0,
width = 0.14, height = 1.}
\begin{center}
\begin{verbatim}
\advibg{color = white},
gradient = hgradient,
colorstart = blue, colorstop = green,
xstart = 0, ystart = 0,
width = 0.14, height = 1.}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Horizontal gradient\\ with LemonChiffon}
\vfill
The command to obtain this background is:
\advibg{color = [named]{LemonChiffon},
gradient = hgradient,
colorstart = blue, colorstop = green,
xstart = 0, ystart = 0,
width = 0.14, height = 1.}
\begin{center}
\begin{verbatim}
\advibg{color = [named]{LemonChiffon},
gradient = hgradient,
colorstart = blue, colorstop = green,
xstart = 0, ystart = 0,
width = 0.14, height = 1.}
\end{verbatim}
\end{center}
\vfill
\newpage
\vfill
{\Huge Horizontal gradient\\ with LemonChiffon\\
and blended image ($\alpha = 0.25$)}
\vfill
The command to obtain this background is:
\advibg{color = [named]{LemonChiffon},
gradient = hgradient,
colorstart = blue, colorstop = green,
xstart = 0, ystart = 0,
width = 0.14, height = 1.,
image = "dojoji.gif", alpha = 0.25}
\begin{center}
\begin{verbatim}
\advibg{color = [named]{LemonChiffon},
gradient = hgradient,
colorstart = blue, colorstop = green,
xstart = 0, ystart = 0,
width = 0.14, height = 1.,
image = "dojoji.gif", alpha = 0.25}
\end{verbatim}
\end{center}
\vfill
\newpage
\section{Future work}
\begin{itemize}
\item background preferences are ``asynchronous'', in the sense
that they can imply rendering modifications in a part of the page that
has already been displayed; this is why we first scan a page, looking
for background specials (example, a red background), and only after we
render it (setting the background to red before everything else). By
the way, this mechanism was already in place to handle PostScript
headers, that also appear asynchronously.
\item is it worthwhile to consider the possibility of making a
``synchronous'' variant? This would allow for example to change the
background color after a pause. But at what price ?
\item anybody willing to add support for color gradients?\\Done.
\item anybody willing to improve gradients so that we can have
images above a color gradient ?\\Done.
\item anybody willing to improve gradients so that we can define a
sub window where the color gradient takes place ?\\Done.
\item anybody willing to improve gradients to a more general
scheme that could be programmable ?
\end{itemize}
\vfill
The command to obtain this background is:
\advibg{color = cyan, image = "dojoji.gif",
alpha = 0.25}
\begin{center}
\begin{verbatim}
\advibg{color = cyan, image = "dojoji.gif",
alpha = 0.25}
\end{verbatim}
\end{center}
\vfill
\lastpage
~\vfill
\begin{center}
\includegraphics[width=0.5\textwidth]{../tex/advilogo.eps}\\
{\Large \bf That's all, folks!!}
\end{center}
\vfill
\end{document}
|