| 1 |
%% |
| 2 |
%% This is file `example.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% niceframe.dtx (with options: `example') |
| 8 |
%% |
| 9 |
%% This file is distributed in the hope that it will be useful, |
| 10 |
%% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 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 2005/12/01 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status `maintained'. |
| 22 |
%% |
| 23 |
%% The Current Maintainer of this work is Marcus Ohlhaut. |
| 24 |
%% |
| 25 |
%% This work consists of the files niceframe.dtx and niceframe.ins |
| 26 |
%% and the derived file niceframe.sty. |
| 27 |
%% |
| 28 |
%% Copyright (C) 2009 Marcus Ohlhaut ([email protected]). |
| 29 |
%% All rights reserved. |
| 30 |
%% |
| 31 |
%% \CharacterTable |
| 32 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 33 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 34 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 35 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 36 |
%% Dollar \$ Percent \% Ampersand \& |
| 37 |
%% Acute accent \' Left paren \( Right paren \) |
| 38 |
%% Asterisk \* Plus \+ Comma \, |
| 39 |
%% Minus \- Point \. Solidus \/ |
| 40 |
%% Colon \: Semicolon \; Less than \< |
| 41 |
%% Equals \= Greater than \> Question mark \? |
| 42 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 43 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 44 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 45 |
%% Right brace \} Tilde \~} |
| 46 |
%% |
| 47 |
\def\fileversion{1.1c} |
| 48 |
\def\filedate{2009/31/08} |
| 49 |
\documentclass[a4paper]{article} |
| 50 |
\usepackage{niceframe} |
| 51 |
|
| 52 |
\begin{document} |
| 53 |
\pagestyle{empty} |
| 54 |
|
| 55 |
\parindent 0pt |
| 56 |
\niceframe{% |
| 57 |
\begin{center} |
| 58 |
May the road rise to meet you\\ |
| 59 |
May the wind be always at your back\\ |
| 60 |
May the sun shine warm upon your face\\ |
| 61 |
The rain fall soft upon your fields\\ |
| 62 |
And until we meet again\\ |
| 63 |
May God hold you in the hollow of his hand\\ |
| 64 |
\end{center} |
| 65 |
\bigskip |
| 66 |
\hfill The Blessing of St.~Patrick |
| 67 |
} |
| 68 |
\vfill |
| 69 |
\centerline{% |
| 70 |
\curlyframe[0.75\textwidth]{% |
| 71 |
\begin{center} |
| 72 |
\LARGE I am not flexible!\\ |
| 73 |
Just disorganized!\\ |
| 74 |
\end{center} |
| 75 |
}} |
| 76 |
\vfill |
| 77 |
\centerline{or is it\dots} |
| 78 |
\vfill |
| 79 |
\artdecoframe{% |
| 80 |
\begin{center} |
| 81 |
\LARGE I am not disorganized!\\ |
| 82 |
Just flexible!\\ |
| 83 |
\end{center} |
| 84 |
} |
| 85 |
\newpage |
| 86 |
\font\border=karta15 |
| 87 |
\generalframe{\border\char'307}{\border\char'324}{\border\char'322} |
| 88 |
{\border\char'310} {\border\char'323} |
| 89 |
{\border\char'174}{\border\char'325}{\border\char'175} |
| 90 |
{This is a \texttt{generalframe}, using eight different |
| 91 |
characters from font \texttt{karta15} as parts of the |
| 92 |
framework. One might use it to point other people to |
| 93 |
important notes, hints and/or messages. |
| 94 |
} |
| 95 |
\vfill |
| 96 |
\font\border=umranda |
| 97 |
\generalframe{\border\char'136}{\border\char'137}{\border\char'140} |
| 98 |
{\border\char'145} {\border\char'141} |
| 99 |
{\border\char'144}{\border\char'143}{\border\char'142} |
| 100 |
{This \texttt{generalframe} uses symbols from Alexander |
| 101 |
Schrell's \texttt{umranda} (his eMail is: |
| 102 |
alexander\_ [email protected]) collection. |
| 103 |
The material to be framed consists of quite a few lines to |
| 104 |
emphasize the fact that virtually anything can go |
| 105 |
inside a \texttt{generalframe}. Note that we are limited |
| 106 |
by \TeX's memory as the material to frame has to be passed |
| 107 |
as an argument. You can't cheat by passing a \texttt{vbox} |
| 108 |
that has already been set (as you might with some other |
| 109 |
macros) since \texttt{generalframe} has to re-set all of it. |
| 110 |
} |
| 111 |
\vfill |
| 112 |
\font\border=umrandb |
| 113 |
\generalframe{\border\char'165}{\border\char'151}{\border\char'164}% |
| 114 |
{\border\char'150} {\border\char'150}% |
| 115 |
{\border\char'166}{\border\char'151}{\border\char'167} |
| 116 |
{Last, but not least! This \texttt{generalframe} (with |
| 117 |
symbols from \texttt{umrandb}) displays some math: |
| 118 |
$$ E = mc^2 $$ |
| 119 |
which everyone will immediately recognize as the famous |
| 120 |
Einstein formula for energy-mass-equivalence. |
| 121 |
} |
| 122 |
\end{document} |
| 123 |
\endinput |
| 124 |
%% |
| 125 |
%% End of file `example.tex'. |