summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dantelogo/dantelogo.sty
blob: c740037f00ffc3a17d7e34c084097860c5491950 (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
% $Id: .sty 51 2014-07-26 18:36:44Z 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.01}
\def\filedate{2014/09/02}
\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
%
\newcommand\dantelogo[1][]{{%
  \dante@font
  \ifx\relax#1\relax\else\fontsize{#1}{#1}\fi\selectfont DANTE}}
%
%
\endinput