diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /usergrps/uktug/baskervi/8_1/logotest.tex |
Initial commit
Diffstat (limited to 'usergrps/uktug/baskervi/8_1/logotest.tex')
-rw-r--r-- | usergrps/uktug/baskervi/8_1/logotest.tex | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/usergrps/uktug/baskervi/8_1/logotest.tex b/usergrps/uktug/baskervi/8_1/logotest.tex new file mode 100644 index 0000000000..b49276fce8 --- /dev/null +++ b/usergrps/uktug/baskervi/8_1/logotest.tex @@ -0,0 +1,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} |