blob: 692ae5a2a5c2719b54f83f328fdb50535c73b819 (
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
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
|
%% ---------------------------------------------------------------------------
%% This version of arcs.sty was hacked up to work around an incompatibility
%% between arcs and relsize. See Michael Sharpe's August 2013 posting to
%% the XeTeX list (http://tug.org/pipermail/xetex/2013-August/024674.html)
%% for details, but the patch is basically to replace \@gobbletwo with a
%% newly defined \@gobblethree.
%% ---------------------------------------------------------------------------
%%
%% This is file `arcs.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% arcs.dtx (with options: `package')
%%
%% This is a generated file.
%%
%% Copyright 2004 Gianfranco Boggio-Togna
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.2 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
%% and version 1.2 or later is part of all distributions
%% of LaTeX version 1999/12/01 or later.
%%
\NeedsTeXFormat {LaTeX2e}[2003/12/01]
\ProvidesPackage {arcs}[2004/05/09]
\RequirePackage {relsize}
\long\def\@gobblethree#1#2#3{}
\newcommand{\overarc}[2][1]{\over@under@arc{#1}{#2}\z@}
\newcommand{\underarc}[2][1]{\over@under@arc{#1}{#2}\@ne}
\newcommand{\over@under@arc}[3]{%
\leavevmode
\hbox {%
\setbox\z@ = \hbox {#2}%
\ifdim \ht\z@ = \z@ % arc over/under space
\ifdim \dp\z@ = \z@
\ht\z@ = 1ex\relax
\fi
\fi
\dimen@ = #1\wd\z@
\begingroup
\let \rs@size@warning = \@gobblethree
\relsize{-10}%
\wd\@ne = \z@
\@whiledim \wd\@ne < .95\dimen@ \do {%
\ifx \@currsize \Huge
\dimen@ = \z@
\else
$%
\skip@ = \f@baselineskip
\fontencoding{OML}\fontfamily{cmm}\fontseries{m}%
\fontshape{it}\fontsize{\ssf@size}{\skip@}\selectfont
\global \setbox\@ne = \hbox {%
\hss\symbol{"5\ifnum #3=\z@ F\else E\fi}\hss}%
\ifdim \wd\@ne < \dimen@
\fontsize{\sf@size}{\skip@}\selectfont
\global \setbox\@ne = \hbox {%
\hss\symbol{"5\ifnum #3=\z@ F\else E\fi}\hss}%
\ifdim \wd\@ne < \dimen@
\fontsize{\tf@size}{\skip@}\selectfont
\global \setbox\@ne = \hbox {%
\hss\symbol{"5\ifnum #3=\z@ F\else E\fi}\hss}%
\fi
\fi
$%
\fi
\ifdim \wd\@ne < \dimen@
\relsize{+1}%
\fi
\global \dimen@i = \fontdimen5\the\font
}%
\endgroup
\ifnum #3 = \z@
\dimen@ii = 1.067\ht\z@
\global \divide \dimen@i by \tw@
\global \advance \dimen@i by -\ht\@ne
\advance \dimen@ii by .6\dimen@i
\else
\dimen@ii = -1.05\ht\@ne
\advance \dimen@ii by -.75pt
\ifdim \dp\z@ > \z@
\advance \dimen@ii by -\dp\z@
\fi
\fi
\copy\z@
\dimen@ = \wd\z@
\advance \dimen@ by \wd\@ne
\kern -.5\dimen@
\raisebox {\dimen@ii}[\z@][\z@]{\copy\@ne}%
\dimen@ = \wd\z@
\advance \dimen@ by -\wd\@ne
\dimen@ = .5\dimen@
\kern \dimen@
}%
}
%% \Finale
\endinput
%%
%% End of file `arcs.sty'.
|