%%
%% 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: 2012/04/26 v1.10
%% 
%% 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}[2012/04/26]
\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'.
