summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/aeb-tilebg/examples/tilebg_tst_auto.tex
blob: 0d94820e811af974c7fa6b91b4cecc1a166b6a10 (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
\documentclass{article}
\usepackage[tight,usetemplates]{web} % dvipsone, dvips, pdftex
\usepackage{aeb_tilebg}

\title{Creating Tiled Backgrounds}
\author{D. P. Story}
\subject{Test file for the AcroTeX eDucation Bundle}
\keywords{LaTeX, Web package, tiled backgrounds, Adobe Acrobat}
\university{Acro\negthinspace\TeX.Net}
\email{dpstory@acrotex.net}
\version{1.0}
\revisionLabel{Prepared:}


\graphicspath{{tile/}}

\setTileBgGraphic[scale=.25]{./bike_10}
% n_rows, n_columns, left,right,top, bottom
\autosetScreensizeWithMargins{7}{5}{.25in}{.25in}{24pt}{.25in}

\textBgColor{cornsilk}

\parindent0pt
\parskip\medskipamount

\begin{document}

\maketitle

\setTileBgGraphic[scale=.75]{./brewtile1}

This newest package is a simple application of established packages
\textsf{graphicx}, \textsf{multido} and \textsf{web}.

Download your favorite tiled background swatch from the Internet,
convert it to an \texttt{.eps} or a \texttt{.pdf} format (depending
if you use \textsf{distiller} or \textsf{pdftex}), place that image
in the same folder as your source document. Anywhere in your
document, use the command \verb!\setTileBgGraphic! to bring in your
tiled background using the \textsf{graphicx} package; for example,
\begin{verbatim}
\setTileBgGraphic[scale=.75]{brewtile1}
\end{verbatim}
The \textsf{multido} package places these images in the background,
starting from the upper-left corner (the lower left corner if the
\texttt{uselltiling} option is taken) going across and up
(respectively, going across and down), one row at a time. The web
package is used to manage the graphical template created.

\newpage

\setTileBgGraphic[scale=.5]{./math-bkgrd}

Inserting a second file will create a new tiled background, like so
\begin{verbatim}
\setTileBgGraphic[scale=.5]{./math-bkgrd}
\end{verbatim}

\end{document}