summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/multimediasymbols.sty
blob: a7f8a7e1d7553b4361fc36a83c18e393a8c18eeb (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
% Copyright 2003--2007 by Till Tantau
% Copyright 2010 by Vedran Mileti\'c
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.

\ProvidesPackage{multimediasymbols}[2004/04/10 ver 0.01]
\NeedsTeXFormat{LaTeX2e}[1995/12/01]

\RequirePackage{keyval}
\RequirePackage{pgf}

\define@key{multimediasym}{fill}[]{\def\mm@action{\pgfusepath{fill,stroke}}}

\newcommand\speakersymbol[1][]{%
  \def\mm@action{}%
  \setkeys{multimediasym}{#1}%
  \begin{pgfpicture}{-.1ex}{0pt}{2.1ex}{1.5ex}
    \pgfsetroundjoin
    \pgfsetroundcap
    \pgfpathmoveto{\pgfpoint{0cm}{.5ex}}
    \pgfpathlineto{\pgfpoint{.5ex}{.5ex}}
    \pgfpathlineto{\pgfpoint{ex}{0pt}}
    \pgfpathlineto{\pgfpoint{ex}{1.5ex}}
    \pgfpathlineto{\pgfpoint{.5ex}{ex}}
    \pgfpathlineto{\pgfpoint{0pt}{ex}}
    \pgfpathclose
    \mm@action
    \pgfpathmoveto{\pgfpoint{1.25ex}{.5ex}}
    \pgfpathcurveto{\pgfpoint{1.4ex}{.6ex}}{\pgfpoint{1.4ex}{.9ex}}{\pgfpoint{1.25ex}{1ex}}
    \pgfpathmoveto{\pgfpoint{1.5ex}{.25ex}}
    \pgfpathcurveto{\pgfpoint{1.7ex}{.5ex}}{\pgfpoint{1.7ex}{1ex}}{\pgfpoint{1.5ex}{1.25ex}}
    \pgfpathmoveto{\pgfpoint{1.75ex}{0pt}}
    \pgfpathcurveto{\pgfpoint{2ex}{.25ex}}{\pgfpoint{2ex}{1.25ex}}{\pgfpoint{1.75ex}{1.5ex}}
    \pgfusepath{stroke}
  \end{pgfpicture}}