summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/technica/examples/example.sty
blob: a89944dcda69d11d83132d3b5fce5a10b42de8d1 (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
\newcommand {\ExampleTitle} [4][e]{%
  \pagestyle{empty}
  \begingroup
  \fontfamily{cmr}\selectfont
  \Facies \tituli {##1}
  \SpatiumSuper \titulum {4ex}
  \SpatiumInfra {8ex}
  \RelSize{4}
  \setbox\z@=\hbox{\MakeUppercase{#2}}
  \ifdim \wd\z@ > \hsize
    \RelSize{-5}
  \else
    \RelSize{-4}
  \fi
  \titulus {\RelSize{4}\MakeUppercase{#2}}
  \titulus {\RelSize{4}#3}
  \vfill
  \titulus {\RelSize{2}\scshape
    \ifx #1e\relax
	  \ifx \@undefined \languagename
	  \else
		\gdef \languagename {english}
	  \fi
      technica editions\\[.5ex]ventimiglia $\cdot$ milano%
    \else \ifx #1f\relax
      \'editions technica\\[.5ex]ventimille $\cdot$ milan%
    \else \ifx #1i\relax
      edizioni technica\\[.5ex]ventimiglia $\cdot$ milano%
    \else \ifx #1d\relax
      technica verlag\\[.5ex]ventimiglia $\cdot$ milano%
    \else \ifx #1s\relax
      ediciones technica\\[.5ex]ventimiglia $\cdot$ milano%
    \else \ifx #1l\relax
      albintimili $\cdot$ mediolani\\[.5ex]%
      {\RelSize{-1}e typographeo technico}%
    \fi \fi \fi \fi \fi \fi
  }
  \newpage
  \ifx #4\empty
	\vfill
  \else
    \ \par\vfill
    \RelSize{2}
    \Facies \tituli {\itshape##1}
    \SpatiumSuper {0ex}
    \SpatiumInfra {.5ex} 
	\def \TXN@temp {#4}%
	\ifx \empty	\TXN@temp
	\else
      \titulus {Typeset in the style of}
      \Facies \tituli {\upshape##1}
      \titulus{#4}
    \fi
  \fi
  \newpage
  \endgroup
}