| 1 |
%% |
| 2 |
%% This is file `hologo-example.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% hologo.dtx (with options: `example') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: hologo |
| 12 |
%% Version: 2026-04-02 v1.17 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2010-2012 Heiko Oberdiek |
| 16 |
%% 2016-2026 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/hologo/issues |
| 33 |
%% |
| 34 |
%% The Base Interpreter refers to any `TeX-Format', |
| 35 |
%% because some files are installed in TDS:tex/generic//. |
| 36 |
%% |
| 37 |
%% This work consists of the main source file hologo.dtx |
| 38 |
%% and the derived files |
| 39 |
%% hologo.sty, hologo.pdf, hologo.ins, hologo.drv, hologo-example.tex, |
| 40 |
%% hologo-test1.tex, hologo-test-spacefactor.tex, |
| 41 |
%% hologo-test-list.tex. |
| 42 |
%% |
| 43 |
\NeedsTeXFormat{LaTeX2e} |
| 44 |
\documentclass[a4paper]{article} |
| 45 |
\usepackage[ |
| 46 |
hmargin=20mm, |
| 47 |
vmargin=20mm, |
| 48 |
]{geometry} |
| 49 |
\pagestyle{empty} |
| 50 |
\usepackage{hologo}[2019/12/05] |
| 51 |
\usepackage{longtable} |
| 52 |
\usepackage{array} |
| 53 |
\setlength{\extrarowheight}{2pt} |
| 54 |
\usepackage[T1]{fontenc} |
| 55 |
\usepackage{lmodern} |
| 56 |
\usepackage{pdflscape} |
| 57 |
\usepackage[ |
| 58 |
pdfencoding=auto, |
| 59 |
]{hyperref} |
| 60 |
\hypersetup{ |
| 61 |
pdfauthor={Heiko Oberdiek}, |
| 62 |
pdftitle={Example for package `hologo'}, |
| 63 |
pdfsubject={Logos with fonts lmr, lmss, qtm, qpl, qhv}, |
| 64 |
} |
| 65 |
\usepackage{bookmark} |
| 66 |
|
| 67 |
% Print the logo list on the console |
| 68 |
|
| 69 |
\begingroup |
| 70 |
\typeout{}% |
| 71 |
\typeout{*** Begin of logo list ***}% |
| 72 |
\newcommand*{\hologoEntry}[3]{% |
| 73 |
\typeout{#1 \ifx\\#2\\\else(#2) \fi[#3]}% |
| 74 |
}% |
| 75 |
\hologoList |
| 76 |
\typeout{*** End of logo list ***}% |
| 77 |
\typeout{}% |
| 78 |
\endgroup |
| 79 |
|
| 80 |
\begin{document} |
| 81 |
\begin{landscape} |
| 82 |
|
| 83 |
\section{Example file for package `hologo'} |
| 84 |
|
| 85 |
% Table for font names |
| 86 |
|
| 87 |
\begin{longtable}{>{\bfseries}ll} |
| 88 |
\textbf{font} & \textbf{Font name}\\ |
| 89 |
\hline |
| 90 |
lmr & Latin Modern Roman\\ |
| 91 |
lmss & Latin Modern Sans\\ |
| 92 |
qtm & \TeX\ Gyre Termes\\ |
| 93 |
qhv & \TeX\ Gyre Heros\\ |
| 94 |
qpl & \TeX\ Gyre Pagella\\ |
| 95 |
\end{longtable} |
| 96 |
|
| 97 |
% Logo list with logos in different fonts |
| 98 |
|
| 99 |
\begingroup |
| 100 |
\newcommand*{\SetVariant}[2]{% |
| 101 |
\ifx\\#2\\% |
| 102 |
\else |
| 103 |
\hologoLogoSetup{#1}{variant=#2}% |
| 104 |
\fi |
| 105 |
}% |
| 106 |
\newcommand*{\hologoEntry}[3]{% |
| 107 |
\SetVariant{#1}{#2}% |
| 108 |
\raisebox{1em}[0pt][0pt]{\hypertarget{#1@#2}{}}% |
| 109 |
\bookmark[% |
| 110 |
dest={#1@#2},% |
| 111 |
]{% |
| 112 |
#1\ifx\\#2\\\else\space(#2)\fi: \Hologo{#1}, \hologo{#1} % |
| 113 |
[Unicode]% |
| 114 |
}% |
| 115 |
\hypersetup{unicode=false}% |
| 116 |
\bookmark[% |
| 117 |
dest={#1@#2},% |
| 118 |
]{% |
| 119 |
#1\ifx\\#2\\\else\space(#2)\fi: \Hologo{#1}, \hologo{#1} % |
| 120 |
[PDFDocEncoding]% |
| 121 |
}% |
| 122 |
\texttt{#1}% |
| 123 |
&% |
| 124 |
\texttt{#2}% |
| 125 |
&% |
| 126 |
\Hologo{#1}% |
| 127 |
&% |
| 128 |
\SetVariant{#1}{#2}% |
| 129 |
\hologo{#1}% |
| 130 |
&% |
| 131 |
\SetVariant{#1}{#2}% |
| 132 |
\fontfamily{qtm}\selectfont |
| 133 |
\hologo{#1}% |
| 134 |
&% |
| 135 |
\SetVariant{#1}{#2}% |
| 136 |
\fontfamily{qpl}\selectfont |
| 137 |
\hologo{#1}% |
| 138 |
&% |
| 139 |
\SetVariant{#1}{#2}% |
| 140 |
\textsf{\hologo{#1}}% |
| 141 |
&% |
| 142 |
\SetVariant{#1}{#2}% |
| 143 |
\fontfamily{qhv}\selectfont |
| 144 |
\hologo{#1}% |
| 145 |
\tabularnewline |
| 146 |
}% |
| 147 |
\begin{longtable}{llllllll}% |
| 148 |
\textbf{\textit{logo}} & \textbf{\textit{variant}} & |
| 149 |
\texttt{\string\Hologo} & |
| 150 |
\textbf{lmr} & \textbf{qtm} & \textbf{qpl} & |
| 151 |
\textbf{lmss} & \textbf{qhv} |
| 152 |
\tabularnewline |
| 153 |
\hline |
| 154 |
\endhead |
| 155 |
\hologoList |
| 156 |
\end{longtable}% |
| 157 |
\endgroup |
| 158 |
|
| 159 |
\end{landscape} |
| 160 |
\end{document} |
| 161 |
%% \section{Installation} |
| 162 |
\endinput |
| 163 |
%% |
| 164 |
%% End of file `hologo-example.tex'. |