summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-09-09 16:31:52 +0000
committerKarl Berry <karl@freefriends.org>2008-09-09 16:31:52 +0000
commita253f34adc2df164384bd0c82045e2b4addc5f4b (patch)
treee639b929cff98520ba250beae563e86506530a4a /Master/texmf-dist
parentf1bf9d8690e3726e140dd466760a96ff58f4a3f6 (diff)
missed old package recipe (cfrees, 8 Sep 2008 03:12:14)
git-svn-id: svn://tug.org/texlive/trunk@10518 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/recipe/README20
-rw-r--r--Master/texmf-dist/doc/latex/recipe/sample.pdfbin0 -> 33540 bytes
-rw-r--r--Master/texmf-dist/doc/latex/recipe/sample.tex59
-rw-r--r--Master/texmf-dist/tex/latex/recipe/recipe.cls82
4 files changed, 161 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/recipe/README b/Master/texmf-dist/doc/latex/recipe/README
new file mode 100644
index 00000000000..c3fbb57141f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/recipe/README
@@ -0,0 +1,20 @@
+The file "recipe.cls" is a LaTeX-2e class file to typeset recipes;
+an example is included, in form of an input file "sample.tex" and
+of the final PostScript file "sample.ps". I am sorry, but the
+example is in Italian; but, what the general user may be interested
+in, is the page layout and not real recipes :-) .
+
+The PostScript file requires Bookman (in the printer, or in
+GhostScript) and BrushScript-Italic (included as a .pfa font in
+sample.ps); this last font, that I have contributed a few years
+ago, is available on CTANs in /tex-archive/fonts/brushscr with
+all its .tfm, .fd and .vf files.
+
+All of these files are public domain; but the author will gladly
+receive comments and all your modifications.
+
+Maurizio Loreti
+Department of Physics, University of Padova
+Via F. Marzolo 8 - 35131 PADOVA - Italy
+FAX ++39 (49) 827-7102
+EMail loreti@padova.infn.it
diff --git a/Master/texmf-dist/doc/latex/recipe/sample.pdf b/Master/texmf-dist/doc/latex/recipe/sample.pdf
new file mode 100644
index 00000000000..8eb87e3c122
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/recipe/sample.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/recipe/sample.tex b/Master/texmf-dist/doc/latex/recipe/sample.tex
new file mode 100644
index 00000000000..8103bbf84a4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/recipe/sample.tex
@@ -0,0 +1,59 @@
+\documentclass[a4paper]{recipe}
+\usepackage[T1]{fontenc}
+\usepackage[italian]{babel}
+\usepackage{bookman}
+
+\newcommand{\bsi}[2]{%
+ \fontencoding{T1}\fontfamily{pbs}\fontseries{xl}\fontshape{n}%
+ \fontsize{#1}{#2}\selectfont}
+
+\renewcommand{\inghead}{\textbf{Ingredienti (per 4 persone)}:\ }
+\renewcommand{\rechead}{\centering\bsi{24pt}{30pt}}
+
+\makeatletter
+\renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{0em}}
+\makeatother
+
+\setlength\parindent{0pt}
+\setlength\parskip{2ex plus 0.5ex}
+
+\begin{document}
+\chapter{Primi piatti}
+\recipe{Spaghetti alla carbonara}
+\ingred{spaghetti, 400 gr.;
+ pancetta coppata, 300 gr.;
+ 4 rossi d'uovo;
+ panna fresca, 200 gr.;
+ pepe, burro, parmigiano, pecorino.}
+
+In una zuppiera mescolate bene i 4 rossi d'uovo alla
+panna, al parmigiano ed al pecorino (grosso modo in
+uguale quantit\`a, aggiustando le proporzioni a seconda
+del gusto) e ad abbondante pepe.
+
+Fate rosolare la pancetta coppata tagliata a pezzetti
+in poco burro; e, quando si sar\`a freddata, unitela
+al resto degli ingredienti.
+
+Cuocete la pasta al dente, scolatela, mettetela nella
+zuppiera e mescolate bene.
+
+\recipe{Farfalle al gorgonzola}
+\ingred{farfalle, 400 gr.;
+ gorgonzola, 150 gr.;
+ parmigiano grattugiato, 100 gr.;
+ panna fresca, 200 gr.;
+ pepe, burro, prezzemolo.}
+
+In una padella fate sciogliere il burro ed unite la
+panna; quando sar\`a calda aggiungete il gorgonzola
+ed il parmigiano, che farete sciogliere a fuoco basso
+mescolando continuamente.
+Aggiungete infine il pepe ed il prezzemolo tritato;
+se il sugo fosse troppo denso allungatelo con un poco
+di latte.
+
+Cuocete la pasta al dente, scolatela, mettetela nella
+padella con il condimento e mescolate bene.
+\tableofcontents
+\end{document}
diff --git a/Master/texmf-dist/tex/latex/recipe/recipe.cls b/Master/texmf-dist/tex/latex/recipe/recipe.cls
new file mode 100644
index 00000000000..da914d81ef1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/recipe/recipe.cls
@@ -0,0 +1,82 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{recipe}[1996/11/22 MLO recipe class v0.9]
+
+%
+% Recipe class; intended to be used to produce a ``book''
+% of recipes---so that loads book.cls . This file is in
+% the public domain, and comments/additions/modifications
+% are welcomed to be EMailed to me, i.e. to:
+%
+% Author: Maurizio Loreti, aka MLO or (HAM) I3NOO
+% Work: University of Padova - Department of Physics
+% Via F. Marzolo, 8 - 35131 PADOVA - Italy
+% Phone: ++39(49) 827-7216 FAX: ++39(49) 827-7102
+% EMail: loreti@padova.infn.it
+% WWW: http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
+%
+% The \part, \chapter, \section and \subsection commands
+% work as usual; \subsubsection commands are used for
+% ``recipes'' as units, and are not numbered but (by
+% default) entered in the .toc file.
+%
+% The recipe (a.k.a. subsubsection header) is typeset in
+% a style defined with the command \rechead; the default
+% is Large, horizontally centered, bold sans-serif: and
+% the user can change that setting with a suitable
+% \renewcommand{\rechead} .
+%
+% If e.g. \section and \subsection commands are not used
+% in the text, the large indentation of the \subsubsection
+% items in the Table of Contents may be ugly; in that case,
+% you should redefine appropriately \l@subsubsection .
+% The book.cls definition is:
+% \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}} ;
+% the second parameter (7.0em) is the initial skip, and
+% the third (4.1em) is the length for the subsubsection
+% number field (if the subsubsections are to be numbered).
+% As an example, a redefinition of \l@subsubsection may look
+% like:
+% \makeatletter
+% \renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{4.1em}}
+% \makeatother
+%
+% A specific command \recipe{...} is defined as an alias
+% for a \subsubsection{...} followed by two rules across
+% the whole page and by a vertical space.
+%
+% Another command, \ingred{...}, is defined to typeset a
+% list of ingredients (the \ldots) with the italic font,
+% inside a ``quote'' environment and after an ``ingredient
+% header'' \inghead---empty by default, and that can be
+% redefined by the user with, e.g., a
+% \renewcommand{\inghead}{\textbf{Ingredients (4 persons)}:\ }
+% (note the trailing space).
+%
+
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
+\ProcessOptions
+\LoadClass{book}
+
+\setcounter{secnumdepth}{2} % subsubsections not numbered
+\setcounter{tocdepth}{3} % subsubsections in the .toc file
+
+\newcommand{\rechead}
+ {\centering\normalfont\Large\sffamily\bfseries}
+
+\renewcommand{\subsubsection}
+ {\@startsection{subsubsection}{3}{\z@}%
+ {-5ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\rechead}}
+
+\newcommand{\recipe}[1]{\subsubsection{#1}%
+ \hrule height0.75pt width\hsize\vspace*{1\p@}%
+ \hrule height0.25pt width\hsize%
+ \nobreak
+ \vskip\parskip}
+
+\newcommand{\inghead}{\relax}
+\newcommand{\ingred}[1]
+ {{\list{}{\rightmargin 1em\leftmargin 1em}%
+ \item[]\textit{\inghead#1}\endlist}%
+ \hrule height0.25pt width\hsize}