summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/engtlc/engtlc.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/engtlc/engtlc.sty')
-rw-r--r--Master/texmf-dist/tex/latex/engtlc/engtlc.sty185
1 files changed, 134 insertions, 51 deletions
diff --git a/Master/texmf-dist/tex/latex/engtlc/engtlc.sty b/Master/texmf-dist/tex/latex/engtlc/engtlc.sty
index 389709ad1c9..5b2f9eb893d 100644
--- a/Master/texmf-dist/tex/latex/engtlc/engtlc.sty
+++ b/Master/texmf-dist/tex/latex/engtlc/engtlc.sty
@@ -5,15 +5,22 @@
% E' in particolar modo indicato per gli studenti iscritti in facoltà di
% Ingegneria delle Telecomunicazioni.
%
-% Si ringrazia per i suggerimenti sui simboli da usare Alessio Sanna e
-% per i preziosi consigli pratici di programmazione Enrico Gregorio.
+% Si ringrazia per i suggerimenti sui simboli da usare Alessio Sanna,
+% per i preziosi consigli pratici di programmazione Enrico Gregorio e,
+% in particolar modo, Claudio Beccari, per aver reso simboli ed unità
+% di misura conformi agli standard ISO e ai numerosi suggerimenti.
%
-% Copyright 2009 Claudio Fiandrino
+% Copyright 2009-2012 Claudio Fiandrino
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{engtlc}[2010/02/12 LaTeX package for telecommunications engineering version 2.0]
+\ProvidesPackage{engtlc}[2012/02/12 LaTeX package for telecommunications engineering version 3.0]
+
+\@ifpackageloaded{amsmath}{}{\PackageError{engtlc}{Package amsmath is currently not loaded}{}}
+\@ifpackageloaded{amssymb}{}{\PackageError{engtlc}{Package amssymb is currently not loaded}{}}
+\@ifpackageloaded{textcomp}{}{\PackageWarning{engtlc}{Package texcomp should be loaded%
+ \MessageBreak in advance; missing this package some commands may \MessageBreak behave poorly}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
@@ -22,6 +29,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand{\unit}[1]{\ensuremath{\,\mathrm{#1}}}
+\newcommand*{\micro}{\expandafter\ifx\csname muup\endcsname\relax
+\text{\textmu}\else\muup\fi} % prefisso micro
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% tempo
@@ -29,13 +38,13 @@
\newcommand{\ho}{\unit{h}}
\newcommand{\s}{\unit{s}}
\newcommand{\ms}{\unit{ms}}
-\newcommand{\us}{\unit{\mu s}}
+\newcommand{\us}{\unit{\micro s}}
\newcommand{\ns}{\unit{ns}}
\newcommand{\ps}{\unit{ps}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% metri
%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\um}{\unit{\mu m}}
+\newcommand{\um}{\unit{\micro m}}
\newcommand{\mm}{\unit{mm}}
\newcommand{\cm}{\unit{cm}}
\newcommand{\dm}{\unit{dm}}
@@ -48,7 +57,8 @@
\newcommand{\kA}{\unit{kA}}
\newcommand{\A}{\unit{A}}
\newcommand{\mA}{\unit{mA}}
-\newcommand{\uA}{\unit{\mu A}}
+\newcommand{\uA}{\unit{\micro A}}
+\newcommand{\nA}{\unit{nA}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% tensione
%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -56,7 +66,7 @@
\newcommand{\kV}{\unit{kV }}
\newcommand{\V}{\unit{V}}
\newcommand{\mV}{\unit{mV}}
-\newcommand{\uV}{\unit{\mu V}}
+\newcommand{\uV}{\unit{\micro V}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% resistenza
%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -67,6 +77,9 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% conduttanza
%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\pSi}{\unit{pS}}
+\newcommand{\nSi}{\unit{nS}}
+\newcommand{\uSi}{\unit{\micro S}}
\newcommand{\mSi}{\unit{mS}}
\newcommand{\Si}{\unit{S}}
\newcommand{\kSi}{\unit{kS}}
@@ -74,10 +87,10 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% capacità
%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\fFa}{\unit{fF}}
+\newcommand{\fFa}{\unit{f\/F}}
\newcommand{\pFa}{\unit{pF}}
\newcommand{\nFa}{\unit{nF}}
-\newcommand{\uFa}{\unit{\mu F}}
+\newcommand{\uFa}{\unit{\micro F}}
\newcommand{\mFa}{\unit{mF}}
\newcommand{\Fa}{\unit{F}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -86,7 +99,7 @@
\newcommand{\fHe}{\unit{fH}}
\newcommand{\pHe}{\unit{pH}}
\newcommand{\nHe}{\unit{nH}}
-\newcommand{\uHe}{\unit{\mu H}}
+\newcommand{\uHe}{\unit{\micro H}}
\newcommand{\mHe}{\unit{mH}}
\newcommand{\He}{\unit{H}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -97,7 +110,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% potenza
%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\uW}{\unit{\mu W}}
+\newcommand{\uW}{\unit{\micro W}}
\newcommand{\mW}{\unit{mW}}
\newcommand{\W}{\unit{W}}
\newcommand{\kW}{\unit{kW}}
@@ -114,21 +127,25 @@
% bit e chip
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\bit}{\unit{bit}}
-\newcommand{\kbit}{\unit{kbit}}
-\newcommand{\Mbit}{\unit{Mbit}}
-\newcommand{\Byte}{\unit{Byte}}
-\newcommand{\kByte}{\unit{kByte}}
-\newcommand{\MByte}{\unit{MByte}}
+\newcommand{\kbit}{\unit{Kib}}
+\newcommand{\Mbit}{\unit{Mib}}
+\newcommand{\Byte}{\unit{B}}
+\newcommand{\kByte}{\unit{KiB}}
+\newcommand{\MByte}{\unit{Mib}}
+\newcommand*{\GByte}{\unit{GiB}}
+\newcommand*{\TByte}{\unit{TiB}}
\newcommand{\bits}{\unit{bit/s}}
-\newcommand{\kbits}{\unit{kbit/s}}
-\newcommand{\Mbits}{\unit{Mbit/s}}
-\newcommand{\Bytes}{\unit{Byte/s}}
-\newcommand{\kBytes}{\unit{kByte/s}}
-\newcommand{\MBytes}{\unit{MByte/s}}
-\newcommand{\chips}{\unit{chip/s}}
-\newcommand{\kchips}{\unit{kchip/s}}
-\newcommand{\Mchips}{\unit{Mchip/s}}
-\newcommand{\chipsubit}{\unit{chip/bit}}
+\newcommand{\kbits}{\unit{Kib/s}}
+\newcommand{\Mbits}{\unit{Mib/s}}
+\newcommand{\Bytes}{\unit{B/s}}
+\newcommand{\kBytes}{\unit{KiB/s}}
+\newcommand{\MBytes}{\unit{MiB/s}}
+\newcommand*{\GBytes}{\unit{GiB/s}}
+\newcommand*{\TBytes}{\unit{TiB/s}}
+\newcommand*{\chips}{\unit{chip/s}}
+\newcommand*{\kchips}{\unit{Ki\mkern2mu chip/s}}
+\newcommand*{\Mchips}{\unit{Mi\mkern2mu chip/s}}
+\newcommand*{\chipsubit}{\unit{chip/bit}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
@@ -136,10 +153,11 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\finees}{\par\nobreak\makebox[\linewidth][r]{$\blacksquare$}} % fine esercizio
-\newcommand{\frecciadex}[1]{\hspace{#1cm } \Longrightarrow \hspace{#1cm }} % freccia di implicazione verso destra
-\newcommand{\frecciadown}{\begin{center}\LARGE\ensuremath{\Downarrow}\end{center}} % freccia di implicazione verso il basso
-\newcommand{\varianzarumore}{\ensuremath{\frac{N_0}{2}}} % varianza del rumore bianco
+\newcommand{\finees}{\par\nobreak\makebox[\linewidth][r]{$\blacksquare$}} % fine esercizio
+\newlength{\Implspace} \Implspace=0.5cm
+\newcommand{\frecciadex}[1][0.5]{\hspace{#1\Implspace}\Longrightarrow \hspace{#1\Implspace}} % freccia di implicazione verso destra
+\newcommand{\frecciadown}{\begin{center}\LARGE\ensuremath{\Downarrow}\end{center}} % freccia di implicazione verso il basso
+\newcommand{\varianzarumore}{\ensuremath{\frac{N_0}{2}}} % varianza del rumore bianco
\newcommand{\et@symbolbracearg}[2]{%
\ensuremath{#1\mathopen{}\left\lbrace#2\right\rbrace\mathclose{}}}
@@ -148,7 +166,6 @@
\newcommand{\invfourier}[1]{\et@symbolbracearg{\mathcal{F}^{-1}}{#1}} % trasformata di Fourier inversa di 1: \invfourier[x(t)]
\newcommand{\partereale}[1]{\et@symbolbracearg{\textbf{Re}}{#1}} % parte reale di 1: \partereale[\tilde{x}(t)]
\newcommand{\parteimm}[1]{\et@symbolbracearg{\textbf{Im}}{#1}} % parte immaginaria di 1: \parteimm[\dot{x}(t)]
-\newcommand{\prob}[1]{\ensuremath{\mathcal{P}\left(#1\right)}} % probabilità dell'argomento 1
\newcommand{\Info}[1]{\ensuremath{I\left(#1\right)}} % quantità di informazione dell'argomento 1
\newcommand{\versore}[1]{\ensuremath{\hat{#1}}} % versore di 1
\newcommand{\vettore}[1]{\ensuremath{\overrightarrow{#1}}} % vettore di 1
@@ -158,14 +175,18 @@
\newcommand{\moduloexp}[2]{\ensuremath{\left\vert#1\right\vert^{#2}}} % modulo di 1 con esponente 2: \moduloexp{x_1}{3}
\newcommand{\modulo}[1]{\ensuremath{\left\vert#1\right\vert}} % modulo di 1: \modulo[x_1]
\newcommand{\indB}[1]{%
- \ensuremath{\mathopen{}\left.#1\right\vert_{\mathrm{dB}}\mathclose{}}} % 1 espresso in dB, da usare in scrittura matematica: $\[ \indB
+ \ensuremath{\mathopen{}\left.#1\right\vert_{\mathrm{dB}}\mathclose{}}} % 1 espresso in dB, da usare in scrittura matematica: $\indB$
+\newcommand{\for}[2]{\ensuremath{\left. #1 \right\vert_{#2}}} % 1 calcolato per 2
\newcommand{\massimo}[1]{\et@symbolbracearg{\max}{#1}} % massimo di 1: \massimo[\dot{x}(t)]
\newcommand{\minimo}[1]{\et@symbolbracearg{\min}{#1}} % minimo di 1: \minimo[\dot{x}(t)]
\newcommand{\valc}{3\cdot 10^8} % velocità della luce
\newcommand{\loga}[2]{\ensuremath{\log_{#1}#2}} % logaritmo di base 1 e argomento 2
\newcommand{\analitic}[1]{\ensuremath{\mathring{#1}}} % segnale analitico di 1 oppure sorgente di campo
+\newcommand*{\diff}{\mathop{}\mathopen{\mathrm{d}}} % simbolo differenziale
\newcommand{\intinf}[1]{\ensuremath{\int_{-\infty}^{+\infty}{#1}}} % integrale definito su tutto l'asse di 1
\newcommand{\deltain}[1]{\ensuremath{\delta\left(#1\right)}} % delta nel punto 1
+\newcommand*{\iu}{\ensuremath{\mathrm{j}}} % unità immaginaria j; esempio: $\iu 2 \pi f$
+\newcommand{\ex}[1]{\ensuremath{\rm{e}^{#1}}} % esponenziale
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% gamma
@@ -190,36 +211,98 @@
% potenza
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\potin}[1]{\ensuremath{P_{#1}}} % potenza nel punto 1
-\newcommand{\potdisp}{\ensuremath{P_{\mathrm{disp}}}} % potenza disponibile
-\newcommand{\potalim}{\ensuremath{P_{\mathrm{alim}}}} % potenza alimentazione
-\newcommand{\potirr}{\ensuremath{P_{\mathrm{irr}}}} % potenza irradiazione
-\newcommand{\potdiss}{\ensuremath{P_{\mathrm{diss}}}} % potenza dissipata
-\newcommand{\potinc}{\ensuremath{P_{\mathrm{inc}}}} % potenza incidente
+\newcommand{\potin}[1]{\ensuremath{P_{\mathrm{#1}}}} % potenza nel punto 1
+\newcommand{\potdisp}[1][]{\ensuremath{P_{\mathrm{disp}}^{#1}}} % potenza disponibile
+\newcommand{\potalim}[1][]{\ensuremath{P_{\mathrm{alim}}^{#1}}} % potenza alimentazione (per un sistema)
+\newcommand{\potirr}[1][]{\ensuremath{P_{\mathrm{irr}}^{#1}}} % potenza irradiazione
+\newcommand{\potdiss}[1][]{\ensuremath{P_{\mathrm{diss}}^{#1}}} % potenza dissipata
+\newcommand{\potinc}[1][]{\ensuremath{P_{\mathrm{inc}}^{#1}}} % potenza incidente
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% impedenze e ammettenze
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\z}[1]{\ensuremath{\mathrm{Z}_{#1}}} % impedenza nel punto 1
-\newcommand{\znorm}[1]{\ensuremath{\zeta_{#1}}} % impedenza normalizzata nel punto 1
-\newcommand{\y}[1]{\ensuremath{\mathrm{Y}_{#1}}} % ammettenza nel punto 1
-\newcommand{\ynorm}[1]{\ensuremath{\mathrm{y}_{#1}}} % ammettenza normalizzata nel punto 1
-\newcommand{\zinf}{\ensuremath{\mathrm{Z}_{\infty}}} % impedenza caratteristica generica
-\newcommand{\zinfn}[1]{\ensuremath{\mathrm{Z}_{\infty #1}}} % impedenza caratteristica numerata con 1
-\newcommand{\yinf}{\ensuremath{\mathrm{Y}_{\infty}}} % ammettenza caratteristica generica
-\newcommand{\yinfn}[1]{\ensuremath{\mathrm{Y}_{\infty #1}}} % ammettenza caratteristica numerata con 1
-\newcommand{\zvt}{\ensuremath{\mathrm{Z}_0}} % impedenza carattereristica del vuoto
-\newcommand{\yvt}{\ensuremath{\mathrm{Y}_0}} % ammettenza carattereristica del vuoto
-
+\newcommand{\z}[1]{\ensuremath{Z_{\mathrm{#1}}}} % impedenza nel punto 1
+\newcommand{\znorm}[1]{\ensuremath{z_{\mathrm{#1}}}} % impedenza normalizzata nel punto 1
+\newcommand{\y}[1]{\ensuremath{Y_{\mathrm{#1}}}} % ammettenza nel punto 1
+\newcommand{\ynorm}[1]{\ensuremath{y_{\mathrm{#1}}}} % ammettenza normalizzata nel punto 1
+\newcommand{\zinf}[1][]{\ensuremath{Z_{\infty#1}}} % impedenza caratteristica generica
+\newcommand{\zinfn}[1]{\zinf[#1]} % impedenza caratteristica numerata con 1
+\newcommand{\yinf}[1][]{\ensuremath{Y_{\infty#1}}} % ammettenza caratteristica generica
+\newcommand{\yinfn}[1]{\yinf[#1]} % ammettenza caratteristica numerata con 1
+\newcommand{\zvt}{\ensuremath{Z_0}} % impedenza carattereristica del vuoto
+\newcommand{\yvt}{\ensuremath{Y_0}} % ammettenza carattereristica del vuoto
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% campo elettrico e magnetico
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\campoe}{\ensuremath{\underline{\mathcal{E}}(\underline{r},t)}} % campo elettrico in funzione di r e t
-\newcommand{\campoefas}{\ensuremath{\underline{\mathrm{E}}(\underline{r})}} % fasore del campo elettrico in funzione di r
+\newcommand{\campoefas}{\ensuremath{\underline{E}(\underline{r})}} % fasore del campo elettrico in funzione di r
\newcommand{\campoh}{\ensuremath{\underline{\mathcal{H}}(\underline{r},t)}} % campo magnetico in funzione di r e t
-\newcommand{\campohfas}{\ensuremath{\underline{\mathrm{H}}(\underline{r})}} % fasore del campo magnetico in funzione di r
+\newcommand{\campohfas}{\ensuremath{\underline{H}(\underline{r})}} % fasore del campo magnetico in funzione di r
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% segnali
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\newcommand*{\signt}[1]{\ensuremath{\MakeLowercase{#1}(t)}} % dominio tempo
+\newcommand*{\signf}[1]{\ensuremath{\MakeUppercase{#1}(f)}} % dominio frequenze
+\newcommand*{\signn}[1]{\ensuremath{\MakeLowercase{#1}(n)}} % sequenze a tempo discreto
+\newcommand*{\signz}[1]{\ensuremath{\MakeUppercase{#1}(z)}} % dominio trasformata Z
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% probabilità
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\newcommand{\prob}[1]{\ensuremath{\mathcal{P}\left(#1\right)}} % probabilità dell'argomento 1
+\newcommand*{\valatt}[1]{\ensuremath{\mathbb{E}\left[#1\right]}} % valore atteso dell'argomento 1
+\newcommand*{\var}[1]{\ensuremath{\mathrm{Var}\left[#1\right]}} % varianza dell'argomento 1
+\newcommand*{\comma}{\,,\,} % simbolo probabilità congiunta; uso: \prob{X \virgola Y}
+\newcommand*{\dato}{\ensuremath{\,|\,}} % simbolo probabilità condizionata; uso: \prob{X \dato Y}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% English Alias
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\let\bfRe\partereale
+\let\bfIm\parteimm
+\let\noisevar\varianzarumore
+\let\exerend\finees
+\let\Spimplies\frecciadex
+\let\Downimplies\frecciadown
+\let\unitvec\versore
+\let\vector\vettore
+\let\cosine\coseno
+\let\sine\seno
+\let\energy\energia
+\let\Abs\modulo
+\let\AbsPow\moduloexp
+\let\Max\massimo
+\let\Min\minimo
+\let\clight\valc
+\let\Log\loga
+\let\analytic\analitic
+\let\infint\intinf
+\let\deltaimp\deltain
+\let\Vgamma\gammatens
+\let\Cgamma\gammacorr
+\let\Vgammain\gammatensin
+\let\Cgammain\gammacorrin
+\let\Kgamma\gammak
+\let\powerin\potin
+\let\availpow\potdisp
+\let\irrpow\potirr
+\let\disspow\potdiss
+\let\incpow\potinc
+\let\genpow\potalim
+\renewcommand{\genpow}[1][]{\ensuremath{P_{\mathrm{gen}}^{#1}}}
+\let\Efield\campoe
+\let\Hfield\campoh
+\let\phasorEfield\campoefas
+\let\phasorHfiled\campohfas
+\let\given\dato
+\let\expval\valatt
+\let\rmexp\ex
\endinput