Debian Codegraph @

texmf-dist/doc/latex/emf/emf.tex

raw
1 % This file is part of emf.
2
3 % emf is free software: you can redistribute it and/or modify it under
4 % the terms of the GNU General Public License as published by the Free
5 % Software Foundation, either version 3 of the License, or (at your
6 % option) any later version.
7
8 % emf is distributed in the hope that it will be useful, but WITHOUT
9 % ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 % or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11 % License for more details.
12
13 % You should have received a copy of the GNU General Public License
14 % along with emf. If not, see <http://www.gnu.org/licenses/>.
15 \documentclass[11pt,a4paper,british]{scrartcl}
16 \usepackage[T1]{fontenc} %
17 \usepackage[utf8]{inputenc} %
18 \usepackage{babel} %
19 \usepackage{emf}
20 \usepackage{listings}
21 \title{The \texttt{emf} package}
22 \author{Palle Jørgensen\thanks{\texttt{[email protected]}}}
23 \setkomafont{descriptionlabel}{\bfseries}
24
25 %% Setting up for displaying the various symbols
26 \makeatletter
27 %% Calligra
28 \DeclareFontFamily{T1}{calligra}{}%
29 \DeclareFontShape{T1}{calligra}{m}{n}{<->s*[1.07]callig15}{}%
30 \DeclareMathAlphabet{\mathemfcalligra}{T1}{calligra}{m}{n}%
31 \def\emfcalligra{\mathemfcalligra{\mkern-7muE\mkern4mu}}%
32 %% Chorus
33 \def\qzc@scale{1.22}%
34 \DeclareMathAlphabet{\mathemfchorus}{OT1}{qzc}{m}{n}%
35 \def\emfchorus{\mathemfchorus{E}}
36 %% Fourier
37 \DeclareFontEncoding{FMS}{}{}%
38 \DeclareFontSubstitution{FMS}{futm}{m}{n}%
39 \DeclareMathAlphabet{\mathemffourier}{FMS}{futm}{m}{n}%
40 \def\emffourier{\mathemffourier{E}}%
41 %% French Cursive
42 \DeclareMathAlphabet{\mathemffrcursive}{T1}{frc}{m}{sl}%
43 \def\emffrcursive{\mathemffrcursive{E}}%
44 %% Miama Nueva
45 \def\fmm@scale{0.85}%
46 \DeclareMathAlphabet{\mathemfmiama}{OT1}{fmm}{m}{n}%
47 \def\emfmiama{\mathemfmiama{E}}
48 %% RSFS
49 \DeclareMathAlphabet{\mathemfrsfs}{OMS}{rsfs}{m}{n}%
50 \def\emfrsfs{\mathemfrsfs{E}}%
51 \makeatother
52
53
54 \begin{document}
55 \maketitle
56
57 \section{Introduktion}
58 \label{sec:introduktion}
59
60 This package provides \LaTeX\ support for the symbol for the EMF
61 ($\emf$) in electric circuits and electrodynamics. It provides support
62 for multiple symbols but does not provide any fonts. The fonts
63 themselves must be aquired otherwise. However the fonts are part of a
64 normal \TeX Live installation.
65
66 \section{Usage}
67 \label{sec:usage}
68
69 \subsection{Loading the package}
70 \label{sec:loading-package}
71 \begin{lstlisting}
72 \usepackage{emf}
73 \end{lstlisting}
74
75 \subsection{Options}
76 \label{sec:options}
77 \begin{description}
78 \item[scale=$\langle num\rangle$] Set a scale factor for the font. As
79 this package as much as possible relies on existing font support the
80 `scale' option only applies to some of the fonts. Some of the fonts
81 are scaled as default. Thus the `scale' option changes this as the
82 scale factors are not multiplied.
83
84 \item[boondox] Use the calligraphical E from the STIX fonts: $\emf$.
85 This is the default of the package. It is possible to scale this
86 symbol. The default scale is 1.1.
87
88 \item[calligra] Use the calligraphical E from the Calligra font:
89 $\emfcalligra$. It is possible to scale this
90 symbol. The default scale is 1.07.
91
92 \item[chorus] Use the calligraphical E from the \TeX\ Gyre Chorus
93 font (Chancery): $\emfchorus$. It is
94 possible to scale this symbol. The default scale is 1.22.
95
96 \item[cmr] Use the calligraphical E from Computer Modern: $\mathcal{E}$.
97
98 \item[fourier] Use the calligraphical E from the fourier fonts
99 (Utopia like): $\emffourier$.
100
101 \item[frcursive] Use the E from the French Cursive font: $\emffrcursive$.
102
103 \item[miama] Use the E from the Miama Nueva font: $\emfmiama$. It is
104 possible to scale this symbol. The default scale is 0.85.
105
106 \item[rsfs] Use the E from \textsl{Ralph Smiths Formal Script:} $\emfrsfs$.
107
108 \item[cal] Use the default calligraphical E of the document. In this
109 document from Computer Modern: $\mathcal{E}$. This option depends on
110 the math fonts loaded by the user.
111
112 \item[u0] Use the notation $U_0$ as a symbol for EMF.
113
114 \item[U0] The same as otion `u0'.
115
116 \item[text=$\langle \mathit{text}\rangle$] Use $\mathit{text}$ as
117 symbol. The default is $\mathit{EMF}$.
118 \end{description}
119
120 \subsection{Command}
121 \label{sec:command}
122
123 To access the selected symbol just type \lstinline|\emf| in your
124 document. \lstinline|\emf| only applies to math mode.
125
126 \section{License}
127 \label{sec:license}
128
129 This file is part of emf.
130
131 emf is free software: you can redistribute it and/or modify it under
132 the terms of the GNU General Public License as published by the Free
133 Software Foundation, either version 3 of the License, or (at your
134 option) any later version.
135
136 emf is distributed in the hope that it will be useful, but WITHOUT ANY
137 WARRANTY; without even the implied warranty of MERCHANTABILITY or
138 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
139 for more details.
140
141 You should have received a copy of the GNU General Public License
142 along with emf. If not, see <http://www.gnu.org/licenses/>.
143 \end{document}
144
145 %%% Local Variables:
146 %%% mode: latex
147 %%% TeX-master: t
148 %%% End: