summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/oberdiek/example/hologo-example.tex
blob: 6e3a19ec750d3297950cb119d229d084be3d67f0 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
%%
%% This is file `hologo-example.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hologo.dtx  (with options: `example')
%% 
%% This is a generated file.
%% 
%% Project: hologo
%% Version: 2016/05/16 v1.12
%% 
%% Copyright (C) 2010-2012 by
%%    Heiko Oberdiek <heiko.oberdiek at googlemail.com>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%    http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% This Current Maintainer of this work is Heiko Oberdiek.
%% 
%% The Base Interpreter refers to any `TeX-Format',
%% because some files are installed in TDS:tex/generic//.
%% 
%% This work consists of the main source file hologo.dtx
%% and the derived files
%%    hologo.sty, hologo.pdf, hologo.ins, hologo.drv, hologo-example.tex,
%%    hologo-test1.tex, hologo-test-spacefactor.tex,
%%    hologo-test-list.tex.
%% 
\NeedsTeXFormat{LaTeX2e}
\documentclass[a4paper]{article}
\usepackage[
  hmargin=20mm,
  vmargin=20mm,
]{geometry}
\pagestyle{empty}
\usepackage{hologo}[2016/05/16]
\usepackage{longtable}
\usepackage{array}
\setlength{\extrarowheight}{2pt}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{pdflscape}
\usepackage[
  pdfencoding=auto,
]{hyperref}
\hypersetup{
  pdfauthor={Heiko Oberdiek},
  pdftitle={Example for package `hologo'},
  pdfsubject={Logos with fonts lmr, lmss, qtm, qpl, qhv},
}
\usepackage{bookmark}

% Print the logo list on the console

\begingroup
  \typeout{}%
  \typeout{*** Begin of logo list ***}%
  \newcommand*{\hologoEntry}[3]{%
    \typeout{#1 \ifx\\#2\\\else(#2) \fi[#3]}%
  }%
  \hologoList
  \typeout{*** End of logo list ***}%
  \typeout{}%
\endgroup

\begin{document}
\begin{landscape}

  \section{Example file for package `hologo'}

  % Table for font names

  \begin{longtable}{>{\bfseries}ll}
    \textbf{font} & \textbf{Font name}\\
    \hline
    lmr & Latin Modern Roman\\
    lmss & Latin Modern Sans\\
    qtm & \TeX\ Gyre Termes\\
    qhv & \TeX\ Gyre Heros\\
    qpl & \TeX\ Gyre Pagella\\
  \end{longtable}

  % Logo list with logos in different fonts

  \begingroup
    \newcommand*{\SetVariant}[2]{%
      \ifx\\#2\\%
      \else
        \hologoLogoSetup{#1}{variant=#2}%
      \fi
    }%
    \newcommand*{\hologoEntry}[3]{%
      \SetVariant{#1}{#2}%
      \raisebox{1em}[0pt][0pt]{\hypertarget{#1@#2}{}}%
      \bookmark[%
        dest={#1@#2},%
      ]{%
        #1\ifx\\#2\\\else\space(#2)\fi: \Hologo{#1}, \hologo{#1} %
        [Unicode]%
      }%
      \hypersetup{unicode=false}%
      \bookmark[%
        dest={#1@#2},%
      ]{%
        #1\ifx\\#2\\\else\space(#2)\fi: \Hologo{#1}, \hologo{#1} %
        [PDFDocEncoding]%
      }%
      \texttt{#1}%
      &%
      \texttt{#2}%
      &%
      \Hologo{#1}%
      &%
      \SetVariant{#1}{#2}%
      \hologo{#1}%
      &%
      \SetVariant{#1}{#2}%
      \fontfamily{qtm}\selectfont
      \hologo{#1}%
      &%
      \SetVariant{#1}{#2}%
      \fontfamily{qpl}\selectfont
      \hologo{#1}%
      &%
      \SetVariant{#1}{#2}%
      \textsf{\hologo{#1}}%
      &%
      \SetVariant{#1}{#2}%
      \fontfamily{qhv}\selectfont
      \hologo{#1}%
      \tabularnewline
    }%
    \begin{longtable}{llllllll}%
      \textbf{\textit{logo}} & \textbf{\textit{variant}} &
      \texttt{\string\Hologo} &
      \textbf{lmr} & \textbf{qtm} & \textbf{qpl} &
      \textbf{lmss} & \textbf{qhv}
      \tabularnewline
      \hline
      \endhead
      \hologoList
    \end{longtable}%
  \endgroup

\end{landscape}
\end{document}
\endinput
%%
%% End of file `hologo-example.tex'.