blob: 275c53f4cb1e01eb939117da2a4c4858773071d1 (
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 127 2014-10-01 15:17:09Z 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.02}
\def\filedate{2014/10/01}
\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
|