summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/engtlc/engtlc.tex
blob: 72eda9395b1a463c00f7cf3b9d16a06f58d5e677 (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
\documentclass[12pt,a4paper,openany]{book}
\usepackage{amsmath, amssymb, amscd}
\usepackage{tabularx}
\usepackage{fancyhdr} 
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{pstricks,pstricks-add}
\usepackage[utf8x]{inputenc}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{colortbl}
\usepackage{xcolor}
\usepackage{listings}
\lstset{language=[LaTeX]TeX,%
        basicstyle=\footnotesize\ttfamily}
\usepackage{engtlc}
\usepackage{fiandracolors}
\usepackage[italian]{babel}
\usepackage[pdfpagelabels,plainpages=false,colorlinks=true,hyperindex=true]{hyperref}
\begin{document}
\pagenumbering{Roman}
\begin{titlepage}
\title{\begin{huge}\textbf{Il pacchetto engtlc}\end{huge}\\ \vspace{.5cm}
       \begin{large}Versione 2.0\end{large}}
\author{\begin{LARGE} Fiandrino Claudio\end{LARGE}}
\maketitle
\end{titlepage}
\hypersetup{urlcolor=royalblue}
\hypersetup{linkcolor=royalviolet}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
 \markboth{\MakeUppercase{%
 \chaptername}\ \thechapter.%
 \ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\fancyhead[RO,LE]{\thepage}
\fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark}
\fancyfoot{}
\tableofcontents
\newpage
\mainmatter
\chapter{Introduzione}
Questo pacchetto è stato creato in quattro fasi diverse: la prima in cui sono stati raggruppati i comandi fondamentali come unità di misura e simboli generali in data 7/12/2009, la seconda in cui sono stati aggiunte le ultime unità di misura e simboli nuovi come impedenze e ammettenze.
La terza edizione, a cui ha collaborato con suggerimenti molto preziosi Alessio Sanna, ha inserito le unità in Byte e le diciture di campo elettrico e magnetico. Ultimata in data 18/12/2009 è stata pubblicata in data 13/01/2010. 

Questa edizione era costellata di piccoli e grandi errori dovuti alla mia inesperienza. Ringrazio Enrico Gregorio che mi ha cortesemente inviato un elenco delle modifiche da apportare per rendere migliore il pacchetto. Corretti gli errori ho aggiunto comandi non presenti nella versione precedente come il simbolo di segnale analitico, di integrale, delta, i simboli $\lambda$ e di potenza. 

Le finalità per cui è creato sono molto semplici: serve a tutti coloro che lavorano, studiano in ambienti riguardanti materie elettroniche e di telecomunicazioni; infatti engtlc è l'abbreviazione delle parole  \emph{Engineering Telecommunications}. In che cosa aiuta?

Aiuta a velocizzare la scrittura in ambiente \LaTeX; per esperienza personale ho avuto modo di notare quanto poco comodo possa essere il codice in casi in cui si debba ripetere molte volte alcune espressioni e magari occorra cambiare di poco rispetto a prima il codice.

Se si deve indicare l'espressione della probabilità della variabile $x$ il codice da scrivere risulta essere:
\begin{tabbing}
\hspace{5cm}\=\kill
\begin{lstlisting}
$\mathcal{P}(x)$
\end{lstlisting} \hspace{2cm} \> \hspace{2cm}  $\mathcal{P}(x)$
\end{tabbing} 
Nel caso in cui qualche riga successiva si deve indicare invece la probabilità dell'evento A occorrerebbe nuovamente digitare:
\begin{tabbing}
\hspace{5cm}\=\kill
\begin{lstlisting}
$\mathcal{P}(\text{A})$
\end{lstlisting} \hspace{2cm} \> \hspace{2cm}  $\mathcal{P}(\text{A})$
\end{tabbing} 
oppure copiare il codice precedente e cambiare solo l'argomento.

Grazie al pacchetto engtlc invece è sufficiente digitare:
\begin{lstlisting}
$\prob{1}$
\end{lstlisting}
dove \texttt{1} è l'argomento da inserire, come $x$ oppure A.

Le novità introdotte non si fermano certo qui e verranno illustrate più dettagliatamente in seguito, nel capitolo \ref{chap: comandi}.
\chapter{Come installare engtlc}
Potete reperire il pacchetto dal sito \href{http://claudiofiandrino.altervista.org}{http://claudiofiandrino.altervista.org} nella sezione works oppure sul sito ufficiale \\ \href{http://tug.ctan.org/tex-archive/macros/latex/contrib/engtlc}{http://tug.ctan.org/tex-archive/macros/latex/contrib/engtlc}.
\section*{Da Linux}
Una volta scaricato il pacchetto \emph{.zip} per chi usa una qualsiasi distribuzione Linux occorre copiare, con i privilegi necessari di superuser, tale pacchetto nella seguente directory:
\begin{center}
\texttt{/usr/share/texmf/tex/latex}
\end{center}
Se avete scaricato sul desktop il pacchetto, con il comando:
\begin{center}
\texttt{cd /home/\emph{nome utente}/Scrivania}
\end{center}
vi portate sulla directory del desktop. Successivamente copiate l'archivio con il comando:
\begin{center}
\texttt{cp engtlc.zip /usr/share/texmf/tex/latex/}
\end{center}
Fatto questo dovete scompattare l'archivio e aprire il terminale di comando; spostatevi nella directory sempre con i privilegi di root in questo modo:
\begin{center}
\texttt{cd /usr/share/texmf/tex/latex}
\end{center}
A questo punto vi basta digitare:
\begin{center}
\texttt{texhash}
\end{center}
per far sì che il compilatore \emph{veda} il nuovo pacchetto che volete installare.

Questo processo è una procedura valida in linea generale: qualsiasi sia la classe o i pacchetti che volete installare in aggiunta al compilatore con questo metodo ci riuscirete.
\section*{Da Windows}
Se usate Windows come sistema operativo e avete installato MiK\TeX:
\begin{itemize}
\item[.] aprite la directory \emph{C}: $>$ \emph{Program Files} $>$ \emph{MiK\TeX 2.8} $>$ \emph{tex} $>$ \emph{latex};
\item[.] copiate il file engtlc.zip e scompattelo nella directory;
\item[.] aprite \emph{Start}, cercate \emph{MiK\TeX 2.8}$>$ \emph{Maintenance (Admin)}$>$ \emph{Settings};
\item[.] una volta aperta vi comparirà una finestra: cliccate su \emph{Refresh FNDB} e così avrete aggiornato il database contenente i pacchetti. 
\end{itemize}
\bigskip
A questo punto siete pronti per usare engtlc!
\chapter{I comandi introdotti da engtlc}\label{chap: comandi}
Esaminiamo ora quali sono le potenzialità di engtlc.

Si tratteranno inizialmente le unità di misura per passare poi a simboli generali.
\section{Unità di misura}
Per quanto mi riguarda ho sempre trovato un'enorme perdita di tempo scrivere tutte le volte il codice per l'inserimento delle unità di misura; infatti non è breve e, nel caso in cui nel vostro documento siete costretti a riportare continuamente unità diverse diventa molto fastidioso.

Ecco un esempio di codice se dovete esprimere l'unità \kbits:
\begin{tabbing}
\hspace{4cm}\= \kill
\begin{lstlisting}
\unit{kbit/s}
\end{lstlisting}  \> \kbits
\end{tabbing} 
Ho pensato quindi di creare con un codice più corto per le unità più utilizzate: di seguito troverete le tabelle raggruppate per tipi di unità di misura.

Occorre precisare che è preferibile usare le unità di misura in scrittura matematica, ovvero fra \lstinline!$ $! oppure fra \lstinline!\[ \]! o negli ambienti equation.

Funzionano anche in modalità testuale se non sono contenuti all'interno del codice termini come \lstinline!\ohm! oppure \lstinline!\mu!. Inoltre se fosse necessario inserire una parola dopo l'unità riportata si osserverebbe questo spiacevole effetto:
\begin{tabbing}
\hspace{4cm}\= \kill
\begin{lstlisting}
8 \cm e
\end{lstlisting}  \> 8 \cm e
\end{tabbing} 
Quindi l'uso principale, quando si compone un testo, rimane sempre quello in scrittura matematica.
\subsubsection{Misure di tempo}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
ore & \begin{lstlisting}
 $\ho$
\end{lstlisting} & \ho \\
secondi & \begin{lstlisting}
 $\s$
\end{lstlisting} & \s \\
millisecondi & \begin{lstlisting}
 $\ms$
\end{lstlisting} & $\ms$ \\
microsecondi & \begin{lstlisting}
 $\us$
\end{lstlisting} & $\us$ \\
nanosecondi & \begin{lstlisting}
 $\ns$
\end{lstlisting} & $\ns$\\
picosecondi & \begin{lstlisting}
 $\ps$
\end{lstlisting} & $\ps$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di lunghezza}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
micrometri & \begin{lstlisting}
 $\um$
\end{lstlisting} & $\um$ \\
millimetri & \begin{lstlisting}
 $\mm$
\end{lstlisting} & $\mm$ \\
centimetri & \begin{lstlisting}
 $\cm$
\end{lstlisting} & $\cm$ \\
decimetri & \begin{lstlisting}
 $\dm$
\end{lstlisting} & $\dm$\\
metri & \begin{lstlisting}
 $\m$
\end{lstlisting} & $\m$\\
kilometri & \begin{lstlisting}
 $\km$
\end{lstlisting} & $\km$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di corrente}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
microampere & \begin{lstlisting}
 $\uA$
\end{lstlisting} & $\uA$ \\
milliampere & \begin{lstlisting}
 $\mA$
\end{lstlisting} & $\mA$ \\
ampere & \begin{lstlisting}
 $\A$
\end{lstlisting} & $\A$ \\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di tensione}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
microvolt & \begin{lstlisting}
 $\uV$
\end{lstlisting} & $\uV$ \\
millivolt & \begin{lstlisting}
 $\mV$
\end{lstlisting} & $\mV$ \\
volt & \begin{lstlisting}
 $\V$
\end{lstlisting} & $\V$\\
megavolt & \begin{lstlisting}
 $\MV$
\end{lstlisting} & $\MV$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di resistenza}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
milliohm & \begin{lstlisting}
 $\mohm$
\end{lstlisting} & $\mohm$ \\
ohm & \begin{lstlisting}
 $\ohm$
\end{lstlisting} & $\ohm$\\
kilohm & \begin{lstlisting}
 $\kohm$
\end{lstlisting} & $\kohm$\\
megaohm & \begin{lstlisting}
 $\Mohm$
\end{lstlisting} & $\Mohm$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di conduttanza}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
millisiemens & \begin{lstlisting}
 $\mSi$
\end{lstlisting} & $\mSi$ \\
siemens & \begin{lstlisting}
 $\Si$
\end{lstlisting} & $\Si$\\
kilosiemens & \begin{lstlisting}
 $\kSi$
\end{lstlisting} & $\kSi$\\
megasiemens & \begin{lstlisting}
 $\MSi$
\end{lstlisting} & $\MSi$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di capacità} 
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
femtofarad & \begin{lstlisting}
 $\fFa$
\end{lstlisting} & $\fFa$ \\
picofarad & \begin{lstlisting}
 $\pFa$
\end{lstlisting} & $\pFa$\\
nanofarad & \begin{lstlisting}
 $\nFa$
\end{lstlisting} & $\nFa$ \\
microfarad & \begin{lstlisting}
 $\uFa$
\end{lstlisting} & $\uFa$\\
millifarad & \begin{lstlisting}
 $\mFa$
\end{lstlisting} & $\mFa$ \\
farad & \begin{lstlisting}
 $\Fa$
\end{lstlisting} & $\Fa$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di induttanza}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
femtohenry & \begin{lstlisting}
 $\fHe$
\end{lstlisting} & $\fHe$ \\
picohenry & \begin{lstlisting}
 $\pHe$
\end{lstlisting} & $\pHe$\\
nanohenry & \begin{lstlisting}
 $\nHe$
\end{lstlisting} & $\nHe$ \\
microhenry & \begin{lstlisting}
 $\uHe$
\end{lstlisting} & $\uHe$\\
millihenry & \begin{lstlisting}
 $\mHe$
\end{lstlisting} & $\mHe$ \\
henry & \begin{lstlisting}
 $\He$
\end{lstlisting} & $\He$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di in dB}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
dB & \begin{lstlisting}
 $\dB$
\end{lstlisting} & $\dB$ \\
dBm & \begin{lstlisting}
 $\dBm$
\end{lstlisting} & $\dBm$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di potenza}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
microwatt & \begin{lstlisting}
 $\uW$
\end{lstlisting} & $\uW$\\
milliwatt & \begin{lstlisting}
 $\mW$
\end{lstlisting} & $\mW$ \\
watt & \begin{lstlisting}
 $\W$
\end{lstlisting} & $\W$\\
kilowatt & \begin{lstlisting}
 $\kW$
\end{lstlisting} & $\kW$\\
megawatt & \begin{lstlisting}
 $\MW$
\end{lstlisting} & $\MW$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Misure di frequenza}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
hertz & \begin{lstlisting}
 $\Hz$
\end{lstlisting} & $\Hz$\\
kilohertz & \begin{lstlisting}
 $\kHz$
\end{lstlisting} & $\kHz$ \\
megahertz & \begin{lstlisting}
 $\MHz$
\end{lstlisting} & $\MHz$\\
terahertz & \begin{lstlisting}
 $\THz$
\end{lstlisting} & $\THz$\\
\bottomrule
\end{tabular}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Unità per bit e chip}
\begin{center}
\begin{tabular}{ccc}
\toprule
Unità & Codice equivalente & Visualizzazione\\
\midrule
bit & \begin{lstlisting}
 $\bit$
\end{lstlisting} & $\bit$\\
kilobit & \begin{lstlisting}
 $\kbit$
\end{lstlisting} & $\kbit$ \\
megabit & \begin{lstlisting}
 $\Mbit$
\end{lstlisting} & $\Mbit$\\
Byte & \begin{lstlisting}
 $\Byte$
\end{lstlisting} & $\Byte$\\
kiloByte & \begin{lstlisting}
 $\kByte$
\end{lstlisting} & $\kByte$ \\
megaByte & \begin{lstlisting}
 $\MByte$
\end{lstlisting} & $\MByte$\\
bit al secondo & \begin{lstlisting}
 $\bits$
\end{lstlisting} & $\bits$\\
kilobit al secondo & \begin{lstlisting}
 $\kbits$
\end{lstlisting} & $\kbits$ \\
megabit al secondo & \begin{lstlisting}
 $\Mbits$
\end{lstlisting} & $\Mbits$\\
Byte al secondo & \begin{lstlisting}
 $\Bytes$
\end{lstlisting} & $\Bytes$\\
kiloByte al secondo & \begin{lstlisting}
 $\kBytes$
\end{lstlisting} & $\kBytes$ \\
megaByte al secondo & \begin{lstlisting}
 $\MBytes$
\end{lstlisting} & $\MBytes$\\
chip al secondo & \begin{lstlisting}
 $\chips$
\end{lstlisting} & $\chips$\\
kilochip al secondo & \begin{lstlisting}
 $\kchips$
\end{lstlisting} & $\kchips$ \\
megachip al secondo & \begin{lstlisting}
 $\Mchips$
\end{lstlisting} & $\Mchips$\\
chip su bit al secondo & \begin{lstlisting}
 $\chipsubit$
\end{lstlisting} & $\chipsubit$\\
\bottomrule
\end{tabular}
\end{center}
\section{Simboli}
In questa sezione sono riportati una serie di simboli utili nei più svariati campi.\\
A differenza della versione precedente che recava distinzione tra comandi in modalità matematica e in scrittura testuale problema risolto.

Passiamo ad elencare prima i simboli generali.
\subsection{Simboli generali}
\subsubsection*{Comando di fine esercizio}
Comando di fine esercizio: questo comando colloca un quadrato nero allineato sulla destra della pagina.
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 $\finees$
\end{lstlisting} & $\blacksquare$\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando di implicazione verso destra}
Comando di implicazione verso destra: questo comando è molto simile a \lstinline!\implies!, ma crea una spaziatura regolabile dall'argomento. I valori devono essere numeri maggiori di 0.
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 $\frecciadex{1}$
\end{lstlisting} & $\implies$\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando di implicazione verso il basso}
Comando di implicazione verso il basso: crea una freccia che punta verso il basso, a differenza di \lstinline!\frecciadex!, ed ha una grandezza adeguata. 
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 $\frecciadown$
\end{lstlisting} & $\Downarrow$\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Varianza del rumore bianco}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \varianzarumore
\end{lstlisting} & \varianzarumore\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Trasformata di Fourier}
Comando per la trasformata di Fourier del simbolo $x$.
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \fourier{x}
\end{lstlisting} & \fourier{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Trasformata inversa di Fourier}	
Il comando per la trasformata inversa di Fourier opera in maniera analoga al comando precedente.
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \invfourier{x}
\end{lstlisting} & \invfourier{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando parte reale}
Per scrivere la parte reale di un simbolo $x$ si usa:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \partereale{x}
\end{lstlisting} & \partereale{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando parte immaginaria}
Il comando per la parte immaginaria di $x$ è:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \parteimm{x}
\end{lstlisting} & \parteimm{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando probabilità}
Il comando per esprimere la probabilità di un evento A:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \prob{\text{A}}
\end{lstlisting} & \prob{\text{A}}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando quantità di informazione}
Per esprimere la quantità di informazione di un simbolo $x$ il comando da usare è:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \Info{x}
\end{lstlisting} & \Info{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando versore}
Per visualizzare un simbolo $x$ come versore:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\versore{x}
\end{lstlisting} & \versore{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando vettore}
Per esprimere il simbolo $x$ come vettore:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\vettore{x}
\end{lstlisting} & \vettore{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando coseno}
Per esprimere un coseno ad una precisa frequenza, ad esempio $f_0$:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\coseno{f_0}
\end{lstlisting} & \coseno{f_0}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando seno}
Per esprimere invece il seno ad una precisa frequenza $f_0$:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\seno{f_0}
\end{lstlisting} & \seno{f_0}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando energia}
Il comando per esprimere l'energia con pedice a scelta, ad esempio energia media, è:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\energia{m}
\end{lstlisting} & \energia{m}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando modulo}
Il comando per visualizzare un simbolo $x$ in modulo, con delimtatori verticali adattabili, è:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\modulo{x}
\end{lstlisting} & \modulo{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando modulo con esponente}
Per esprimere invece il modulo di un simbolo $x$ con qualsiasi esponente, ad esempio 2, si usa:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\moduloexp{x}{2}
\end{lstlisting} & \moduloexp{x}{2}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando grandezza in dB}
Per esprimere qualche grandezza in decibel creando la barra verticale, ad esempio il rapporto $\dfrac{C}{I}$, esiste il comando:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
$\indB{\dfrac{C}{I}}$
\end{lstlisting} & $\indB{\dfrac{C}{I}}$\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando massimo}
L'espressione del massimo di un simbolo $x$ si introduce con:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\massimo{x}
\end{lstlisting} & \massimo{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando minimo}
Per quanto riguarda il minimo, per analogia:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\minimo{x}
\end{lstlisting} & \minimo{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando grandezza velocità della luce}
Se occorre riportare il valore della velocità della luce è comodo utilizzare:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
$\valc$
\end{lstlisting} & $\valc$\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando logaritmo}
Un logaritmo di base 2, ad esempio, e argomento $x$ si introduce con:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\loga{2}{x}
\end{lstlisting} & \loga{2}{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando segnale analitico/sorgente di campo}
Per esprimere un segnale analitico $x$ o una sorgente di campo $v$ si usa:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\analitic{x}
\end{lstlisting} & \analitic{x}\\
\begin{lstlisting}
\analitic{v}
\end{lstlisting} & \analitic{v}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando integrale}
Un integrale definito su tutto un'asse è definito come:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\intinf{x\,dx}
\end{lstlisting} & \intinf{x\,dx}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Comando delta}
La funzione $\delta$ calcolata in un punto preciso $x$ si esprime:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\deltain{x}
\end{lstlisting} & \deltain{x}\\
\bottomrule
\end{tabular}
\end{center}
\subsection{Simboli Gamma}
Il simbolo, usato prevalentemente nei corsi di campi elettromagnetici è ben caratterizzato; se occorre un'utilizzo generico, senza cioè identificare il punto in cui si calcola, ma specificando se si tratta di un gamma in tensione o in corrente, si deve usare:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\gammatens
\end{lstlisting} & \gammatens\\
\begin{lstlisting}
\gammacorr
\end{lstlisting} & \gammacorr\\
\bottomrule
\end{tabular}
\end{center}
Qualora fosse necessario anche inserire il punto della linea in cui deve essere calcolato, si può utilizzare il comando:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\gammatensin{A}
\end{lstlisting} & \gammatensin{A}\\
\begin{lstlisting}
\gammacorrin{A}
\end{lstlisting} & \gammacorrin{A}\\
\bottomrule
\end{tabular}
\end{center}
A volte per indicare il gamma in tensione non si specifica l'apice:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\gammain{A}
\end{lstlisting} & \gammain{A}\\
\bottomrule
\end{tabular}
\end{center}
Quando si usa questo due comando occorre sempre tenere a mente che il gamma è in tensione!!!

Per inserire un gamma di Kurokawa si introduce:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\gammak
\end{lstlisting} & \gammak\\
\bottomrule
\end{tabular}
\end{center}

Vediamo un esempio che adopera più simboli di engtlc: caratterizziamo il modulo quadro di un gamma di Kurokawa.
\begin{tabbing}
\hspace{7cm}\=\kill
Codice \> Visualizzazione \\ 
\lstinline!\moduloexp{\gammak}{2}! \> \moduloexp{\gammak}{2}
\end{tabbing} 

Un altro esempio può essere: parte reale della trasformata di Fourier del modulo quadro di $x$:
\begin{tabbing}
\hspace{10cm}\=\kill
Codice \> Visualizzazione \\ 
\lstinline!\partereale{\fourier{\moduloexp{x}{2}}}! \> \partereale{\fourier{\moduloexp{x}{2}}}
\end{tabbing}
Il codice per realizzare questo comando sarebbe:
\begin{lstlisting}
$\textbf{Re}\left\lbrace \mathcal{F}\left\lbrace 
\end{lstlisting}
\begin{lstlisting}
\left\vert x \right\vert^{2} \right\rbrace \right\rbrace$
\end{lstlisting}
\subsection{Simboli $\lambda$}
Sono implementati 3 simboli per esprimere la lunghezza d'onda.
\subsubsection*{Nel vuoto}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 $\lbvt$
\end{lstlisting} & $\lbvt$\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Guidata 1}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 $\lbg$
\end{lstlisting} & $\lbg$\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Guidata 2}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 $\lbgvt$
\end{lstlisting} & $\lbgvt$\\
\bottomrule
\end{tabular}
\end{center}
\subsection{Simboli per impedenze e ammettenze}
Il pacchetto engtlc permette anche la rappresentazione di qualsiasi tipo di impedenza e ammettenza.
\subsubsection{Impedenze e ammettenze generiche}
Per esprimere un'impedenza o un'ammettenza calcolata nel punto A di una linea si utilizzano i comandi:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\z{A}
\end{lstlisting} & \z{A}\\
\begin{lstlisting}
\y{A}
\end{lstlisting} & \y{A}\\
\bottomrule
\end{tabular}
\end{center}
Si noti che, a differenza del comando per esprimere la probabilità, qui non si usa il comando \lstinline!\text{}! per non rendere corsivo il punto di cui si identifica l'impedenza o ammettenza.\\
Questa scelta è stata operata al fine di fornire una scrittura di migliore impatto visivo per il lettore.
La caratterizzazione di impedenze e ammettenze normalizzate in un punto A, avviene con i comandi:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\znorm{A}
\end{lstlisting} & \znorm{A}\\
\begin{lstlisting}
\ynorm{A}
\end{lstlisting} & \ynorm{A}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection{Impedenze e ammettenze caratteristiche}
L'impedenza e ammettenza caratteristica generica di una linea o guida di trasmissione avviene con:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\zinf
\end{lstlisting} & \zinf\\
\begin{lstlisting}
\yinf
\end{lstlisting} & \yinf\\
\bottomrule
\end{tabular}
\end{center}
Qualora fosse necessario caratterizzare più impedenze o ammettenze caratteristiche sulla linea, si può ricorrere a comandi molto simili a quelli precedenti, ma con una -\texttt{n} come desinenza finale, la quale indica il numero che si vuole attribuire; nel caso si voglia attribuire il 2:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\zinfn{2}
\end{lstlisting} & \zinfn{2}\\
\begin{lstlisting}
\yinfn{2}
\end{lstlisting} & \yinfn{2}\\
\bottomrule
\end{tabular}
\end{center}
Si presti attenzione perchè non si deve fare confusione tra impedenze e ammettenze generiche con quelle specifiche; osserviamo cosa succede a non inserire la -\texttt{n} finale:
\begin{tabbing}
\hspace{7cm}\=\kill
Codice impedenza generica \> Visualizzazione \\ 
\lstinline!\zinf{2}! \> \hspace{0.8cm} \zinf{2}
\end{tabbing}
\begin{tabbing}
\hspace{7cm}\=\kill
 Codice impedenza specifica \> Visualizzazione \\ 
 \lstinline!\zinfn{2}! \> \hspace{0.8cm} \zinfn{2}
\end{tabbing}
Il codice per l'impedenza generica non è sbagliato, ma il risultato non è sicuramente quello desiderato.

E' possibile anche operare con le impedenze e ammettenze caratteristiche del vuoto:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\zvt
\end{lstlisting} & \zvt\\
\begin{lstlisting}
\yvt
\end{lstlisting} & \yvt\\
\bottomrule
\end{tabular}
\end{center}
Vediamo un esempio che coinvolga più comandi engtlc.

La caratterizzazione della potenza disponibile di una linea è: tensione del generatore al quadrato diviso 4 volte la parte reale dell'impedenza del generatore. Con i comandi:\\

\noindent codice:

\lstinline!\[\potdisp=\frac{\moduloexp{V}{2}}{\partereale{4\cdot\z{G}}}\]! \\

\noindent visualizzazione:

\[ \potdisp=\frac{\moduloexp{V}{2}}{\partereale{4\cdot\z{G}}} \]

Senza i comandi introdotti occorrerebbe scrivere:
\begin{lstlisting}
\[P_{disp}=\frac{\left| V \right|^2}
{\textbf{Re}\left\lbrace {4\cdot\text{Z}_{G}}\right\rbrace}\]
\end{lstlisting}
\subsection{Potenza}
I simboli per indicare la potenza sono ben definiti.
\subsubsection*{Potenza in un punto}
Per caratterizzare la potenza in un punto, ad esempio $A$:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \potin{A}
\end{lstlisting} & \potin{A}\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Potenza disponibile}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \potdisp
\end{lstlisting} & \potdisp\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Potenza di alimentazione}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \potalim
\end{lstlisting} & \potalim\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Potenza irradiata}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \potirr
\end{lstlisting} & \potirr\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Potenza dissipata}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \potdiss
\end{lstlisting} & \potdiss\\
\bottomrule
\end{tabular}
\end{center}
\subsubsection*{Potenza incidente}
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
 \potinc
\end{lstlisting} & \potinc\\
\bottomrule
\end{tabular}
\end{center}
\subsection{Campi elettrici e magnetici}
Per quanto riguarda i campi i comandi engtlc sono molto generici.\\
Si introducono soltanto:
\begin{itemize}
\item[.] campo elettrico e magnetico in funzione del vettore spostamento \vettore{r} e del tempo;
\item[.] fasori di campo elettrico e mangnetico.
\end{itemize}
Nella trattazione dei campi si preferisce, come dicitura di vettore utilizzare $\underline{r}$ rispetto a \vettore{r}.
Campi in funzione di $\underline{r}$ e $t$:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\campoe
\end{lstlisting} & \campoe\\
\begin{lstlisting}
\campoh
\end{lstlisting} & \campoh\\
\bottomrule
\end{tabular}
\end{center}
I fasori di campo si introducono, invece, con:
\begin{center}
\begin{tabular}{cc}
\toprule
Codice & Visualizzazione\\
\midrule
\begin{lstlisting}
\campoefas
\end{lstlisting} & \campoefas\\
\begin{lstlisting}
\campohfas
\end{lstlisting} & \campohfas\\
\bottomrule
\end{tabular}
\end{center}
\chapter{Licenza LPPL}
Engtlc è sottoposto a licenza LPPL: \LaTeX\, Project Public Licence.
\begin{footnotesize}
\begin{verbatim}
%% engtlc.dtx
%% Copyright 2010 Fiandrino Claudio
%
% 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
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
% 
% The Current Maintainer of this work is Fiandrino Claudio.
%
% This work consists of the files engtlc.dtx and pig.ins
% and the derived file engtlc.sty.
\end{verbatim}
\end{footnotesize}
\end{document}