OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [doc/] [eventos/] [triptico_expotronica/] [dorso/] [ejemplo/] [ejemplo.tex] - Blame information for rev 288

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 288 maximiq
%%
2
%% This is file `leaflet-manual.tex',
3
%% generated with the docstrip utility.
4
%%
5
%% The original source files were:
6
%%
7
%% leaflet.dtx  (with options: `manual')
8
%%
9
%% Copyright (C) 2003, 2004
10
%% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
11
%% Hubert Gaesslein, HubertJG@open.mind.de
12
%%
13
%% This work may be distributed and/or modified under the
14
%% conditions of the LaTeX Project Public License, either version 1.3
15
%% of this license or (at your option) any later version.
16
%% The latest version of this license is in
17
%%   http://www.latex-project.org/lppl.txt
18
%% and version 1.3 or later is part of all distributions of LaTeX
19
%% version 2003/12/01 or later.
20
%%
21
%% This work has the LPPL maintenance status "author-maintained".
22
%%
23
\def\filename{leaflet-manual.tex}
24
\def\fileversion{v1.0e}   % change this when leaflet-manual changed, too.
25
\def\filedate{2013/11/06}
26
\def\docdate {2013/11/06} % change this when leaflet-manual changed, too.
27
\listfiles
28
\errorcontextlines=99
29
\documentclass[
30
%%notumble,
31
%%nofoldmark,
32
%%dvipdfm,
33
%%portrait,
34
%%titlepage,
35
%%nocombine,
36
%%a3paper,
37
%%debug,
38
%%nospecialtricks,
39
%%draft,
40
]{leaflet}
41
 
42
 
43
\renewcommand*\foldmarkrule{.3mm}
44
\renewcommand*\foldmarklength{5mm}
45
 
46
\usepackage[T1]{fontenc}
47
\usepackage{textcomp}
48
\usepackage{mathptmx}
49
\usepackage[scaled=0.9]{helvet}
50
\makeatletter
51
\def\ptmTeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.075emX\@}
52
\DeclareRobustCommand{\ptmLaTeX}{L\kern-.3em
53
        {\setbox0\hbox{T}%
54
         %\vb@xt@ % :-)
55
         \vbox to\ht0{\hbox{%
56
                            \csname S@\f@size\endcsname
57
                            \fontsize\sf@size\z@
58
                            \math@fontsfalse\selectfont
59
                            A}%
60
                      \vss}%
61
        }%
62
        \kern-.12em
63
        \ptmTeX}
64
\makeatother
65
\let\TeX=\ptmTeX
66
\let\LaTeX=\ptmLaTeX
67
\usepackage{shortvrb}
68
\MakeShortVerb{\|}
69
\usepackage{url}
70
\usepackage{graphicx}
71
\usepackage[dvipsnames,usenames]{color}
72
\definecolor{LIGHTGRAY}{gray}{.9}
73
 
74
%%%%\renewcommand{\descfont}{\normalfont}
75
\newcommand\Lpack[1]{\textsf{#1}}
76
\newcommand\Lclass[1]{\textsf{#1}}
77
\newcommand\Lopt[1]{\texttt{#1}}
78
\newcommand\Lprog[1]{\textit{#1}}
79
 
80
\newcommand*\defaultmarker{\textsuperscript\textasteriskcentered}
81
 
82
\title{The document class \Lclass{leaflet}}
83
\author{%
84
  Rolf Niepraschk\\
85
  Walter Schmidt\\
86
  Hubert G\"a\ss lein}
87
\date{Last updated~\docdate\\printed \today}
88
 
89
\CutLine*{1}% Dotted line without scissors
90
\CutLine{6}%  Dotted line with scissors
91
 
92
\AddToBackground{5}{%  Background of a small page
93
  \put(0,0){\textcolor{Cerulean}{\rule{\paperwidth}{\paperheight}}}}
94
 
95
\AddToBackground*{2}{% Background of a large page
96
  \put(\LenToUnit{.5\paperwidth},\LenToUnit{.5\paperheight}){%
97
    \makebox(0,0)[c]{%
98
      \resizebox{.9\paperwidth}{!}{\rotatebox{35.26}{%
99
        \textsf{\textbf{\textcolor{LIGHTGRAY}{BACKGROUND}}}}}}}}
100
 
101
\begin{document}
102
 
103
\maketitle
104
\thispagestyle{empty}
105
 
106
%%\LARGE
107
 
108
%%\tableofcontents
109
 
110
\section{Overview}
111
 
112
The document class \Lclass{leaflet} creates a document of (up to) six
113
small pages in portrait orientation, arranged physically on two
114
``normal-size'' pages. The target page sizes supported by the standard
115
\LaTeX{}  \Lclass{article} are available, plus |a3paper|. Printing these
116
to both sides of a sheet and folding appropriately will yield a six-page
117
leaflet.
118
 
119
%% TEST: These commands are no longer disabled!
120
\iffalse
121
\reversemarginpar
122
\marginpar[XXX]{YYY}
123
\fi
124
%% TEST: These commands are disabled!
125
\onecolumn
126
\twocolumn[WWW]
127
%% end of TEST
128
 
129
\section{Requirements}
130
 
131
Using the \Lclass{leaflet} class requires that the final
132
document is created in PostScript or PDF format, using
133
\begin{itemize}
134
  \item \TeX{} and \Lprog{dvips}, or
135
  \item pdf\TeX{}, or
136
  \item V\TeX{} in PS or PDF mode.
137
\end{itemize}
138
(Some other drivers supported by standard \LaTeX{} work as well.)
139
 
140
The non-standard macro package \Lpack{everyshi} \cite{cit:everyshi} is
141
used by the \Lclass{leaflet} class.
142
 
143
\section{Features}
144
 
145
Basically the \Lclass{leaflet} class provides the same features as the
146
standard \Lclass{article} class. There are, however, a number of
147
differences and restrictions, as well as some additional facilities and
148
peculiarities:
149
 
150
\begin{itemize}
151
 
152
\item
153
The sectioning level |\part| is not available.
154
The other sectioning levels are not numbered by default.
155
 
156
\item
157
References to the page where floating objects are located may come out
158
wrong (this includes |\pageref| as well as |\listof...| commends).
159
 
160
\item
161
Section headers are typeset in a smaller font size than in the
162
standard classes.
163
 
164
\item
165
You may use list-like environments just as in the standard classes.
166
The left margins have been adjusted to work well with the
167
\Lopt{a4paper} and \Lopt{letterpaper} class options.
168
With other target page sizes, you'll have to adjust them.
169
 
170
Here's a small demo:
171
\begin{description}
172
\item[Uncle Meat] First entry in a description environment.
173
\item[King Kong] Second entry.
174
    \begin{itemize}
175
    \item First entry in an itemize environment.
176
        \begin{enumerate}
177
        \item First entry in an enumerate environment.
178
        \item Second entry.
179
            \begin{enumerate}
180
            \item First entry in an enumerate environment.
181
                \begin{enumerate}
182
                \item First entry in an enumerate environment.
183
                \item Second entry.
184
                \end{enumerate}
185
            \item Second entry.
186
                \begin{itemize}
187
                \item First entry in an itemize environment.
188
                \item Second entry.
189
                \end{itemize}
190
            \item Another entry.
191
            \end{enumerate}
192
        \item Another entry.
193
        \end{enumerate}
194
    \item Second entry.
195
    \item Another entry.
196
    \end{itemize}
197
\item[Frunobulax] Another entry.
198
\end{description}
199
 
200
\item
201
Marginal notes are pointless on the given page size and
202
are disabled.
203
 
204
\item
205
Two-column typesetting is not supported for the same reason.
206
 
207
\item
208
By default, there are no page headers, page footers or page numbers,
209
nor is there any space reserved for these.
210
 
211
However, you can restore them, if you like.
212
To do so, use |\pagestyle| as with the standard classes,
213
and |\setlength| to adjust the corresponding parameters (like
214
|\headheight|).
215
At last, you have to call the new macro \par
216
|  \setmargins{top}{bottom}{left}{right}|.
217
 
218
\item
219
Paragraphs are separated by vertical space; the first line
220
of a paragraph is not indented by default.
221
 
222
\item
223
By default, all paragraphs are typeset as if you had
224
specified |\sloppy| in the document preamble.
225
 
226
\item
227
A small folding mark is created between the second and the
228
third page.
229
 
230
\item
231
The macro |\CutLine| draws a vertical dotted line with
232
scissor symbols between the page indicated by its argument and the
233
preceding one.
234
The starred version omits the scissors symbols.
235
 
236
\item
237
In case the text does not fit on six pages, a warning (or error,
238
depending on some class option, see below) will be issued.
239
 
240
\item
241
To add some background picture to individual pages, you can use
242
|\AddToBackground| commands. Its first argument specifies the page,
243
the second one the picture commands.
244
The starred version puts the picture on the combined pages.
245
 
246
\end{itemize}
247
 
248
\section{Customization}
249
 
250
The typeface to be used for the section headings is given by the macro
251
|\sectfont|, and the typeface to be used for the labels of the
252
|description| environment is given by |\descfont|.
253
Both macros default to |\bfseries| and can be changed using
254
|\renewcommand*|.
255
 
256
The horizontal and vertical and margins of the (small) pages
257
default to 8\,mm and 11\,mm, respectively, and can be changed
258
using |\setmargins|, as explained above.
259
This may be useful, if the printing engine exhibits larger unprintable
260
margins.
261
 
262
The macros |\foldmarkrule| and |\foldmarklength| determine the stroke
263
width and the length of the fold mark, which is printed between the
264
second and the third page.
265
They default to 0.4\,pt and 2\,mm, respectively, and can be changed
266
using |\renewcommand*| (\emph{not} |\setlength|!).
267
See also the class options \Lopt{foldmark} and \Lopt{nofoldmark}.
268
 
269
\section{Class options}
270
 
271
Default options are marked with an asterisk:
272
\begin{description}
273
\item[\Lopt{tumble}{\defaultmarker}, \Lopt{notumble}]
274
  By default, the contents of the back side of the final sheet is
275
  printed upside down.
276
  The option \Lopt{notumble} suppresses that.
277
  Doing so may be necessary to suit the behavior of certain printing
278
  engines.
279
  Specifying \Lopt[notumble] may also be useful during the writing of
280
  a document, to enable proof-reading on the screen.
281
\item[\Lopt{frontside}, \Lopt{backside}, \Lopt{bothsides}{\defaultmarker}]
282
  These options control whether only the front page, the back page or
283
  both pages of the final sheet are to be be created.
284
  Thus, you can create separate files for the front an back side of
285
  the sheet.
286
\item[\Lopt{foldmark}{\defaultmarker}, \Lopt{nofoldmark}]
287
  These options specifiy whether or not a fold mark is to be printed.
288
\item[\Lopt{combine}{\defaultmarker}, \Lopt{nocombine}]
289
  These options specify whether the (small) pages should be output
290
  combined on a (large) target page (\Lopt{combine}) or as individual
291
  pages (\Lopt{nocombine}).
292
 
293
  At the same time, the determine behaviour in case the text does not
294
  fit on six (small) pages.
295
  By default (\Lopt{combine}), an error is raised---and the surplus pages
296
  will be gobbled.
297
  Otherwise (\Lopt{nocombine}), just a warning will be issued;
298
  shortening the text appropriately is left to the user.
299
\item[\Lopt{twopart}, \Lopt{notwopart}{\defaultmarker}]
300
  Allows the typesetting of a four page leaflet (first part) and a two page
301
  detachable form (second part), for fill-in forms, questionnaires, applications,
302
  etc.
303
\end{description}
304
 
305
Other options are passed to the \Lclass{article} class.
306
 
307
\section{Changes over version 0.3}
308
 
309
The present release of the \Lclass{leaflet} class differs basically
310
from its predecessor, version~0.3, which had been developed originally
311
by J\"urgen Schlegelmilch.
312
 
313
The main change is, that no more post-processing is required to
314
arrange the pages on the sheet.
315
Furthermore, the overall layout has been changed slightly to suit the
316
small page size better.
317
In general, documents that were written for version~0.3 will exhibit
318
different line and page breaks when typeset using the new version of
319
this document class.
320
 
321
\begin{thebibliography}{000}
322
\bibitem{cit:latex-man}
323
  \textsc{L.\,Lamport}: \LaTeX. A Document Preparation System.
324
  \textit{User's Guide And Reference Manual.} Second Edition. 1994.
325
\bibitem{cit:everyshi}
326
  \textsc{M.\,Schr\"oder}: The \Lpack{everyshi} package. 2001.
327
  CTAN: \url{macros/latex/contrib/ms/everyshi.dtx}
328
\end{thebibliography}
329
 
330
\loggingall
331
\end{document}
332
\endinput
333
%%
334
%% End of file `leaflet-manual.tex'.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.