source: Sophya/trunk/SophyaLib/Manual/defsophya.sty@ 1360

Last change on this file since 1360 was 978, checked in by ansari, 25 years ago

MAJ doc sophya overview - Reza 28/4/2000

File size: 2.5 KB
Line 
1% Definition de commande pour les schemas de classe
2% Definition of template class \tcls{Vector} --> Vector<T>
3\newcommand{\tcls}[1] {#1$<$T$>$}
4% Putting a class name in a box
5\newcommand{\clsbox}[1] { \framebox[40mm][c]{\mbox{\rule[-1mm]{0mm}{5mm} \bf #1} } }
6% Emplty class box
7\newcommand{\eclbox} { \makebox[40mm][c]{\mbox{\rule[-1mm]{0mm}{5mm}} } \ }
8% Length of \longleftarrow
9\newlength{\arrclsw} \settowidth{\arrclsw}{$\longleftarrow$}
10% One single class diagram
11\newcommand{\dclsa}[1]{\clsbox{#1} \\[2mm]}
12% two class diagram
13\newcommand{\dclsbb}[2]{\clsbox{#1} $\longleftarrow$ \clsbox{#2} \\[2mm]}
14% two class diagram with one empty class (placeholder)
15\newcommand{\dclsb}[1]{\eclbox $\longleftarrow$ \clsbox{#1} \\[2mm]}
16% three class diagram
17\newcommand{\dclsccc}[3]{\clsbox{#1} $\longleftarrow$
18 \clsbox{#2} $\longleftarrow$ \clsbox{#3} \\[2mm]}
19% three class diagram with one empty class (placeholder)
20\newcommand{\dclscc}[2]{\eclbox $\longleftarrow$ \clsbox{#1} $\longleftarrow$
21 \clsbox{#2} \\[2mm]}
22% three class diagram with two empty classes (placeholder)
23\newcommand{\dclsc}[1]{\eclbox \hspace{\arrclsw} \eclbox
24 $\longleftarrow$ \clsbox{#1} \\[2mm]}
25
26\newcommand{\bul}{$\bullet \ $}
27
28
29% ---------- Commande pour la mise en forme de la page de titre ----------------
30
31% L'entete de page de titre
32\newcommand{\titrehp}[1]
33{
34\vspace{1cm}
35\makebox[30mm][c]{\includegraphics[width=3cm]{hfi_icon_vsmall.eps}}
36\hspace{5mm} \raisebox{12mm}{\rule{85 mm}{0.5 mm}\makebox[40 mm]{\bf Sophya }}
37\vspace{2cm}
38\begin{center}
39% \par \renewcommand{\baselinestretch}{2.0} \small
40{\LARGE \bf #1}
41\end{center}
42}
43
44\newcommand{\auteurs}[1]
45{
46\vspace{3 cm}
47\begin{center}
48\begin{tabular}{ll}
49#1
50\end{tabular}
51\end{center}
52}
53
54\newcommand{\auteursall}
55{
56\vspace{3 cm}
57\begin{center}
58\begin{tabular}{ll}
59R. Ansari & ansari@lal.in2p3.fr \\
60E. Aubourg & aubourg@hep.saclay.cea.fr \\
61G. Le Meur & lemeur@lal.in2p3.fr \\
62E. Lesquoy & lesquoy@hep.saclay.cea.fr \\
63C. Magneville & cmv@hep.saclay.cea.fr \\
64S. Versille & versille@lal.in2p3.fr \\
65F. Touze & touze@lal.in2p3.fr
66\end{tabular}
67\end{center}
68}
69
70% Bas de page de titre
71\newcommand{\titrebp}[1]
72{
73\vfill
74\hfill
75\framebox[\textwidth]{\hspace{0.5cm} \bf Sophya Note #1
76\hspace{1cm} \today } \\
77}
78
79
80
81% Definition de taille de page
82\setlength{\textwidth}{16cm}
83\setlength{\textheight}{21.5cm}
84\setlength{\topmargin}{0.5cm}
85\setlength{\oddsidemargin}{0.cm}
86\setlength{\evensidemargin}{0.cm}
87\setlength{\unitlength}{1mm}
Note: See TracBrowser for help on using the repository browser.