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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
%%
%% This is file `interfaces-LaTeX.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% interfaces.dtx (with options: `LaTeX')
%%
%% This is a generated file.
%%
%% interfaces : 2011/02/19 v3.1 - interfaces : interfaces with keys for other packages (FC)
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any later
%% version. The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%%
%% This work consists of the main source file interfaces.dtx
%% and the derived files
%% interfaces.sty, interfaces.pdf, interfaces.ins,
%% interfaces-base.sty,
%% interfaces-LaTeX.sty,
%% interfaces-tikz.sty,
%% interfaces-titlesec.sty,
%% interfaces-hyperref.sty,
%% interfaces-bookmark.sty,
%% interfaces-hypbmsec.sty,
%% interfaces-fancyhdr.sty,
%% interfaces-marks.sty,
%% interfaces-tocloft.sty,
%% interfaces-makecell.sty,
%% interfaces-enumitem.sty,
%% interfaces-truncate.sty,
%% interfaces-appendix.sty,
%% interfaces-embedfile.sty,
%% interfaces-environ.sty,
%% interfaces-umrand.sty,
%% interfaces-scrlfile.sty,
%% interfaces-pgfkeys.sty,
%% interfaces-etoolbox.sty
%%
%% interfaces: interfaces with keys for other packages (FC)
%% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
%%
\ProvidesPackage{interfaces-LaTeX}
[2011/02/19 v3.1 pgfkeys macros for LaTeX (FC)]
\RequirePackage{interfaces-base}
\itf@pgfkeys
\newrobustcmd*\changefont[1]{\itf@pgfkeys
\pgfqkeys{/itf/LaTeX/changefont}{#1}\selectfont
}% \changefont
\AfterPackage*{hyperref}
{\pdfstringdefDisableCommands{\let\changefont\@gobble}}
\pgfqkeys{/itf/LaTeX/changefont}{%
encoding/.code=\fontencoding{#1},encoding/.value required,%
enc/.alias=encoding,%
family/.code=\fontfamily{#1},family/.value required,%
fam/.alias=family,%
series/.code=\fontseries{#1},series/.value required,%
ser/.alias=series,%
shape/.code=\fontshape{#1},shape/.value required,%
sha/.alias=shape,%
size/.estore as dimen in cs=f@size,%
size/.append code=\set@fontsize\f@linespread\f@size\f@baselineskip,%
siz/.alias*=size,%
baselineskip/.estore as glue in cs=f@baselineskip,%
baselineskip/.append code=\set@fontsize\f@linespread\f@size\f@baselineskip,%
skip/.alias*=baselineskip,%
@linespread/.estore as dimen,%
@linespread/.append code=
\pgfkeysgetvalue{/itf/LaTeX/changefont/@linespread}\pgfkeys@temp
\ifx\pgfkeys@temp\@empty \let\pgfkeys@temp \p@ \fi
\edef\f@linespread{\expandafter\rem@pt\pgfkeys@temp}%
\set@fontsize\f@linespread\f@size\f@baselineskip,%
@linespread/.initial=\p@,%
linespread/.code=\@defaultunits\itf@sk #1pt\relax\@nnil
\pgfkeysalso{/itf/LaTeX/changefont/@linespread=\itf@sk},%
linespread+/.code=\@defaultunits\itf@sk #1pt\relax\@nnil
\pgfkeysalso{/itf/LaTeX/changefont/@linespread+=\itf@sk},%
linespread-/.code=\@defaultunits\itf@sk #1pt\relax\@nnil
\pgfkeysalso{/itf/LaTeX/changefont/@linespread-=\itf@sk},%
linespread*/.alias=@linespread*,%
spread/.alias*=linespread,%
}% \pgfkeys definitions for \changefont
\itf@AfterPackage{color}{%
\pgfkeysifdefined{/itf/LaTeX/changefont/color/.@cmd}{}
{\pgfkeys{/itf/LaTeX/changefont/color/.code=\color{#1}}}%
}% AfterPackage color
\itf@AfterPackage{xcolor}{%
\pgfkeysifdefined{/itf/LaTeX/changefont/color/.@cmd}{}
{\pgfkeys{/itf/LaTeX/changefont/color/.code=\color{#1}}}%
}% AfterPackage xcolor
\newrobustcmd*\quickprofile{\begingroup \afterassignment \itf@quickprofile \count@}
\def\itf@quickprofile{\afterassignment \itf@profileloop \toks@}
\def\itf@profileloop{%
\edef\itf@N {\the\count@}\let\itf@n \z@
\edef\itf@time{\the\pdfelapsedtime}%
\loop
\message{^^JProfiler: step \number\itf@n}%
\setbox\z@=\vbox{{\the\toks@}}%
\count@ \itf@n\advance\count@ \@ne
\ifnum \count@<\itf@N
\edef\itf@n{\the\count@}%
\repeat
\message{^^J(interfaces) quickprofile: Time elapsed for \itf@N\space cycles:
\the\numexpr(\pdfelapsedtime-\itf@time-32767)/65536\relax sec
\the\numexpr\numexpr(\pdfelapsedtime-\itf@time)
-\numexpr(\pdfelapsedtime-\itf@time-32767)/65536\relax*65536\relax
*1000/65536\relax ms}%
\endgroup
}% \itf@profileloop
\endinput
%%
%% End of file `interfaces-LaTeX.sty'.
|