summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dantelogo/dantelogo.sty
blob: 66d8d2ec44328d8ca1c96cc2dd9f8a372beb219b (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
% $Id: dantelogo.sty 190 2015-10-09 13:04:36Z herbert $
%%
%% This is file `dantelogo.sty'.
%%
%% IMPORTANT NOTICE:
%%
%% dantelogo.sty Copyright (C) 2015- Herbert Voss <hvoss@tug.org>
%%                                   Klaus Hoeppner 
%%
%% This package may be distributed under the terms of the LaTeX Project
%% Public License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.
%%
%
\def\fileversion{0.03}
\def\filedate{2015/08/12}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{dantelogo}[\filedate\space v\fileversion] 
\message{`dantelogo' v\fileversion, \filedate\space macro for DANTE's logo (hv)}
%
\RequirePackage{iftex}

\@tempswatrue%  suppose latex or pdflatex
%
\ifXeTeX\@tempswafalse\else\ifLuaTeX\@tempswafalse\fi\fi
%
\if@tempswa% we have (pdf)latex
  \message{We run (pdf)latex ... }%
  \PassOptionsToPackage{T1}{fontenc}%
  \RequirePackage{fontenc}%
  \def\dante@font{\fontencoding{\encodingdefault}\fontfamily{DANTE}\selectfont}%
\else
  \message{We run (lua)xelatex ... }%
  \RequirePackage{fontspec}
  \newfontfamily\dante@font{DANTE}%
    [Extension=.otf,
     BoldFont=*-Bold,
     ItalicFont=*-Italic,
     BoldItalicFont=*-Bold-Italic]
\fi
%
\providecommand\dantelogo{}%   to be sure that it is defined
\renewcommand\dantelogo[1][]{{%
  \dante@font
  \ifx\relax#1\relax\else\fontsize{#1}{#1}\selectfont\fi DANTE}}
%
%
\endinput