summaryrefslogtreecommitdiff
path: root/usergrps/uktug/baskervi/8_1/logotest.tex
blob: b49276fce8b7dd3589a871aced439125cfd23072 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{bv-bits}
%
\makeatletter
\newcommand\DeclareLaTeXLogo[5]{\expandafter\def
  \csname @LaTeX@#1/#2/#3\endcsname{{#4}{#5}}}
%    \end{macrocode}
%
% The default values are as used in the source of \LaTeX{} itself:
%
%    \begin{macrocode}
\def\@LaTeX@default{{.36}{.15}}
%    \end{macrocode}
%
% Three more defined in the initial version, for bold CM sans (which is
% used as \cs{SecTitleFont}), and CM italic medium and bold:
%
%    \begin{macrocode}
\DeclareLaTeXLogo{cmss}{bx}n{.3}{.15}
\DeclareLaTeXLogo{cmr}m{it}{.3}{.27}
\DeclareLaTeXLogo{cmr}{bx}{it}{.3}{.27}
%    \end{macrocode}
%
% Redefine \cs{LaTeX} to choose the parameters for the current font,
% or to use the default value otherwise:
%
%    \begin{macrocode}
\DeclareRobustCommand\LaTeX{\expandafter\let\expandafter\reserved@a
  \csname @LaTeX@\f@family/\f@series/\f@shape\endcsname
  \ifx\reserved@a\relax\let\reserved@a\@LaTeX@default\fi
  \expandafter\@LaTeX\reserved@a}
%    \end{macrocode}
%
% Here's the body of what was originally \cs{LaTeX}, pulled out with its
% roots dripping onto the smoking ruin of original \LaTeX, and then
% bits stuck in on the side.
%
% \cs{@LaTeX@default} provides parameters as one finds in the
% original; other versions are added as needed.
%
%    \begin{macrocode}
\newcommand\@LaTeX[2]{L\kern-#1em
        {\sbox\z@ T%
         \vbox to\ht0{\hbox{$\m@th$%
                            \csname S@\f@size\endcsname
                            \fontsize\sf@size\z@
                            \math@fontsfalse\selectfont
                            A}%
                      \vss}%
        }%
        \kern-#2em%
        \TeX}
%    \end{macrocode}
%
% do a \cs{LaTeX} with the set of parameters, as three elements in a
% table
\def\dolatex#1#2#3{%
  \textsmaller{#1} &
  \textsmaller{#2} &
  \DeclareLaTeXLogo\f@family\f@series\f@shape{#1}{#2}%
  \LaTeX & \ifx#3**\fi}
\def\titletable#1#2#3{Font family: <#1>,
  font series: <#2>, font shape <#3>.\\[1.5\baselineskip]
  \fontfamily{#1}\fontseries{#2}\fontshape{#3}\selectfont
  }
\makeatother
\begin{document}
\pagestyle{empty}
\begin{center}
  \titletable{mbvx}{b}{it}
  \begin{tabular}{llcl}
    \dolatex{.21}{.08}*\\
    \dolatex{.23}{.08}*\\
    \dolatex{.23}{.10}?\\
    \dolatex{.25}{.08}?\\
    \dolatex{.27}{.08}?\\
    \dolatex{.27}{.09}?\\
    \dolatex{.27}{.10}?\\
    \dolatex{.36}{.15}?\\
  \end{tabular}
\end{center}
\end{document}