Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

Removed old and unnecessary files

mziccard0b0a6a4c0935
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f77b31c..0000000
--- a/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
deleted file mode 100644
index 6f83f0b..0000000
--- a/AndroidManifest.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="me.ziccard.secureit"
- android:versionCode="1"
- android:versionName="1.0" >
-
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- <uses-permission android:name="android.permission.CAMERA" />
- <uses-permission android:name="android.permission.RECORD_AUDIO"/>
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
- <uses-permission android:name="android.permission.BLUETOOTH" />
- <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
- <uses-permission android:name="android.permission.READ_PHONE_STATE" />
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.SEND_SMS" />
- <uses-feature android:name="android.hardware.camera" />
- <uses-feature android:name="android.hardware.camera.autofocus" />
- <uses-feature android:glEsVersion="0x00020000" android:required="true" />
-
- <uses-sdk
- android:minSdkVersion="10"
- android:targetSdkVersion="15" />
-
- <application
- android:icon="@drawable/ic_launcher"
- android:label="@string/app_name"
- android:theme="@style/AppTheme" >
- <activity
- android:name=".StartActivity"
- android:label="@string/title_activity_start" >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity android:label="@string/app_name" android:name=".MonitorFragment"/>
- <activity
- android:label="@string/app_name"
- android:name=".MonitorActivity"
- android:launchMode="singleTop"
- android:screenOrientation="portrait"/>
- <service android:name=".service.UploadService"/>
- </application>
-</manifest>
diff --git a/libs/Androidplot-core-0.5.0-release.jar b/libs/Androidplot-core-0.5.0-release.jar
deleted file mode 100644
index 40606a3..0000000
Binary files a/libs/Androidplot-core-0.5.0-release.jar and /dev/null differ
diff --git a/libs/android-support-v4.jar b/libs/android-support-v4.jar
deleted file mode 100644
index feaf44f..0000000
Binary files a/libs/android-support-v4.jar and /dev/null differ
diff --git a/libs/httpclient-4.2.2.jar b/libs/httpclient-4.2.2.jar
deleted file mode 100644
index 5f768c4..0000000
Binary files a/libs/httpclient-4.2.2.jar and /dev/null differ
diff --git a/libs/httpcore-4.2.3.jar b/libs/httpcore-4.2.3.jar
deleted file mode 100644
index 2b1a140..0000000
Binary files a/libs/httpcore-4.2.3.jar and /dev/null differ
diff --git a/libs/httpmime-4.2.2.jar b/libs/httpmime-4.2.2.jar
deleted file mode 100644
index 515ed31..0000000
Binary files a/libs/httpmime-4.2.2.jar and /dev/null differ
diff --git a/presentazioni/ipermediali/Presentazione.tex b/presentazioni/ipermediali/Presentazione.tex
deleted file mode 100644
index 7c5e1ca..0000000
--- a/presentazioni/ipermediali/Presentazione.tex
+++ /dev/null
@@ -1,307 +0,0 @@
-\documentclass{beamer}
-
-\usepackage{amsmath}
-\usepackage{booktabs}
-\usepackage{tabularx}
-\usepackage{rotating}
-\usepackage{microtype}
-\usepackage{indentfirst}
-\usepackage{amssymb}
-\usepackage{graphicx}
-\usepackage{tikz}
-\usepackage{lmodern}
-\usepackage[T1]{fontenc}
-\usepackage[utf8x]{inputenc}
-
-\usetheme[secheader]{Boadilla}
-\usecolortheme{beaver}
-
-% Defining some color scheme
-\setbeamercolor*{item}{fg=red}
-\defbeamertemplate*{itemize subitem}{default}{\tiny\raise1.5pt\hbox{\donotcoloroutermaths$\blacktriangleright$}}
-\setbeamercolor*{block title}{fg=black!30!red,bg=black!20}
-\setbeamercolor*{block body}{fg=black,bg=black!10}
-
-\title[SecureIt]{SecureIt}
-\author{Luca Bonato, Marco Ziccardi}
-\date{Sistemi Ipermediali}
-\institute[UniPD]{University of Padua\\\includegraphics[width=15mm]{img/unipd_logo.pdf}}
-
-
-\begin{document}
-
-\begin{frame}
-\begin{minipage}[l]{.7\textwidth}
-~\\[4cm]\includegraphics[width=3.5cm]{./img/icona.pdf}
-\end{minipage}\begin{minipage}[r]{.5\textwidth}
-~\\[4cm]\includegraphics[width=3.5cm]{./img/icona.pdf}
-\end{minipage}\\[-6.5cm]
-\maketitle
-\end{frame}
-
-\begin{frame}
-\frametitle{Table of contents}
-\tableofcontents
-\end{frame}
-
-% INTRODUCTION
-\section{Introduzione}
-\begin{frame}
-\frametitle{Obiettivi dell'applicazione}
-\begin{block}{Un dispositivo per sicurezza ad ampio spettro}
-Avere in un solo dispositivo \textit{molteplici} funzionalità per monitorare uno spazio privato ed il dispositivo stesso
-\end{block}
-Altre applicazioni sul mercato offrono solo un monitoraggio parziale:
-\begin{itemize}
- \item \textbf{Motion Detector Pro}: solo motion detection
- \item \textbf{Sound Detector}: solo noise detection
- \item \textbf{Surveillance}: motion e sound detection. Non usa accelerometro e tracking
-
-\end{itemize}
-...si prova a sfruttare tutte le funzionalità del dispositivo per conoscerne i limiti
-\end{frame}
-
-\begin{frame}
-\frametitle{Funzionalità offerte}
-\noindent\begin{minipage}[c]{.7\textwidth}
-\begin{enumerate}
- \item \textbf{Accelerometro}: determinare quando il dispositivo viene mosso
- \item \textbf{Fotocamera}: determinare quando c'è movimento nell'ambiente
- \item \textbf{Microfono}: determinare quando c'è rumore nell'ambiente
- \item \textbf{SMS}: per avvisare l'utente di un'intrusione
- \item \textbf{WiFi-3G-Bluetooth}: per fornire all'utente informazioni più accurate
- \item \textbf{Codice sblocco}: per avere controllo sulla chiusura dell'applicazione
- \item \textbf{Sito web}: in cui poter consultare le informazioni raccolte (audio, immagini, locazione dispositivo)
-\end{enumerate}
-\end{minipage}\begin{minipage}[c]{.25\textwidth}
-\includegraphics[scale=.2]{./img/firstpage.png}
-\end{minipage}
-\end{frame}
-
-\section{Rilevamento movimento dispositivo}
-\begin{frame}
-\frametitle{Accelerometro}
-\begin{block}{~}
-Attraverso l'accelerometro è possibile determinare quando il dispositivo viene mosso
-\end{block}
-\begin{itemize}
- \item Un intruso urta per sbaglio il dispositivo
- \item Un intruso prende volontariamente il dispositivo
-\end{itemize}
-
-Questa funzionalità viene utilizzata solamente per generare l'allarme
-\end{frame}
-
-\begin{frame}
-\frametitle{Come viene effettuato}
-\begin{minipage}[c]{.7\textwidth}
-\begin{itemize}
- \item Possibile determinare la sensibilità (3 valori disponibili) con cui viene riconosciuto il movimento (\texttt{THRESHOLD})
- \item Monitorare per un certo periodo le informazioni offerte dall'accelerometro (accelerazioni sui 3 assi)
- {\footnotesize\[\frac{(\Delta accel_X) + (\Delta accel_Y) + (\Delta accel_Z)}{\Delta t} > \texttt{THRESHOLD}\]}
-\end{itemize}
-\end{minipage}\begin{minipage}[c]{.25\textwidth}
-\includegraphics[scale=.3]{./img/accelerometer.png}
-\end{minipage}
-\end{frame}
-
-\begin{frame}
-\frametitle{Cosa viene proposto all'utente}
-\begin{minipage}[c]{.25\textwidth}
-\includegraphics[scale=.18]{./img/opengl.png}
-\end{minipage}\begin{minipage}[r]{.65\textwidth}
-\begin{itemize}
- \item Schermata in cui compare una superficie che rappresenta l'inclinazione del dispositivo
- \item Utilizzata OpenGL ES per non appesantire la CPU di calcoli grafici
-\end{itemize}
-\end{minipage}
-\end{frame}
-
-\section{Rilevamento movimento ambientale}
-\begin{frame}
-\frametitle{Fotocamera}
-\begin{block}{~}
-Attraverso la fotocamera è possibile determinare quando qualcosa all'interno del raggio visivo del dispositivo viene mosso o cambia posizione
-\end{block}
-\begin{itemize}
- \item Un intruso passa all'interno del raggio visivo del dispositivo
- \item Un intruso muove qualche oggetto all'interno del raggio visivo del dispositivo
- \item ...ma non tutti i movimenti son causati da intrusi: vento, insetti, animali domestici...
-\end{itemize}
-Oltre a generare l'allarme, produce informazioni ausiliarie: scatta le foto di quel che si è mosso
-\end{frame}
-
-\begin{frame}
-\frametitle{Come viene effettuato}
-\begin{enumerate}
- \item Monitoraggio:
-\begin{itemize}
- \item Vengono catturate delle immagini ad intervalli regolari (1 immagine/1 sec)
- \item Viene applicato un algoritmo di motion detection a due immagini consecutive
- \begin{itemize}
- \item Le immagini vengono convertite in scala di grigi: interessa solo la componente di luminosità per determinare movimento
- \item Si cercano le differenze tra le due immagini
- \item Vengono definiti 3 possibili valori per stabilire qualora le differenze riscontrate possano essere riconducibili a del movimento artificiale (ossia causato da un intruso)
- \end{itemize}
- \item Se si riconosce movimento viene generato l'allarme e si tenta di spedire le immagini catturate al server
-\end{itemize}
- \item Salvataggio: vengono sfruttate le funzionalità offerte dalle API Android per salvare le immagini in formato JPEG
-\end{enumerate}
-\end{frame}
-
-\begin{frame}
-\frametitle{Formati utilizzati e rappresentazione dell'informazione}
-Si lavora con immagini: si è cercato di utilizzare i formati più adatti
-\begin{description}
- \item[YUV N21] formato acquisizione nativo dispositivi Android. Separa informazione luma da crominanza: semplice ottenere le informazioni per convertire in scala di grigio le immagini
- \item[scala di grigi] l'informazione su cui viene eseguito motion detection e base per costruire le immagini in RGB. Si sfruttano le relazioni tra spazi di colore YCbCr e RGB per ottenere questa informazione
- \item[RGB 565] formato per il display su dispositivo. Occupa poco spazio (2 byte per pixel) e non si spreca informazione (altri formati hanno canale alpha)
- \item[JPEG] formato per memorizzare le immagini su dispositivo e per inviarle in rete. Si riduce lo spazio utilizzato su dispositivo e si riduce overhead per la trasmissione delle immagini su rete
-\end{description}
-\end{frame}
-
-\begin{frame}
-\frametitle{Cosa viene proposto all'utente}
-\begin{minipage}[c]{.25\textwidth}
-\includegraphics[scale=.18]{./img/camera.png}
-\end{minipage}\begin{minipage}[c]{.65\textwidth}
-\begin{itemize}
- \item In alto viene fornito lo stream di immagini catturate dalla fotocamera (anche di quelle non processate)
- \item In basso a sinistra viene visualizzata la penultima immagine processata
- \item In basso a destra viene visualizzata l'ultima immagine processata in cui vengon evidenziate in rosso le zone in cui è stato determinato movimento
-\end{itemize}
-\end{minipage}
-\end{frame}
-
-
-\section{Rilevamento rumore ambientale}
-\begin{frame}
-\frametitle{Microfono}
-\begin{block}{~}
-Attraverso il microfono è possibile monitorare il livello di rumore presente nell'ambiente e di determinarne variazioni anomale
-\end{block}
-\begin{itemize}
- \item Un intruso che parla
- \item Un intruso che produce rumori per entrare nell'abitazione
- \item ...ma non tutti i rumori sono causati da intrusi: tuoni, traffico, liti d'appartamento...
-\end{itemize}
-Oltre a generare allarme, il determinarsi di un livello di rumore anomalo causa la registrazione di 10 secondi di audio che saranno quindi trasmessi al server in rete
-\end{frame}
-
-\begin{frame}
-\frametitle{Come viene effettuato}
-\begin{enumerate}
- \item Monitoraggio:
- \begin{itemize}
- \item Viene riempito un buffer di valori campionati dal microfono
- \item Viene eseguita una media dei valori campionati per ottenere un valore che possa riassumerli tutti
- \item Si converte il valore ottenuto in decibel
- \item Si confronta il valore in decibel con la soglia di sensibilità impostata dall'utente
- \item Se si riscontra un valore anomalo viene generato l'allarme e si inizia ad acquisire l'audio da poi inviare al server predisposto
- \end{itemize}
- \item Registrazione: vengono sfruttate le strutture offerte dalle API Android per acquisire 10 secondi di audio in formato AAC
-\end{enumerate}
-\end{frame}
-
-\begin{frame}
-\frametitle{Formati utilizzati e rappresentazione dell'informazione}
-\begin{description}
- \item[PCM 16 bit] Acquisizione nativa Android. Queste informazioni vengono memorizzate temporaneamente su un buffer da 512 valori. Usare 8 bit diminuirebbe la qualità dell'audio
- \item[decibel] l'ampiezza del segnale viene tradotto in decibels fornendo come soglia di riferimento il valore 1
- {\footnotesize\[dB_i = 10\log_{10} \left(\frac{V_i}{V_o}\right)^2\]}
- \item[AAC] formato utilizzato per registrare i 10 secondi di audio. Permette di risparmiare spazio (in prospettiva di invio del file su rete) in quanto sfrutta modello psicoacustico per la compressione
- \item[Ogg Vorbis] formato utilizzato per riprodurre l'audio acquisito qualora il browser utilizzato non supporti ACC
-\end{description}
-\end{frame}
-
-\begin{frame}
-\frametitle{Cosa viene proposto all'utente}
-\begin{minipage}[c]{.25\textwidth}
-\includegraphics[scale=.18]{./img/microphone.png}
-\end{minipage}\begin{minipage}[c]{.65\textwidth}
-\begin{itemize}
- \item Si fornisce graficamente la media del valore campionato su scala decibel
- \item Qualora il microfono riesca a campionare audio in modalità stereo verranno visualizzati i valori di entambi i canali (ciascuna barra sarà indipendente)
- \item Vengono evidenziati due valori di soglia:
- \begin{enumerate}
- \item Il più basso rappresenta la sensibilità impostata dall'utente (è quindi il valore utilizzato per determinare un'intrusione)
- \item Il più alto è una soglia arbitraria di rumore
- \end{enumerate}
-\end{itemize}
-\end{minipage}
-\end{frame}
-
-
-\section{Invio informazioni}
-\begin{frame}
-\frametitle{Server remoto}
-\begin{block}{~}
-Si utilizza un applicazione web per poter memorizzare le informazioni raccolte dai vari dispositivi così da lasciarle sempre disponibili agli utenti
-\end{block}
-\begin{itemize}
- \item Il sistema di allarme è utile. \`E più utile avere a disposizione anche le informazioni da cui è scattato l'allarme
- \item Il dispositivo può essere rubato. \`E bene salvare i dati in un luogo sicuro e sempre accessibile
- \item L'applicazione non è perfetta: può determinare una falsa intrusione. Poter accedere direttamente alla informazioni catturate può evitare attacchi di panico
-\end{itemize}
-\end{frame}
-
-\begin{frame}
-\frametitle{Dati memorizzati}
-%\begin{minipage}[c]{.2\textwidth}
-\begin{center}
-\includegraphics[scale=.15]{./img/map.png}
-\includegraphics[scale=.15]{./img/slideshow.png}
-\end{center}
-%\end{minipage}\begin{minipage}[c]{.65\textwidth}
-\begin{itemize}
- \item Immagini: a seconda del tipo di connessione vengono inviate 5 (3G) o 10 (WiFi) delle immagini catturate
- \item Audio: inviati i 10 secondi registrati
- \item Locazione dispositivo: ottenuta tramite GPS se attivo o tramite servizi in rete. Informazione aggiornata periodicamente
-\end{itemize}
-%\end{minipage}
-\end{frame}
-
-\begin{frame}
-\frametitle{API REST}
-\begin{block}{~}
-Il server offre API REST per poter eseguire upload informazioni e per potersi autenticare: il server non accetta informazioni che potrebbero essere fasulle e si accerta che solo utenti/dispositivi autorizzati possano modificare le informazioni su server
-\end{block}
-\begin{itemize}
- \item Necessario essere precedentemente registrati al server
- \item Necessario un access token per eseguire upload (access token ricevuto tramite login dell'applicazione)
-\end{itemize}
-\texttt{~~~~\lbrack POST\rbrack /users/accesstoken\\
-~~~~\lbrack POST\rbrack /api/phones/:phoneId/images\\
-~~~~\lbrack POST\rbrack /api/phones/:phoneId/audio\\
-~~~~\lbrack POST\rbrack /api/phones/:phoneId/positions}
-
-
-\end{frame}
-
-
-\section{Bluetooth}
-\begin{frame}
-\frametitle{Sistema collaborativo Bluetooth}
-\begin{block}{~}
-Qualora non vi sia a disposizione nessuna connessione di rete ma vi sia il bluetooth attivo, si tenta di instaurare connessioni opportunistiche con altri dispositivi e di delegare a loro il compito di notificare il server dell'attuale posizione del dispositivo
-\end{block}
-\begin{itemize}
- \item Necessario assicurarsi che il dispositivo delegato non stia mentendo: utilizzo di un piccolo protocollo di firma digitale
-\end{itemize}
-\begin{center}
-\includegraphics[scale=.2]{./img/bluetooth.png}
-\end{center}
-\end{frame}
-
-\section{Conclusioni}
-\begin{frame}
-\frametitle{Conclusioni}
-\begin{itemize}
- \item I dispositivi riescono a sopportare il carico di lavoro
- \item Meccanismi di motion detection e noise detection sono naive (potrebbero essere uilizzati concetti di image/sound processing/recognition)
- \item Protocolli di sicurezza non sono perfetti (per questioni computazionali si è deciso di non utilizzare un protocollo a chiave pubblica)
- \item Per funzionamento efficace è necessario che tanti dispositivi adottino questa applicazione (vedesi comunicazione bluetooth)
-\end{itemize}
-\end{frame}
-
-\end{document}
diff --git a/presentazioni/ipermediali/build/Presentazione.pdf b/presentazioni/ipermediali/build/Presentazione.pdf
deleted file mode 100644
index 1a9f0cf..0000000
Binary files a/presentazioni/ipermediali/build/Presentazione.pdf and /dev/null differ
diff --git a/presentazioni/ipermediali/img/accelerometer.png b/presentazioni/ipermediali/img/accelerometer.png
deleted file mode 100644
index 9b6cf18..0000000
Binary files a/presentazioni/ipermediali/img/accelerometer.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/bluetooth.png b/presentazioni/ipermediali/img/bluetooth.png
deleted file mode 100644
index 14cc99a..0000000
Binary files a/presentazioni/ipermediali/img/bluetooth.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/camera.png b/presentazioni/ipermediali/img/camera.png
deleted file mode 100644
index 0847e64..0000000
Binary files a/presentazioni/ipermediali/img/camera.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/config.png b/presentazioni/ipermediali/img/config.png
deleted file mode 100644
index a770365..0000000
Binary files a/presentazioni/ipermediali/img/config.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/decibels.jpeg b/presentazioni/ipermediali/img/decibels.jpeg
deleted file mode 100644
index 8a24c13..0000000
Binary files a/presentazioni/ipermediali/img/decibels.jpeg and /dev/null differ
diff --git a/presentazioni/ipermediali/img/firstpage.png b/presentazioni/ipermediali/img/firstpage.png
deleted file mode 100644
index af96d52..0000000
Binary files a/presentazioni/ipermediali/img/firstpage.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/icona.pdf b/presentazioni/ipermediali/img/icona.pdf
deleted file mode 100644
index 30b1e13..0000000
Binary files a/presentazioni/ipermediali/img/icona.pdf and /dev/null differ
diff --git a/presentazioni/ipermediali/img/map.png b/presentazioni/ipermediali/img/map.png
deleted file mode 100644
index 069a2e5..0000000
Binary files a/presentazioni/ipermediali/img/map.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/microphone.png b/presentazioni/ipermediali/img/microphone.png
deleted file mode 100644
index 27ce77d..0000000
Binary files a/presentazioni/ipermediali/img/microphone.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/opengl.png b/presentazioni/ipermediali/img/opengl.png
deleted file mode 100644
index a55f536..0000000
Binary files a/presentazioni/ipermediali/img/opengl.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/slideshow.png b/presentazioni/ipermediali/img/slideshow.png
deleted file mode 100644
index 82813e0..0000000
Binary files a/presentazioni/ipermediali/img/slideshow.png and /dev/null differ
diff --git a/presentazioni/ipermediali/img/unipd_logo.pdf b/presentazioni/ipermediali/img/unipd_logo.pdf
deleted file mode 100755
index d9a1de9..0000000
Binary files a/presentazioni/ipermediali/img/unipd_logo.pdf and /dev/null differ
diff --git a/presentazioni/ipermediali/makefile b/presentazioni/ipermediali/makefile
deleted file mode 100644
index 6dc9dac..0000000
--- a/presentazioni/ipermediali/makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-all: Presentazione.tex
- mkdir -p build
- -pdflatex -interaction=nonstopmode -output-directory=build -interaction=nonstopmode Presentazione.tex
- -pdflatex -interaction=nonstopmode -output-directory=build -interaction=nonstopmode Presentazione.tex
- @-make clean
-
-one: Presentazione.tex
- mkdir -p build
- -pdflatex -interaction=nonstopmode -output-directory=build -interaction=nonstopmode Presentazione.tex
- @-make clean
-
-clean :
- rm build/*.aux
- rm build/*.log
- rm build/*.nav
- rm build/*.out
- rm build/*.snm
- rm build/*.toc
diff --git a/presentazioni/wireless/Presentazione.tex b/presentazioni/wireless/Presentazione.tex
deleted file mode 100644
index 1a5fd9b..0000000
--- a/presentazioni/wireless/Presentazione.tex
+++ /dev/null
@@ -1,233 +0,0 @@
-\documentclass{beamer}
-
-\usepackage{amsmath}
-\usepackage{booktabs}
-\usepackage{tabularx}
-\usepackage{rotating}
-\usepackage{microtype}
-\usepackage{indentfirst}
-\usepackage{amssymb}
-\usepackage{graphicx}
-\usepackage{tikz}
-\usetikzlibrary{arrows}
-\usepackage{lmodern}
-\usepackage[T1]{fontenc}
-\usepackage[utf8x]{inputenc}
-
-\usetheme[secheader]{Boadilla}
-\usecolortheme{beaver}
-
-% Defining some color scheme
-\setbeamercolor*{item}{fg=red}
-\defbeamertemplate*{itemize subitem}{default}{\tiny\raise1.5pt\hbox{\donotcoloroutermaths$\blacktriangleright$}}
-\setbeamercolor*{block title}{fg=black!30!red,bg=black!20}
-\setbeamercolor*{block body}{fg=black,bg=black!10}
-
-\title[SecureIt]{SecureIt}
-\author{Luca Bonato, Marco Ziccardi}
-\date{Wireless Network}
-\institute[UniPD]{University of Padua\\\includegraphics[width=15mm]{./../ipermediali/img/unipd_logo.pdf}}
-
-
-\begin{document}
-
-\begin{frame}
-\begin{minipage}[l]{.7\textwidth}
-~\\[4cm]\includegraphics[width=3.5cm]{./../ipermediali/img/icona.pdf}
-\end{minipage}\begin{minipage}[r]{.5\textwidth}
-~\\[4cm]\includegraphics[width=3.5cm]{./../ipermediali/img/icona.pdf}
-\end{minipage}\\[-6.5cm]
-\maketitle
-\end{frame}
-
-\begin{frame}
-\frametitle{Table of contents}
-\tableofcontents
-\end{frame}
-
-% INTRODUCTION
-\section{Introduction}
-\begin{frame}
-\frametitle{Application overview}
-\begin{block}{SecureIt}
-An application to turn an Android device into a home-security and device-tracking system. It tries to exploit all the device functions to offer a wide range of security mechanisms.
-\end{block}
-Other applications in the market try to offer security using only a fraction of devices' abilities
-\begin{itemize}
- \item \textbf{Motion Detector Pro}: only motion detection
- \item \textbf{Sound Detector}: only noise detection
- \item \textbf{Surveillance}: motion and sound detection but not shake detection and device tracking
-\end{itemize}
-\end{frame}
-
-\begin{frame}
-\frametitle{Architecture}
-\begin{center}
-\includegraphics[scale=.4]{./../../relazioni/wireless/resources/architecture.pdf}
-\end{center}
-\end{frame}
-
-\section{Detection mechanisms}
-\begin{frame}
-\frametitle{Shake detection}
-\begin{block}{}
-The \textbf{accelerometer} is used to detect motion of the phone itself. The accelerations on the 3 axis computed by the accelerometer are used to estimate the intensity of phone's shake. The alert is fired only if this intensity is over the threshold specified by the user.
-\end{block}
-\begin{minipage}[c]{.7\textwidth}
-{\footnotesize\[\frac{(\Delta accel_X) + (\Delta accel_Y) + (\Delta accel_Z)}{\Delta t} > \texttt{THRESHOLD}\]}
-\end{minipage}\begin{minipage}[c]{.25\textwidth}
-\includegraphics[scale=.3]{./../ipermediali/img/accelerometer.png}
-\end{minipage}
-\end{frame}
-
-\begin{frame}
-\frametitle{Motion detection}
-\begin{block}{}
-The \textbf{camera} is used to detect motion in the surrounding environment. The frames capured by the camera are compared to determine variations between them: if the differences of two consecutive frames are over the threshold specified by the user an alert is fired. The application tries also to upload the captured frames so that the user can check what happened.
-\end{block}
-\begin{minipage}[c]{.25\textwidth}
-\includegraphics[scale=.15]{./../ipermediali/img/camera.png}
-\end{minipage}\begin{minipage}[c]{.65\textwidth}
-\begin{itemize}
- \item Using a simple motion detection algorithm
- \item Threshold specifies when two pixels are different and the amount of different pixels needed to detect motion
- \item Stores the captured frames in case an alarm is fired
-\end{itemize}
-\end{minipage}
-\end{frame}
-
-\begin{frame}
-\frametitle{Noise detection}
-\begin{block}{}
-The \textbf{microphone} is used to detect an abnormal noise level in the surrounding environment. The sound sampled by the microphone is converted to a decibel scale. When the sampled and converted values exceed the threshold set by the user an alert is fired and the application records 10 seconds of environment noise. The application tries also to upload the recorded audio to let the user hear what happened.
-\end{block}
-\begin{minipage}[c]{.25\textwidth}
-\includegraphics[scale=.15]{./../ipermediali/img/microphone.png}
-\end{minipage}\begin{minipage}[c]{.65\textwidth}
-\begin{itemize}
- \item An average of sampled noise is considered and then converted
- {\footnotesize\[dB_i = 10\log_{10} \left(\frac{V_i}{V_o}\right)^2\]}
- \item 3 possible threshold level displayed in UI
- \item Records audio only when needed
-\end{itemize}
-\end{minipage}
-\end{frame}
-
-
-\section{Upload info}
-\begin{frame}
-\frametitle{Alert communication}
-\begin{block}{}
-Based on selected preferences the application tries to alert the user of an abnormal status of the environment or of the device: no use of a securety system if it can't alert someone of an intrusion.
-\end{block}
-\begin{itemize}
- \item SMS: just sends a message to the user to notify an abnormal status
- \item Upload info to back-end: sends captured images and audio to the specified server
- \item Collaborative help: seeks help from other devices to upload some information to the specified server
-\end{itemize}
-\end{frame}
-
-\begin{frame}
-\frametitle{Back-end}
-\begin{block}{}
-Having the device storing the information related to the intrusion is not wise: the device itself can be stolen. It's necessary to store the information to a safe place: a dedicated \textbf{remote server}.\\This way the user can access the information anywhere and anytime: no need to have the device (that could be already stolen).
-\end{block}
-The information to upload can be too resource-consuming:
-\begin{itemize}
- \item WiFi connection: no bandwidth constraint. The application tries to upload every gathered information (every captured image, recorded audio, device location)
- \item 3G connection: bandwidth constraint. The application tries to upload a subset of the gathered information (half of the captured images, recorder audio, device location)
-\end{itemize}
-\end{frame}
-
-\begin{frame}
-\frametitle{Back-end communication}
-The server offers REST API. Through these API it's possibile to upload data to the server.\\
-To organize the data, the server has to know to whom the data are related: the user must be registered to be able to use the server storage mechanism. The user can therefore login to browse all the data gathered from his devices.\\
-The server accepts 3 kind of information:
-\begin{enumerate}
- \item Images: \texttt{\lbrack POST\rbrack /api/phones/:phoneId/images}
- \item Audio: \texttt{\lbrack POST\rbrack /api/phones/:phoneId/audio}
- \item Location: \texttt{\lbrack POST\rbrack /api/phones/:phoneId/positions}\\
- ~~~~~\texttt{\lbrack POST\rbrack /api/phones/:phoneId/position/delegated}
-\end{enumerate}
-\end{frame}
-
-\begin{frame}
-\frametitle{Back-end access}
-\begin{block}{}
-Information upload is a sensible operation: the server must be sure that the information is real and not uploaded to mislead the user. Only data sent by authorized devices can be stored in the server.
-\end{block}
-At login the application retrieves the credentials needed to upload data:\\
-\texttt{[POST] /user/accesstoken}\\
-The credentials are sent to the application in JSON:
-\begin{itemize}
- \item \texttt{access\_token}: used to authenticate the device to the server
- \item \texttt{delegated\_access\_token}: used to authenticate the information sent to the server by another device
-\end{itemize}
-\end{frame}
-
-\begin{frame}
-\frametitle{Upload images and audio}
-Images and audio are uploaded to the back-end in a similar way.\\
-A \texttt{MULTIPART POST} request is sent to the appropriate REST API.\\
-Images and audio are uploaded only by the user device: \texttt{access\_token} is inserted in the request header for the authentication.
-\begin{center}
-\includegraphics[scale=.22]{./../ipermediali/img/slideshow.png}
-\end{center}
-\end{frame}
-
-\begin{frame}
-\frametitle{Device location}
-If some connection is available (WiFi or 3G) the application sends periodically to the server information about the location of the device (to track it down if it is stolen). The location is expressed by geographic coordinates taken by GPS (if active) or by some geolocalization service.
-\begin{center}
-\includegraphics[scale=.22]{./../ipermediali/img/map.png}
-\end{center}
-\end{frame}
-
-\section{Bluetooth}
-\begin{frame}
-\frametitle{Delegated upload}
-\begin{block}{}
-If no connection is available the application activates a collaborative protocol based on opportunistic bluetooth connections.\\
-The application delegates another device to upload its location, so that at least device-tracking is possible.
-\end{block}
-The application seeks helps from other devices: it asks to upload some info to the server.
-\begin{itemize}
- \item Data sent to the server must be authorized: a little authentication protocol is implemented
- \item Bluetooth connection should not request user approval: untrusted bluetooth connection is used, so no explicit confirmation by the user is needed
-\end{itemize}
-Bluetooth connections cannot withstand heavy traffic:
-\begin{itemize}
- \item no request for images or audio upload are made
- \item just a request to upload the location of the device
-\end{itemize}
-\end{frame}
-
-\begin{frame}
-\frametitle{Collaborative help workflow}
-\begin{enumerate}
- \item Bluetooth discovery is started
- \item Tries to create a bluetooth connection with each discovered device
- \item If the connection is not discardet a digital sign protocol is started
- \includegraphics[scale=.2]{./../ipermediali/img/bluetooth.png}
- \item If location is sent correctly 1 hour is waited before next retransmission, otherwise only 1 minute is waited
-\end{enumerate}
-\end{frame}
-
-\begin{frame}
-\frametitle{Signing protocol}
-\begin{tikzpicture}[scale=.8]
-\draw (0,0) node[above]{\footnotesize ACTIVE ({$\color{red}key$})} -- (0, -5);
-\draw (6,0) node[above]{\footnotesize DELEGATED} -- (6, -5);
-\draw (12,0) node[above]{\footnotesize SERVER ({$\color{red}key$})} -- (12, -5);
-
-\draw[->,>=latex'] (0,-1) -- (6,-1)node[above,midway]{\tiny \texttt{HelloMessage}({$\color{blue}ID$})};
-\draw[<-,>=latex'] (0,-2) -- (6,-2)node[above,midway]{\tiny \texttt{KeyRequest}($lng,lat$)};
-\draw[->,>=latex'] (0,-3) -- (6,-3)node[above,midway]{\tiny \texttt{KeyResponse}($AES_{\color{red}key}(lng,lat)$)};
-\draw[->,>=latex'] (6,-4) -- (12,-4)node[above,midway]{\tiny \texttt{[POST] /api/phones/{$\color{blue}ID$}/position/delegated}};
-\draw[->,>=latex'] (6,-4) -- (12,-4)node[anchor=north,midway]{\tiny\{$AES_{\color{red}key}(lng,lat), lng,lat$\}};
-\draw (11,-5)node[anchor=north]{\tiny $AES^{-1}_{\color{red}key}(AES_{\color{red}key}(lng,lat)) =\!\!\!\!?\;\; (lng,lat)$};
-\end{tikzpicture}
-\end{frame}
-
-\end{document}
diff --git a/presentazioni/wireless/makefile b/presentazioni/wireless/makefile
deleted file mode 100644
index 6dc9dac..0000000
--- a/presentazioni/wireless/makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-all: Presentazione.tex
- mkdir -p build
- -pdflatex -interaction=nonstopmode -output-directory=build -interaction=nonstopmode Presentazione.tex
- -pdflatex -interaction=nonstopmode -output-directory=build -interaction=nonstopmode Presentazione.tex
- @-make clean
-
-one: Presentazione.tex
- mkdir -p build
- -pdflatex -interaction=nonstopmode -output-directory=build -interaction=nonstopmode Presentazione.tex
- @-make clean
-
-clean :
- rm build/*.aux
- rm build/*.log
- rm build/*.nav
- rm build/*.out
- rm build/*.snm
- rm build/*.toc
diff --git a/project.properties b/project.properties
deleted file mode 100644
index a9d0f5a..0000000
--- a/project.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-16
-android.library.reference.1=../Android-ViewPagerIndicator/library
diff --git a/relazioni/ipermediali/accelerometro.tex b/relazioni/ipermediali/accelerometro.tex
deleted file mode 100644
index f20001b..0000000
--- a/relazioni/ipermediali/accelerometro.tex
+++ /dev/null
@@ -1,29 +0,0 @@
-\section{Rilevamento movimento del dispositivo}
-Qualora venga abilitato l'utilizzo dell'accelerometro, l'applicazione monitorerà lo stato del dispositivo studiando l'evoluzione delle informazioni ottenute tramite l'accelerometro e le interpreterà a seconda della sensibilità impostata dall'utente tramite la schermata iniziale.\\
-
-L'accelerometro fornisce all'applicazione tre valori corrispondenti alle accelerazioni subite dal dispositivo sui tre assi X, Y e Z.
-\begin{figure}[!ht]
-\begin{center}
-\includegraphics[scale=.5]{./../wireless/resources/accelerometer.png}
-\caption{Verso delle accelerazioni determinate dall'accelerometro.}
-\label{fig:Accelerometro}
-\end{center}
-\end{figure}
-L'applicazione utilizza questa tripla di valori per ottenere una stima del movimento subito dal dispositivo. Poiché una sola tripla di valori permette solamente di determinare l'orientamento del dispositivo e non l'intensità con cui è mosso, è necessario campionare tali valori per un dato periodo di tempo e determinare se durante tale periodo l'orientamento del dispositivo ha registrato variazioni significative da poter essere tradotte in un movimento del dispositivo stesso.\\
-La stima del movimento avviene utilizzando la formula:
-\[variation = \frac{(\Delta accel_X) + (\Delta accel_Y) + (\Delta accel_Z)}{\Delta t}\]
-Per determinare se il movimento è riconducibile ad uno stato anormale del dispositivo (si presume che il movimento sia conseguenza di un'avvenuta invasione), la stima del movimento viene in seguito confrontata con la soglia di sensibilità impostata dall'utente:
-\begin{itemize}
- \item \texttt{LOW}: determina l'avvenuta intrusione qualora $variation > 3100$
- \item \texttt{MEDIUM}: determina l'avvenuta intrusione qualora $variation > 2700$
- \item \texttt{HIGH}: determina l'avvenuta intrusione qualora $variation > 2300$
-\end{itemize}~\\
-
-La tripla di informazioni ottenuta dall'accelerometro viene inoltre utilizzata per eseguire un display grafico dell'orientamento del dispositivo stesso. Viene animata una superficie tridimensionale (che rappresenta il dispositivo) e viene ruotata a seconda dell'effettivo orientamento calcolato dall'accelerometro. Per fornire questa rappresentazione animata tridimensionale si sfruttano le API OpenGL ES di modo da poter utilizzare la GPU e non appesantire la CPU di ulteriori calcoli.
-\begin{figure}[!ht]
-\begin{center}
-\includegraphics[scale=.3]{./../wireless/resources/opengl.png}
-\caption{Display grafico dell'orientamento del dispositivo.}
-\label{fig:OpenGL}
-\end{center}
-\end{figure}
diff --git a/relazioni/ipermediali/architettura.tex b/relazioni/ipermediali/architettura.tex
deleted file mode 100644
index 16fa48f..0000000
--- a/relazioni/ipermediali/architettura.tex
+++ /dev/null
@@ -1,53 +0,0 @@
-\section{Architettura}
-L'architettura realizzata è presentata in figura \ref{img:architecture}.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.7]{../wireless/resources/architecture.pdf}}
-\caption{Diagramma architetturale ad alto livello}
-\label{img:architecture}
-\end{center}
-\end{figure}
-
-Sono state definite tre parti principali che realizzano i compiti di monitoraggio dell'applicazione. Ciascuna di queste parti può essere divisa in componenti:
-
-\begin{enumerate}
- \item \texttt{Motion Detection}:
- \begin{itemize}
- \item \texttt{CameraFragment}: componente attivo dell'interfaccia grafica visualizzato dall'\texttt{SDK} di Android
- \item \texttt{Preview}: collega l'hardware della fotocamera all'applicativo Java e mostra una superficie contenente i frame catturati
- \item \texttt{MonitorAsyncTask}: elabora i frame catturati per fare motion detection
- \item \texttt{LuminanceMotionDetector}, \texttt{ImageCodec}: classi di utilità per l'analisi dei frame e la conversione di immagini
- \end{itemize}
- \item \texttt{Noise Detection}:
- \begin{itemize}
- \item \texttt{MicrophoneFragment}: componente attivo dell'interfaccia grafica visualizzato dall'\texttt{SDK} di Android
- \item \texttt{MicVolumePicker}: vista passiva che mostra il livello sonoro
- \item \texttt{MicSamplerTask}: periodicamente campiona i dati audio utilizzando \texttt{AudioCodec}
- \item \texttt{AudioCodec}: su richiesta campiona l'audio del microfono
- \end{itemize}
- \item \texttt{Motion Detection}:
- \begin{itemize}
- \item \texttt{AccelerometerFragment}: componente attivo dell'interfaccia grafica visualizzato dall'\texttt{SDK} di Android
- \item \texttt{secureit.opengl}: \textit{package} di utilità grafiche per la visualizzazione di animazioni 3D
- \end{itemize}
-\end{enumerate}
-
-\texttt{UploadService} viene attivato quando uno dei \textit{fragment} identifica un intrusione. Utilizza i seguenti \textit{task} asincroni per realizzare il caricamento dei dati al \textit{back-end}:
-\begin{itemize}
- \item \texttt{ImageUploaderTask}: carica le immagini catturate
- \item \texttt{AudioRecorderTask}: registra una traccia audio e la carica
- \item \texttt{PeriodicPositionUploaderTask}: invia periodicamente la posizione del telefono utilizzando rete \texttt{WIFI} o \texttt{3G}
- \item \texttt{Bluetooth\allowbreak Periodic\allowbreak Position\allowbreak Uploader\allowbreak Task}: invia periodicamente la posizione del telefono utilizzando comunicazione \textit{bluetooth} opportunistica, attivato soltanto quando non è attiva né la connessione \texttt{WIFI} né \texttt{3G}
- \item \texttt{BluetoothServerTask}: \textit{task} che risponde a messaggi \textit{bluetooth} e richiede l'\textit{upload} delegato della posizione
- \item \texttt{DelegatedPositionUploaderTask}: invia periodicamente la posizione di un altro telefono su delega
-\end{itemize}
-
-Lo scambio di messaggi \textit{bluetooth} viene fatto utilizzando i seguenti moduli:
-
-\begin{itemize}
- \item \texttt{ObjectBluetoothSocket}: \textit{socket} per l'invio di messaggi \textit{bluetooth}
- \item \texttt{secureit.messages}: \textit{package} contenente messaggi \textit{bluetooth}
-\end{itemize}
-
-
diff --git a/relazioni/ipermediali/image.tex b/relazioni/ipermediali/image.tex
deleted file mode 100644
index de7648f..0000000
--- a/relazioni/ipermediali/image.tex
+++ /dev/null
@@ -1,174 +0,0 @@
-\section{Rilevamento movimento ambientale}
-All'interno dell'applicazione l'apparato visivo del dispositivo viene utilizzato per eseguire \textit{motion detection}.\\
-Qualora tale impostazione venga abilitata è necessario esaminare le immagini catturate dal dispositivo per determinare se v'è stato del movimento all'interno del raggio visivo: ad intervalli regolari le foto scattate dalla fotocamera vengono esaminate e confrontate per determinare il movimento. Qualora l'algoritmo di \textit{motion detection} ritenga di aver determinato del movimento, tale stato viene notificato e si tenterà di conseguenza di spedire le immagini catturate al server predisposto e di notificare l'utente di una possibile intrusione.\\
-
-\noindent Le immagini catturate sono utilizzate per due ruoli fondamentali:
-\begin{enumerate}
- \item Sono i dati di input per l'algoritmo di \textit{motion detection}. In questo caso il ruolo che svolgono è statistico in quanto l'algoritmo utilizzato non è sofisticato e specifico per il riconoscimento di movimento umano
- \item Sono informazioni mnemoniche spedite al server incaricato al loro stoccaggio. In questo caso il ruolo che svolgono è semantico in quanto utilizzate dall'utente finale per riconoscere o meno un'intrusione
-\end{enumerate}
-\noindent Le immagini vengono inoltre utilizzate dall'applicazione per fornire all'utente un riscontro visivo di quel che l'applicazione rileva come movimento. All'interno dell'applicazione è stata appositamente creata una schermata che riassume lo stato della \textit{motion detection} come illustrato in figura \ref{fig:motionDetection}.
-\begin{figure}[!ht]
-\begin{center}
-\begin{minipage}[r]{.5\textwidth}
-\includegraphics[scale=.3]{./../wireless/resources/camera.png}
-\end{minipage}
-\begin{minipage}[l]{.4\textwidth}
-\caption{Schermata offerta dall'applicazione per il rilevamento del movimento ambientale.\\ L'immagine in alto corrisponde allo stream di immagini catturate dalla camera.\\ Le immagini in basso rappresentano gli ultimi due frame elaborati: l'immagine a sinistra rappresenta il penultimo frame catturato mentre l'immagine a destra rappresenta l'ultimo frame catturato in cui si evidenziano in rosso le porzioni d'immagine in cui è stato rilevato del movimento.}
-\label{fig:motionDetection}
-\end{minipage}
-\end{center}
-\end{figure}
-
-
-\subsection{Motion detection}
-L'algoritmo di \textit{motion detection} determina il movimento confrontando due immagini in scala di grigi. Le immagini vengono acquisite ad intervalli regolari di 1 secondo.\\
-Qualora la differenza tra queste due immagini sia superiore ad una certa soglia si identifica la presenza di movimento. I valori di soglia definiti hanno influenza su due componenti all'interno dell'algoritmo:
-\begin{enumerate}
- \item Poiché le immagini sono una collezione di pixel, il loro confronto avviene a tale livello. Risulta molto improbabile, anche in assenza di movimento, che due immagini consecutive abbiano i pixel corrispondenti identici: ad esempio una variazione di luminosità all'interno della stanza può essere causata dal passaggio di una nuvola, e tale variazione di luminosità è quello che si considera per determinare il movimento. \`E quindi necessario determinare un valore di soglia entro il quale due pixel, anche se non identici, vengono considerati non sostanzialmente differenti e non contribuiscono quindi a differenziare le immagini considerate.\\
- Questo valore di soglia viene applicato al confronto pixel a pixel.
- \item La differenza tra due immagini viene eseguita pixel per pixel. Risulta molto improbabile, anche in assenza di movimento, che due immagini consecutive abbiano tutti i pixel corrispondenti uguali: ad esempio uno spiffero d'aria può far muovere delle tende o dei vestiti. \`E quindi necessario determinare un valore di soglia che permetta di distinguere quando la differenza tra le immagini considerate sia trascurabile.\\
- Questo valore di soglia viene applicato sul conteggio di pixel che son variati da un'immagine alla successiva.
-\end{enumerate}
-L'utente può quindi specificare la sensibilità per il rilevamento del movimento all'avvio dell'applicazione. I valori disponibili e i relativi parametri sono:
-\begin{itemize}
- \item \texttt{LOW}: una sensibilità bassa. Permette una variazione di luminosità del 24\% per pixel (ossia la differenza tra due pixel deve essere compresa all'intervallo $[0,60]$) e determina il movimento qualora il 6.5\% dell'immagine sia cambiata (ossia qualora vengano determinati più di $20000$ pixel differenti).
- \item \texttt{MEDIUM}: una sensibilità media. Permette una variazione di luminosità del 20\% per pixel (ossia la differenza tra due pixel deve essere compresa all'intervallo $[0,50]$) e determina il movimento qualora il 3.2\% dell'immagine sia cambiata (ossia qualora vengano determinati più di $10000$ pixel differenti).
- \item \texttt{HIGH}: una sensibilità alta. Permette una variazione di luminosità del 16\% per pixel (ossia la differenza tra due pixel deve essere compresa all'intervallo $[0,40]$) e determina il movimento qualora il 2.9\% dell'immagine sia cambiata (ossia qualora vengano determinati più di $9000$ pixel differenti).
-\end{itemize}
-
-\subsection{Stoccaggio immagini}
-Qualora l'algoritmo di \textit{motion detection} ritenga di aver rilevato del movimento viene attivato il meccanismo incaricato di notificare l'avvenimento. Tale notifica varia a seconda delle impostazioni scelte dall'utente e dall'ambiente in cui si trova il dispositivo. Qualora l'opzione di notificare il server sia stata abilitata e l'ambiente lo permetta (sia presente una rete WiFi o vi sia collegamento 3G) le immagini catturate vengono spedite al server in attesa di essere consultate dall'utente.\\
-A seconda della connettività il numero delle immagini inviate variano:
-\begin{itemize}
- \item Accesso WiFi: vengono spedite 10 immagini
- \item Accesso 3G: vengono spedite 5 immagini
-\end{itemize}
-
-\subsection{Formati immagine utilizzati}
-L'acquisizione ed il formato delle immagini è un punto fondamentale per questa parte di applicazione: poiché si tenta di acquisire immagini ad intervalli di 1 secondo è importante che l'elaborazione di tali immagini non diventi un collo di bottiglia.\\
-
-Per ridurre il più possibile computazioni non necessarie o onerose è fondamentale utilizzare un formato immagine adatto agli scopi, a patto che tale conversione non diventi un carico ingente di computazione.\\
-
-\subsubsection{YUV NV21}
-Si è quindi deciso di acquisire le immagini in formato NV21.\\
-Tale formato si basa sullo spazio di colore YCbCr (anche se normalmente il formato viene identificato come YUV NV21\footnote{ Lo spazio colore YUV viene storicamente utilizzato per denotare codifiche di colori per segnali analogici, mentre YCbCr viene utilizzato per segnali digitali.}) con campionatura 4:2:0 (ossia entrambe le componenti di crominanza vengono sottocampionate di un fattore due sia in verticale che in orizzontale come evidenziato dalla figura \ref{YUVsampling}).\\
-\begin{figure}[!ht]
-\begin{center}
-\YUVsampling
-\end{center}
-\caption{Esempio di campionatura in spazio colore YCbCr $4:2:0$ di un'immagine di dimensioni $6×4$ pixel.}
-\label{YUVsampling}
-\end{figure}
-
-\noindent In particolare il formato NV21 definisce come le informazioni di luma e crominanza vengono organizzate. Questo formato è un formato semiplanare in quanto le informazioni di luma sono memorizzate separatamente dalle informazioni di crominanza:
-\begin{itemize}
- \item Viene definito un piano per la componente Y. La dimensione di questo piano è esattamente la dimensione dell'immagine in quanto questa componente non viene sottocampionata, ossia è presente una componente per ogni pixel dell'immagine
- \item Viene definito un piano condiviso per le componenti di crominanza U e V. La dimensione di questo piano è la metà del piano relativo alla componente Y in quanto le componenti di crominanza vengono sottocampionate di un fattore due (e quindi ogni componente di crominanza occupa un quarto della dimensione di luminanza).\\
- I valori campionati di U e V vengono memorizzati interlacciati (in quanto sono compresenti sullo stesso piano) e a partire dalla componente V come evidenziato dalla figura \ref{YUVplanes}.\\
-\end{itemize}
-\begin{figure}[!ht]
-\begin{center}
-\subfigure[Piano per i campioni luminanza]{\YUVplanesLuma}~
-\subfigure[Piano per i campioni crominanza]{\YUVpanesCroma}
-\end{center}
-\caption{Suddivisione dell'informazione visiva: piano dedicato all'informazione relativa esclusivamente alla luminanza e piano condiviso per l'informazione sulla crominanza blu e rossa.}
-\label{YUVplanes}
-\end{figure}
-
-\noindent Quello che si ottiene a livello di applicazione attraverso l'acquisizione da fotocamera è in realtà uno stream di byte unico in cui i piani (di luma e crominanza) vengono concatenati come mostrato in figura \ref{YUVbytestream}.
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\YUVbytestream}
-\end{center}
-\caption{Serializzazione dei valori nel bytestream.}
-\label{YUVbytestream}
-\end{figure}
-
-
-L'utilizzo del formato NV21 comporta diversi vantaggi:
-\begin{itemize}
- \item \`E il formato standard di acquisizione dei dispositivi Android: non è quindi necessario interrogare ogni volta il dispositivo per determinare i possibili formati di acquisizione. Avendo sempre a disposizione un unico formato è stato possibile definire una sola routine in grado di convertire immagini da questo formato a scala di grigi (formato utilizzato per il \textit{motion detection})
- \item Poiché tale formato è standard nei vari dispositivi c'è la garanzia che le prestazioni per l'acquisizione dell'immagine in tale formato siano migliori delle prestazioni ottenute dovendo operare una conversione ad hoc a livello applicazione
- \item Attraverso questo formato risulta immediato ottenere un'immagine in scala di grigi in quanto la componente luma è esplicitata: non son quindi necessarie conversioni più onerose come potrebbe essere la conversione da RGB a scala di grigi
- \item La struttura di questo formato è adatta ad operare su dispositivi mobili: la sua struttura interna riduce considerevolmente gli accessi in memoria in quanto le varie componenti sono salvate in locazioni di memoria abbastanza contigue.\\
- L'hardware incaricato all'acquisizione risulta inefficiente se per ogni pixel è necessario accedere in locazioni differenti di memoria (un accesso per ogni piano in cui devono venir memorizzate le varie componenti come per esempio RGB o YUV I444): la situazione ottimale per l'acquisizione si raggiungerebbe utilizzando un formato pacchettizzato, ma un formato semi-planare è comunque meglio di un formato planare.\\
- Per quanto riguarda l'elaborazione, il formato NV21 risulta invece ottimale: l'informazione principalmente utilizzata per l'elaborazione è quella relativa alla componente luma che è memorizzata in maniera contigua.
-\end{itemize}
-
-Per ridurre ulteriormente il carico di lavoro, poiché non interessa un'alta definizione per le immagini, viene impostata la fotocamera ad acquisire le immagini a risoluzione minore possibile (la scelta di default è $640×480$):
-\begin{itemize}
- \item Si evita un consumo di memoria eccessiva in quanto tali immagini devono venire successivamente salvate
- \item Poiché il tempo di creazione di un oggetto è limitato inferiormente dalla quantità di memoria che necessita, avere un'immagine di dimensioni minori permette una sua creazione celermente
- \item Si evita di dover utilizzare procedure di scaling definite dall'applicazione (che sarebbero meno efficienti delle procedure definite dall'hardware della fotocamera o dei suoi driver)
-\end{itemize}
-
-\subsubsection{RGB565}
-
-Nonostante l'informazione contenuta all'interno del formato NV21 sia sufficiente per applicare l'algoritmo di \textit{motion detection}, si è preferito estrarre esplicitamente l'informazione relativa alla luminanza e trattarla come informazione in scala di grigi. Questo procedimento viene eseguito principalmente per due motivi:
-\begin{enumerate}
- \item Dopo l'elaborazione per \textit{motion detection} siamo interessati a costruire un'immagine in scala di grigi. Risulta quindi utile avere a disposizione direttamente tale informazione. L'immagine in scala di grigi viene utilizzata per fornire all'utente il display delle differenze notate tra due immagini consecutive. Avendo a disposizione un'immagine in scala di grigi risulta immediato un meccanismo per evidenziare le zone dell'immagine in cui è stato determinato il movimento: è sufficiente colorare tali zone con un colore acceso (per esempio si utilizza il rosso) di modo che vi sia sufficiente contrasto con l'immagine di sfondo (che è appunto in scala di grigi)
- \item Java non offre operatori binari in grado di operare sui byte. Per evitare di affidarsi a conversioni implicite incontrollate si è preferito operare consapevolmente tali operazioni e assicurarsi di non causare errori
-\end{enumerate}
-
-La conversione in scala di grigi passa attraverso due fasi:
-\begin{enumerate}
- \item Ottenere l'esatta informazione sulla tonalità di grigio
- \item Costruire un'immagine in scala di grigi
-\end{enumerate}
-
-Attraverso la prima fase si ottiene una sequenza di \texttt{imageHeight×imageWidth} valori che corrispondono alla tonalità di grigio dei pixel dell'immagine. Su questa informazione viene applicato l'algoritmo di motion detection.\\
-Considerando le relazioni che intercorrono tra lo spazio di colori YCbCr e RGB
-\[
-\left[\begin{array}{c}R\\G\\B\end{array}\right] = \left[
-\begin{array}{ccc}1.164&0.000&1.793\\1.164&-0.213&-0.533\\1.164&2.112&0.000\end{array}
-\right]\cdot \left[\begin{array}{c}(Y-16)\\(Cb-128)\\(Cr-128)\end{array}\right]
-\]
-la conversione tra l'informazione Y a informazione di grigio risulta pressoché immediata: è sufficiente operare una singola sottrazione.\\
-Da notare che la conversione a scala di grigi viene effettuata sfruttando la struttura del formato NV21 in quanto l'informazione luma viene acceduta sequenzialmente (minimizzando in questo modo gli accessi in memoria) per produrre ordinatamente i pixel dell'immagine in scala di grigi.\\
-
-La seconda fase consiste nel creare un'immagine a partire dall'informazione di grigio appena estratta.\\
-Per poter operare la visualizzazione di un immagine all'interno di un dispositivo Android è necessario utilizzare l'apposita classe \texttt{Bitmap}. Sfortunatamente questa classe non supporta il formato di immagini in scala di grigi ma formati RGB o ARGB: non è possibile costruire quindi una \texttt{Bitmap} con un solo canale (corrispondente alla sfumatura di grigio) ma è necessario costruire una \texttt{Bitmap} con almeno 3 canali. Si è quindi reso necessario trasformare l'informazione sulla tonalità di grigio in informazione RGB (ossia replicare la luminosità in ogni canale RGB di modo da ottenere la tonalità di grigio voluta).
-\[\text{GRAY}(x) \to \text{RGB}(x, x, x) \qquad x \in [0 \ldots 255] \]
-L'utilizzo di una \texttt{Bitmap} a tre canali ha avuto comunque il vantaggio di poter manipolare l'immagine stessa per evidenziare le zone determinate da \textit{motion detection}. Avendo a disposizione tre canali è possibile cambiare l'informazione di un pixel per fargli assumere un qualsiasi colore, e non solo una sfumatura di grigio come sarebbe accaduto se si fosse utilizzata un'immagine ad un solo canale. Questa possibilità risulta molto utile per evidenziare le porzioni dell'immagine sulle quali l'algoritmo di \textit{motion detection} ha determinato del movimento.\\
-I formati disponibili per la \texttt{Bitmap} sono:
-\begin{itemize}
- \item ALPHA8: immagine che memorizza il solo canale di trasparenza
- \item ARGB4444: immagine che utilizza 2 byte per memorizzare un pixel, in cui l'informazione viene ripartita equamente tra le quattro componenti (ossia si hanno 4 bit o 16 valori per ogni componente)
- \item ARGB8888: immagine che per ognuna delle quattro componenti utilizza un byte
- \item RGB565: immagine che memorizza solo le componenti colore ma non la componente di trasparenza ed utilizza due byte per ogni pixel. L'informazione viene memorizzata non equamente in quanto vengono assegnati 5 bit per i canali rosso e blu e 6 bit per il canale verde
-\end{itemize}
-Si è deciso di utilizzare il formato RGB565 in quanto:
-\begin{enumerate}
- \item Il formato ALPHA8 risulta inutile ai nostri scopi in quanto la trasparenza è l'unica informazione che non viene utilizzata
- \item Il formato ARGB444 risulta in una qualità estremamente scadente. Inoltre, poiché non interessa la trasparenza, la presenza dell'\textit{alpha channel} impiega inutilmente dei bit che potrebbero essere utilizzati per memorizzare altre informazioni
- \item Il formato ARGB888, nonostante sia il più completo, si sarebbe tradotto in un utilizzo di memoria eccessivo per l'uso che si fa dell'immagine. La presenza dell'\textit{alpha channel} risulta inutile (in quanto non si utilizza trasparenza) e non è necessaria un'alta qualità dell'immagine
- \item Il formato RGB565 si traduce in un'occupazione di memoria moderata con una più che discreta qualità dell'immagine. La mancanza del canale di trasparenza si traduce con l'assenza di spreco di memoria. Nonostante venga consigliato di utilizzare questo formato immagine in presenza di qualche filtro di dithering per evitare che lo sbilanciamento d'informazione verso il canale verde (6 bit contro i 5 bit dei canali rosso e blu) si traduca con una sfumatura verdognola dell'immagine, nella nostra applicazione non viene applicato nessun filtro in quanto:
- \begin{itemize}
- \item Applicare un filtro consumerebbe preziose risorse (energia e tempo)
- \item Lavorando con un'immagine in scala di grigi più un colore vivace (per evidenziare le zone di movimento) non interessa minimamente una possibile sfumatura verdognola dell'immagine
- \end{itemize}
-\end{enumerate}
-Considerando quindi che:
-\begin{itemize}
- \item La qualità del colore dell'immagine di cui si fa il display è irrilevante in quanto l'immagine visualizzata è sostanzialmente un'immagine in scala di grigi
- \item L'immagine visualizzata cambia con una frequenza piuttosto elevata (1 volta al secondo circa) e non è quindi necessario che abbia una definizione elevata
- \item L'utilizzo di un formato che permetta di risparmiare memoria permette una manipolazione più veloce dell'immagine stessa
-\end{itemize}
-è parso che il formato RGB565 fosse il più adatto ai nostri scopi.
-
-\subsubsection{JPEG}
-Viene utilizzato il formato JPEG per salvare le immagini.\\
-Qualora si rilevasse del movimento e fosse disponibile una connessione di rete sarebbe necessario inviare le immagini scattate al server dedicato al raccoglimento di tali informazioni. Il formato JPEG è il formato più idoneo a questo scopo in quanto:
-\begin{itemize}
- \item Non è necessario modificare l'immagine.\\
- Le immagini visualizzate su dispositivo potevano richiedere una manipolazione (per evidenziare le zone di movimento): era quindi utile utilizzare un formato che permettesse una loro modifica in maniera istantanea senza dover utilizzare algoritmi di compressione e decompressione per effettuare tali cambiamenti. Una bitmap RGB era la soluzione ideale.\\
- Le immagini spedite al server non hanno necessità di essere modificate e non è quindi necessario utilizzare formati che facilitino tale operazione. Utilizzare il formato JPEG non causa quindi nessun problema
- \item \`E fortemente desiderabile che l'immagine occupi meno spazio possibile:
- \begin{itemize}
- \item L'immagine deve essere salvata sulla memoria del dispositivo in quanto, in caso di necessità, deve essere spedita al server incaricato alla raccolta delle informazioni. Considerando la limitata capacità di memoria dei dispositivi è bene risparmiare più spazio possibile
- \item Qualora l'immagine debba venir spedita sulla rete è estremamente desiderabile che l'informazione da inviare sia minima. Avere immagini di piccole dimensioni fa in modo che il processo di upload sia il più veloce possibile e permette di non sovraccaricare la banda disponibile (soprattutto qualora si sia connessi attraverso 3G)
- \end{itemize}
- Il formato JPEG è rinomato per la sua capacità di compressione ed è quindi ideale per ottenere immagini di dimensioni contenute
-\end{itemize}
-
diff --git a/relazioni/ipermediali/introduzione.tex b/relazioni/ipermediali/introduzione.tex
deleted file mode 100644
index 0744bb8..0000000
--- a/relazioni/ipermediali/introduzione.tex
+++ /dev/null
@@ -1,38 +0,0 @@
-\section{Introduzione}
-L'applicazione sviluppata vuole offrire un meccanismo per monitorare l'ambiente e il dispositivo a difesa da intrusioni indesiderate.
- \textit{SecureIt} è stata pensata come un'applicazione in grado di trasformare un dispositivo Android in un sistema d'allarme da posizionare opportunisticamente all'interno della propria abitazione in grado di avvisare l'utente di possibili intrusioni, fornirgli dati relativi all'intrusione ed in grado di fornire informazioni riguardanti la locazione del dispositivo stesso.\\
-
-A differenza di altre applicazioni già presenti nel mercato che focalizzano il loro meccanismo di controllo ambientale per garantire un solo tipo di sicurezza, \textit{SecureIt} tenta di sfruttare al massimo le potenzialità di un dispositivo per offrire meccanismi di protezione ad ampio spettro:
-\begin{itemize}
- \item Utilizza l'accelerometro per determinare movimenti del dispositivo. Questo meccanismo è in grado di rilevare qualora qualche intruso urti o prenda volontariamente il dispositivo
- \item Utilizza la fotocamera per rilevare e registrare movimento all'interno dell'ambiente in cui è posizionato il dispositivo. Qualora un intruso passi davanti alla fotocamera del dispositivo, tale movimento verrà rilevato
- \item Utilizza il microfono per rilevare e registrare rumori sospetti. Questo meccanismo è in grado di rilevare intrusi qualora non siano abbastanza cauti da non causare rumori
- \item Utilizza SMS per avvisare l'utente di aver rilevato una possibile intrusione
- \item Utilizza opportunisticamente reti WiFi e 3G per memorizzare su un server apposito le informazioni registrate (immagini o audio) relative all'intrusione
- \item Utilizza opportunisticamente servizi di localizzazione e collegamenti bluetooth con altri dispositivi per determinare la posizione del dispositivo. Qualora un intruso prelevi il dispositivo, il dispositivo stesso segnalerà ad intervalli regolari la propria posizione al server predisposto a raccogliere tali informazioni o i dispositivi scoperti tramite bluetooth si faranno portavoce per segnalare la posizione in cui è stato incontrato il dispositivo
-\end{itemize}
-
-Ovviamente l'utilizzo simultaneo di tutti questi meccanismi può essere oneroso per il dispositivo o addirittura impossibile qualora il dispositivo difetti di alcune componenti (fotocamera rotta, assenza di rete, etc.).\\
-All'avvio dell'applicazione viene quindi richiesto all'utente di selezionare i meccanismi che intende attivare.
-\begin{figure}[!ht]
-\begin{center}
-\includegraphics[scale=.3]{./../wireless/resources/config.png}
-\caption{Schermata iniziale per la configurazione dell'applicazione.}
-\label{fig:SchermataIniziale}
-\end{center}
-\end{figure}
-
-\noindent Figura \ref{fig:SchermataIniziale} illustra tale schermata e le varie opzioni che è possibile selezionare:
-\begin{enumerate}
- \item Abilitare l'utilizzo dell'accelerometro. Qualora non fosse disponibile l'accelerometro questa opzione non sarebbe visualizzata
- \item Abilitare l'utilizzo della fotocamera. Qualora si decida di utilizzare la fotocamera è possibile:
- \begin{itemize}
- \item Scegliere quale fotocamera utilizzare qualora siano disponibili più fotocamere
- \item Scegliere se abilitare il flash
- \item Scegliere la sensibilità con la quale l'applicazione determina il movimento
- \end{itemize}
- \item Abilitare l'utilizzo del microfono. Qualora si decida di utilizzare questa opzione è possibile specificare la sensibilità dell'applicazione verso il rilevamento del rumore
- \item Abilitare l'invio di messaggi SMS al numero specificato qualora venga determinata un'intrusione
- \item Abilitare l'invio delle informazioni raccolte al server incaricato qualora venga determinata un'intrusione. \`E necessario specificare le credenziali con le quali si è noti al server (è necessario essersi precedentemente registrati al server)
- \item Specificare un codice di sblocco per terminare l'applicazione. Solo la persona che ha avviato l'applicazione è in grado di farla terminare correttamente
-\end{enumerate}
diff --git a/relazioni/ipermediali/microphone.tex b/relazioni/ipermediali/microphone.tex
deleted file mode 100644
index 0535175..0000000
--- a/relazioni/ipermediali/microphone.tex
+++ /dev/null
@@ -1,162 +0,0 @@
-\section{Rilevamento rumore ambientale}
-Il microfono viene utilizzato per identificare un'eccessiva soglia di rumore nell'ambiente. Come per il precedente utilizzo dei sensori sono stati definiti tre livelli di sensibilità ciascuno dei quali fa riferimento ad uno specifico valore di decibels.
-
-\begin{itemize}
- \item \texttt{LOW}: \texttt{NOISE\_THRESHOLD = 60}
- \item \texttt{MEDIUM}: \texttt{NOISE\_THRESHOLD = 50}
- \item \texttt{HIGH}: \texttt{NOISE\_THRESHOLD = 30}
-\end{itemize}
-
-Per permettere all'utente di comprendere le operazioni in corso nell'applicazione viene mostrata una vista che contiene in valori in decibel campionati dal microfono. I valori sono rappresentati utilizzando un indicatore a doppio canale (in caso di dispositivi che supportano acquisizione stereo). Due livelli sono messi in risalto dall'indicatore, il primo è il valore di threshold oltre al quale viene segnalata un'intrusione mentre il secondo è una soglia arbitraria di rumore.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.3]{../wireless/resources/microphone.png}}
-\caption{Visualizzazione dei campionamenti del suono}
-\label{img:microphone}
-\end{center}
-\end{figure}
-
-\subsection{Campionamento}
-L'applicazione continua a campionare dal microfono un buffer di \texttt{512} valori in \texttt{PCM} a \texttt{16 BIT}.
-Le \texttt{API} di Android permettono inoltre di campionare con \texttt{PCM 8 BIT}, al fine di ottenere una maggiore qualità del suono acquisito e considerando che tali valori non vanno salvati su disco su è adottata \texttt{PCM 16 BIT}.\\
-Il microfono viene inoltre campionato in modalità mono di default, eventuali dispositivi che offrano microfoni audio in stereo sono campionati in stereo.\\
-
-I valori ottenuti rappresentano la digitalizzazione del rumore ambientale. Al fine di rendere tali valori comprensibili per l'utente finale e di utilizzarli per identificare eventuali intrusioni è necessario convertirli in una misura di intensità. La letteratura scientifica offre un notevole numero di tabelle che mostrano per ciascun rumore comune il corrispondente valore in decibel, come in figura \ref{img:decibels}.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.5]{../wireless/resources/decibels.jpeg}}
-\caption{Un esempio di scala di decibel}
-\label{img:decibels}
-\end{center}
-\end{figure}
-
-Al fine quindi di sfruttare le informazioni contenute in queste tabelle e la maggior comprensibilità di valori in decibels i valori in \texttt{PCM 16 BIT} sono convertiti per ottenere valori in \texttt{dB}.\\
-
-Facendo riferimento ad una misura di ampiezza possiamo definire in decibel un valore $V_i$ rispetto ad un valore di riferimento $V_o$ come 10 volte il logaritmo in base dieci del rapporto quadratico, ovvero:
-
-\begin{equation}
-dB_i = 10\log_{10} \left(\frac{V_i}{V_o}\right)^2 = 20\log_{10} \left(\frac{V_i}{V_o}\right)
-\end{equation}
-
-Nella conversione dei valori \texttt{PCM} in valori \texttt{dB} possiamo correttamente assumere che qualsiasi valore campionato dal microfono (valore \texttt{PCM} $\neq 0$) rappresenti qualcosa di udibile. Con questa assunzione possiamo utilizzare il valore \texttt{1} come soglia di riferimento per il calcolo dei decibel.\\
-
-Dato un campione sotto forma di array di \texttt{512 short integers} (che chiamiamo \texttt{signal}) lo pseudo-codice seguente può essere utilizzato per calcolare l'intensità media in \texttt{dB}:
-
-\begin{lstlisting}[language=Java, caption=Pseudo-codice per calcolare i valori in decibel da campionamento PCM]
-int total = 0
-int count = 0
-for (short peak : signal) {
- if (peak != 0) {
- total=total+|peak|
- count=count+1
- }
-}
-int average = 0
-if (count > 0) average = total/count
-
-double averageDB = 0.0
-if (average!=0) {
- averageDB = 20*log10((average)/1)
-}
-\end{lstlisting}
-
-Il codice appena presentato calcola il valore medio dei moduli dei valori dei singoli campionamenti \texttt{PCM}, questo valore viene utilizzato per calcolare l'intensità in \texttt{dB} rispetto al valore di riferimento \texttt{1}.
-
-\subsection{Registrazione}
-Qualora fosse identificata un'intrusione viene avviato un \texttt{thread} che inizia l'acquisizione di 10 secondi di audio che saranno poi caricati sul server.\\
-
-L'acquisizione avviene in formato \texttt{MPEG-4}.\\
-
-\texttt{MPEG-4 - part 3} è la sezione dello standard che si occupa di audio e rappresenta un insieme di algoritmi di compressione tra cui \texttt{AAC} ed alcune sue variazioni.\\
-
-\texttt{AAC} è uno schema di \textit{encoding} audio standardizzato definito per essere il successore di \texttt{MP3} (in effetti in generale raggiunge migliori qualità audio a parità di bit rate\footnote{Brandenburg, Karlheinz (1999). "MP3 and AAC Explained"}). \texttt{AAC} viene supportato nativamente dai dispositivi Android ed è per questo stato scelto schema di \textit{encoding}.\\
-
-\fcolorbox{red!50!yellow}{red!20!yellow!50}{\parbox{\textwidth}{
- \vskip10pt
- \leftskip10pt\rightskip10pt
- \textbf{Note: Android audio encoding}\\
-Il formato di encoding \texttt{MP3} non è reso disponibile per l'acquisizione da Android. Le ragioni sembrerebbero essere problematiche relative alla licenza. Negli anni infatti si sono susseguite diverse rivendicazioni di diritti sulle licenze necessarie per la produzione di audio in formato \texttt{MP3} risultando in molta confusione su cosa si possa o non si possa fare con il formato \texttt{MP3}.\\
-
-\texttt{AAC} invece non necessita di licenze per la riproduzione e la distribuzione di contenuti nel proprio formato.\\
-
-Nonostante l'esistenza di alternative non licenziate come \texttt{Vorbis} queste non sono offerte dal sistema Android.
-
- \vskip10pt
- }
-}\\
-
-\texttt{AAC} opera secondo le seguenti fasi:
-
-\begin{enumerate}
- \item Il segnale è convertito dal dominio del tempo al dominio della frequenza usando la trasformata coseno discreta modificata (\texttt{MDCT}). Questo viene fatto applicando banchi di filtri che prendono un numero appropriato di campioni nel tempo e li convertono a campioni di frequenza
- \item Il segnale nel dominio della frequenza viene quantizzato secondo il modello psicoacustico e codificato
- \item Sono applicati codici di correzione errori
- \item Il segnale viene salvato
-\end{enumerate}
-
-L'audio registrato e compresso utilizzando \texttt{AAC} viene poi trasmesso al back-end.
-
-\subsection{Riproduzione}
-Come detto l'audio catturato viene inviato all'applicazione web che deve provvedere alla riproduzione.\\
-Per ragioni della semplicità implementativa la riproduzione dell'audio viene effettuata sfruttando il tag \texttt{HTML5 <audio></audio>}.\\
-I \texttt{MIME Type} ammessi dal tag \texttt{<audio></audio>} e relativi formati sono i seguenti:
-
-\begin{itemize}
- \item \texttt{audio/mpeg}: formato \texttt{MP3}
- \item \texttt{audio/mp4}: formato \texttt{AAC}
- \item \texttt{audio/ogg}: formato \texttt{Ogg Vorbis}
- \item \texttt{audio/wav}: formato \texttt{WAV}
-\end{itemize}
-
-La codifica con cui l'audio viene catturato è \texttt{AAC}, tuttavia nonostante questa sia ammessa non è supportata da tutti i browser:
-
-\begin{center}
-\begin{tabular}{ l c r }
-\textbf{Browser} & \textbf{Version} & \textbf{Codec supportati} \\
-\toprule
-Internet Explorer & 9.0+ & MP3, AAC \\
-\midrule
-Chrome & 6.0+ & Ogg Vorbis, MP3, WAV \\
-\midrule
-Firefox & 3.6+ & Ogg Vorbis, WAV \\
-\midrule
-Safari & 5.0+ & MP3, AAC, WAV \\
-\midrule
-Opera & 10.0+ & Ogg Vorbis, WAV \\
-\bottomrule
-\end{tabular}
-\end{center}
-
-Come abbiamo visto non era possibile salvare diversamente l'audio e comunque non ci sono formati supportati da tutti i browser. Al fine di garantire una totale copertura si è deciso di scegliere le due codifiche \texttt{AAC} e \texttt{Ogg Vorbis}.\\
-
-La conversione direttamente su dispositivo da \texttt{AAC} a \texttt{Ogg Vorbis} è stata immediatamente esclusa:
-\begin{itemize}
- \item Android non sembra supportare nativamente \texttt{Ogg Vorbis} ed inoltre effettuare questa conversione a livello applicazione Java risulterebbe eccessivamente oneroso
- \item Si dovrebbe trasmettere il file audio attraverso la rete in duplice formato
-\end{itemize}
-Da qui quindi la scelta di convertire nella codifica \texttt{Ogg Vorbis} nell'applicazione web in seguito al caricamento dell'audio.\\
-
-La codifica \texttt{Vorbis} opera come:
-\begin{enumerate}
- \item Utilizzo della trasformata coseno discreta modificata (\texttt{MDCT}) per passare al dominio delle frequenze
- \item Il dominio delle frequenze risultante viene suddiviso in \textit{noise floor} e residuo
- \item Il dominio delle frequenze viene poi quantizzato e compresso entropicamente
-\end{enumerate}
-
-La tecnica \textit{noise floor} conferisce a \texttt{Ogg Vorbis} la caratteristica di degradare verso un rumore simil-analogico quando il bit-rate non è sufficiente a riprodurre con qualità l'audio.\\
-
-La conversione da \texttt{AAC} a \texttt{Ogg Vorbis} viene fatta avviando un processo corrispondente all'esecuzione del comando:\\
-
-\begin{center}
- \texttt{ffmpeg -i in.m4a -acodec libvorbis -aq 60 -vn -ac 2 out.ogg}
-\end{center}
-
-\begin{itemize}
- \item \texttt{-i}: indica il nome del file di input
- \item \texttt{-acodec}: indica il codec da utilizzare per la conversione (\texttt{libvorbis})
- \item \texttt{-aq}: permette di specificare la qualità richiesta in caso di codec \texttt{VBR (Variable Bit Rate)}, ovvero codec che permettono di specificare una qualità attesa e che utilizzeranno qualsiasi bit rate per raggiungerla (\texttt{Ogg Vorbis} è uno di questi. 60 è una buona qualità nel nostro caso
- \item \texttt{-vn}: disabilita il video
- \item \texttt{-ac}: specifica il numero di stream audio, impostiamo 2 per supportare flussi stereo
-\end{itemize}
diff --git a/relazioni/ipermediali/picture.tex b/relazioni/ipermediali/picture.tex
deleted file mode 100644
index 1e5fdf0..0000000
--- a/relazioni/ipermediali/picture.tex
+++ /dev/null
@@ -1,109 +0,0 @@
-\newcommand{\YUVsampling}{
-\begin{tikzpicture}
-\foreach \i in {0,1,...,3} {
- \foreach \j in {0,1,...,5} {
- \draw[thick,fill=gray!40] (\j,-\i)node{\footnotesize $Y_{\i\j}$} circle(.3cm);
- }
-}
-\foreach \j in {0,1,2} {
- \foreach \i in {0,1} {
- \draw[thick,fill=blue!30] (2*\j+.75,-2*\i-.5)node{\footnotesize $U_{\i\j}$} circle(.3cm);
- \draw[thick,fill=red!30] (2*\j+.25,-2*\i-.5)node{\footnotesize $V_{\i\j}$} circle(.3cm);
- }
-}
-%\draw (2.5,-3.5)node{\footnotesize campionatura 4:2:0 di un'immagine 6x4 pixel};
-\end{tikzpicture}}
-
-\newcommand{\block}[5]{\draw[thin,fill=#1!#5] (#2,#3) rectangle +(.9,-.9) node[midway]{\footnotesize #4};}
-
-\newcommand{\YUVplanesLuma}{
-\begin{tikzpicture}
-
-\block{gray}{0}{0}{$Y_{00}$}{80}\block{gray}{.9}{0}{$Y_{01}$}{80}
-\block{gray}{0}{-.9}{$Y_{10}$}{80}\block{gray}{.9}{-.9}{$Y_{11}$}{80}
-\draw[thick] (0,0)rectangle+(1.8,-1.8);
-
-\block{gray}{2}{0}{$Y_{02}$}{40}\block{gray}{2.9}{0}{$Y_{03}$}{40}
-\block{gray}{2}{-.9}{$Y_{12}$}{40}\block{gray}{2.9}{-.9}{$Y_{13}$}{40}
-\draw[thick] (2,0)rectangle+(1.8,-1.8);
-
-\block{gray}{4}{0}{$Y_{04}$}{60}\block{gray}{4.9}{0}{$Y_{05}$}{60}
-\block{gray}{4}{-.9}{$Y_{14}$}{60}\block{gray}{4.9}{-.9}{$Y_{15}$}{60}
-\draw[thick] (4,0)rectangle+(1.8,-1.8);
-
-\block{gray}{0}{-2}{$Y_{20}$}{30}\block{gray}{.9}{-2}{$Y_{21}$}{30}
-\block{gray}{0}{-2.9}{$Y_{30}$}{30}\block{gray}{.9}{-2.9}{$Y_{31}$}{30}
-\draw[thick] (0,-2)rectangle+(1.8,-1.8);
-
-\block{gray}{2}{-2}{$Y_{22}$}{70}\block{gray}{2.9}{-2}{$Y_{23}$}{70}
-\block{gray}{2}{-2.9}{$Y_{32}$}{70}\block{gray}{2.9}{-2.9}{$Y_{33}$}{70}
-\draw[thick] (2,-2)rectangle+(1.8,-1.8);
-
-\block{gray}{4}{-2}{$Y_{24}$}{50}\block{gray}{4.9}{-2}{$Y_{25}$}{50}
-\block{gray}{4}{-2.9}{$Y_{34}$}{50}\block{gray}{4.9}{-2.9}{$Y_{35}$}{50}
-\draw[thick] (4,-2)rectangle+(1.8,-1.8);
-
-%\draw (2.5, -4.5)node{\footnotesize piano per i campioni luminanza};
-\end{tikzpicture}}
-
-\newcommand{\YUVpanesCroma}{
-\begin{tikzpicture}
-\block{red}{7}{-1}{$V_{00}$}{80}\block{blue}{7.9}{-1}{$U_{00}$}{80}
-\draw[thick] (7,-1)rectangle+(1.8,-.9);
-
-\block{red}{9}{-1}{$V_{01}$}{40}\block{blue}{9.9}{-1}{$U_{01}$}{40}
-\draw[thick] (9,-1)rectangle+(1.8,-.9);
-
-\block{red}{11}{-1}{$V_{02}$}{60}\block{blue}{11.9}{-1}{$U_{02}$}{60}
-\draw[thick] (11,-1)rectangle+(1.8,-.9);
-
-\block{red}{7}{-2.1}{$V_{10}$}{30}\block{blue}{7.9}{-2.1}{$U_{10}$}{30}
-\draw[thick] (7,-2.1)rectangle+(1.8,-.9);
-
-\block{red}{9}{-2.1}{$V_{11}$}{70}\block{blue}{9.9}{-2.1}{$U_{11}$}{70}
-\draw[thick] (9,-2.1)rectangle+(1.8,-.9);
-
-\block{red}{11}{-2.1}{$V_{12}$}{50}\block{blue}{11.9}{-2.1}{$U_{12}$}{50}
-\draw[thick] (11,-2.1)rectangle+(1.8,-.9);
-
-%\draw(9.5, -4.5)node{\footnotesize piano per i campioni crominanza};
-\end{tikzpicture}}
-
-\newcommand{\blockA}[5]{\draw[thin,fill=#1!#5] (#2,#3) rectangle +(.5,-.5) node[midway]{\tiny #4};}
-\newcommand{\YUVbytestream}{
-\begin{tikzpicture}
-\blockA{gray}{0.0}{0}{$Y_{00}$}{80}\blockA{gray}{0.5}{0}{$Y_{01}$}{80}
-\blockA{gray}{1.0}{0}{$Y_{02}$}{40}\blockA{gray}{1.5}{0}{$Y_{03}$}{40}
-\blockA{gray}{2.0}{0}{$Y_{04}$}{60}\blockA{gray}{2.5}{0}{$Y_{05}$}{60}
-\blockA{gray}{3.0}{0}{$Y_{10}$}{80}\blockA{gray}{3.5}{0}{$Y_{11}$}{80}
-\blockA{gray}{4.0}{0}{$Y_{12}$}{40}\blockA{gray}{4.5}{0}{$Y_{13}$}{40}
-\blockA{gray}{5.0}{0}{$Y_{14}$}{60}\blockA{gray}{5.5}{0}{$Y_{15}$}{60}
-\blockA{gray}{6.0}{0}{$Y_{20}$}{30}\blockA{gray}{6.5}{0}{$Y_{21}$}{30}
-\blockA{gray}{7.0}{0}{$Y_{22}$}{70}\blockA{gray}{7.5}{0}{$Y_{23}$}{70}
-\blockA{gray}{8.0}{0}{$Y_{24}$}{50}\blockA{gray}{8.5}{0}{$Y_{25}$}{50}
-\blockA{gray}{9.0}{0}{$Y_{30}$}{30}\blockA{gray}{9.5}{0}{$Y_{31}$}{30}
-\blockA{gray}{10.0}{0}{$Y_{32}$}{70}\blockA{gray}{10.5}{0}{$Y_{33}$}{70}
-\blockA{gray}{11.0}{0}{$Y_{34}$}{50}\blockA{gray}{11.5}{0}{$Y_{35}$}{50}
-
-\blockA{red}{12.0}{0}{$V_{00}$}{80}\blockA{blue}{12.5}{0}{$U_{00}$}{80}
-\blockA{red}{13.0}{0}{$V_{01}$}{40}\blockA{blue}{13.5}{0}{$U_{01}$}{40}
-\blockA{red}{14.0}{0}{$V_{02}$}{60}\blockA{blue}{14.5}{0}{$U_{02}$}{60}
-\blockA{red}{15.0}{0}{$V_{10}$}{30}\blockA{blue}{15.5}{0}{$U_{10}$}{30}
-\blockA{red}{16.0}{0}{$V_{11}$}{70}\blockA{blue}{16.5}{0}{$U_{11}$}{70}
-\blockA{red}{17.0}{0}{$V_{12}$}{50}\blockA{blue}{17.5}{0}{$U_{12}$}{50}
-
-\end{tikzpicture}}
-
-\newcommand{\securityProtocol}{
-\begin{tikzpicture}
-\draw (0,0) node[above]{\footnotesize RICHIEDENTE ({$\color{red}key$})} -- (0, -5);
-\draw (6,0) node[above]{\footnotesize DELEGATO} -- (6, -5);
-\draw (12,0) node[above]{\footnotesize SERVER ({$\color{red}key$})} -- (12, -5);
-
-\draw[->,>=latex'] (0,-1) -- (6,-1)node[above,midway]{\footnotesize \texttt{HelloMessage}({$\color{blue}ID$})};
-\draw[<-,>=latex'] (0,-2) -- (6,-2)node[above,midway]{\footnotesize \texttt{KeyRequest}($lng,lat$)};
-\draw[->,>=latex'] (0,-3) -- (6,-3)node[above,midway]{\footnotesize \texttt{KeyResponse}($AES_{\color{red}key}(lng,lat)$)};
-\draw[->,>=latex'] (6,-4) -- (12,-4)node[above,midway]{\footnotesize \texttt{[POST] /api/phones/{$\color{blue}ID$}/position/delegated}};
-\draw[->,>=latex'] (6,-4) -- (12,-4)node[anchor=north,midway]{\footnotesize\{$AES_{\color{red}key}(lng,lat), lng,lat$\}};
-\draw (12,-5)node[anchor=north]{\footnotesize $AES^{-1}_{\color{red}key}(AES_{\color{red}key}(lng,lat)) =\!\!\!\!?\;\; (lng,lat)$};
-\end{tikzpicture}}
diff --git a/relazioni/ipermediali/relazione.tex b/relazioni/ipermediali/relazione.tex
deleted file mode 100644
index 99fe1d2..0000000
--- a/relazioni/ipermediali/relazione.tex
+++ /dev/null
@@ -1,34 +0,0 @@
-\documentclass[10pt,a4paper]{article}
-
-\input{template.tex}
-\input{picture.tex}
-
-\begin{document}
-
-\makeTitlePage
-
-\pagestyle{plain}
-\newpage
-\tableofcontents
-
-\newpage
-\pagestyle{testo}
-\input{introduzione.tex}
-
-\newpage
-\input{architettura.tex}
-
-\newpage
-\input{accelerometro.tex}
-
-\newpage
-\input{image.tex}
-
-\newpage
-\input{microphone.tex}
-
-\newpage
-\input{segnalazioni.tex}
-
-
-\end{document}
diff --git a/relazioni/ipermediali/segnalazioni.tex b/relazioni/ipermediali/segnalazioni.tex
deleted file mode 100644
index 2d314ef..0000000
--- a/relazioni/ipermediali/segnalazioni.tex
+++ /dev/null
@@ -1,98 +0,0 @@
-\section{Calibrazione sensori}
-Attraverso la pagina principale dell'applicazione l'utente ha la possibilità di impostare le diverse sensibilità dei meccanismi che vuole utilizzare. Ogni meccanismo dispone di 3 possibili sensibilità: bassa, media e alta.\\
-Nonostante non sia presente la possibilità di calibrare ad hoc queste sensibilità, è possibile determinare quale delle tre sia la più indicata facendo delle prove. Abilitando solamente i meccanismi di rilevamento e disabilitando le opzioni riguardanti l'upload delle informazioni è possibile tarare l'applicazione e prendere confidenza con le varie sensibilità preimpostate.\\
-Attraverso la schermata propria di ogni meccanismo di controllo può essere verificato quando tale meccanismo registra una situazione anomala (ossia quando i dati elaborati forniscono valori che eccedono la soglia relativa alla sensibilità impostata). Non avere abilitato il meccanismo di upload delle informazioni permette di poter sperimentare le varie sensibilità senza dover preoccuparsi di inviare dati inutili al server.\\
-\begin{itemize}
- \item \textit{Accelerometro}: si scuote il dispositivo. La comparsa della scritta ``\textsc{shake detected}'' su sfondo rosso indica che l'applicazione ha registrato un movimento anomalo e che (se abilitata) avrebbe sollevato l'allarme
- \item \textit{Microfono}: si generano suoni. La presenza di sezioni di colore arancione o rosso sulle barre solitamente verdi (ossia quando la barra supera la prima soglia evidenziata nella scala visualizzata) indica che l'applicazione ha registrato un rumore anomalo e che (se abilitata) avrebbe sollevato l'allarme
- \item \textit{Fotocamera}: si genera del movimento all'interno del campo visivo della fotocamera (o muovendo il dispositivo o inserendo oggetti animati nell'ambiente ripreso). La comparsa di chiazze rosse nell'immagine in scala di grigi in basso a destra indica che l'applicazione ha determinato del movimento e che (se abilitata) avrebbe sollevato l'allarme
-\end{itemize}
-
-
-\newpage
-\section {Gestione dati raccolti}
-Tutti i meccanismi per rilevare intrusioni sono stati implementati per produrre due tipi di informazioni:
-\begin{enumerate}
- \item Determinare qualora vi sia stata un'intrusione
- \item Fornire dati all'utente dell'avvenuta intrusione
-\end{enumerate}
-Ovviamente se tali dati rimanessero localizzati al dispositivo che li ha prodotti verrebbe meno l'utilità stessa dell'applicazione. Si è quindi reso necessario un meccanismo di notifica all'utente:
-\begin{enumerate}
- \item L'utente viene avvisato dell'avvenuta intrusione
- \item I dati vengono spediti ad un server dedicato di modo da poter essere consultati dall'utente in qualsiasi momento
-\end{enumerate}
-Tali operazioni sono naturalmente subordinate alle preferenze specificate dall'utente nella schermata principale dell'applicazione e alle effettive risorse disponibili al dispositivo (ad esempio non è possibile inviare i dati al server se il dispositivo non ha accesso alla rete, come non è possibile mandare un SMS di allerta qualora non vi sia copertura telefonica).\\
-Tutta l'applicazione verte quindi sulla generazione, elaborazione e memorizzazione di dati:
-\begin{enumerate}
- \item A seconda delle impostazioni abilitate dall'utente, il dispositivo inizia a monitorare l'ambiente producendo dati. Durante questa fase vengono prodotti dati grezzi che non hanno alcun significato per l'applicazione
- \item I dati raccolti dall'ambiente vengono elaborati a seconda della loro tipologia. Durante questa fase i dati grezzi vengono elaborati per fornire informazioni statistiche alle quali l'applicazione è in grado di associare, in un secondo momento, un significato.\\
- \textit{Poiché tali elaborazioni possono essere particolarmente onerose, vengono creati degli appositi daemon in grado di effettuare le computazioni necessarie, di modo da non sovraccaricare il thread grafico e mantenerlo quindi responsivo}
- \item I dati elaborati o le informazioni da loro ricavate vengono confrontate con valori di soglia (sensibilità impostate dall'utente) per stabilire se è necessario generare un allarme. Durante questa fase le informazioni statistiche prodotte durante la fase precedente vengono trasformate in informazioni semantiche per l'applicazione (informazioni semantiche basilari: c'è stata intrusione/non c'è stata intrusione)
- \item Qualora sia necessario generare un allarme vengono utilizzate tutte le risorse disponibili (conformemente alle preferenze specificate) per notificare l'utente dello stato anomalo che è stato registrato dal dispositivo
- \item Vengono spediti in un luogo sicuro (il server predisposto) tutti i dati in possesso all'applicazione. I dati inviati sono sostanzialmente (a meno di conversioni di formato) i dati grezzi catturati dal dispositivo durante la prima fase. Da notare che questi dati, nonostante non abbiano alcun significato per l'applicazione stessa, assumono una valenza semantica per l'utente, in quanto sono dati comprensibili e significativi per un essere umano (coordinate, audio, immagini)
-\end{enumerate}
-Qualora uno qualsiasi dei tre meccanismi predisposti al monitoraggio dell'ambiente riconosca uno stato anomalo, l'applicazione si preoccupa di inviare tutti i dati da lei posseduti.
-
-\subsection{Allerta tramite SMS}
-Il più semplice sistema di notifica è quello di inviare un SMS al numero specificato dall'utente tramite la schermata principale dell'applicazione.\\
-L'informazione contenuta nel messaggio è basilare e serve semplicemente per segnalare che l'applicazione ha riscontrato uno stato anomalo dell'ambiente sorvegliato. Questo messaggio segnala implicitamente che è possibile ottenere informazioni più accurate consultando il server al quale l'applicazione ha inviato i dati (qualora l'utente abbia abilitato le opzioni necessarie).
-
-\subsection{Utilizzo della rete}
-Qualora il dispositivo abbia accesso alla rete, l'applicazione si preoccupa di inviare al server predisposto tutte le informazioni accumulate.\\
-Le informazioni che l'applicazione tenta di memorizzare sul server di modo da essere accedute dall'utente in qualsiasi momento sono di tre tipi:
-\begin{enumerate}
- \item Immagini catturate dalla fotocamera. Poiché le immagini sono informazioni particolarmente onerose da inviare, è stato deciso di inviare un differente numero di immagini a seconda della tipologia di collegamento disponibile: tutte le immagini catturate qualora si sia connessi tramite WiFi, solo metà qualora si sia connessi tramite 3G
- \item Audio catturato dal microfono. Viene inviato (indifferentemente dal tipo di collegamento disponibile) un file audio contenente 10 secondi di registrazione
- \item Coordinate della posizione del dispositivo. Questo tipo di informazione, una volta sollevato l'allarme, viene spedito periodicamente al server di modo da poter tracciare il possibile spostamento del dispositivo (e quindi del malfattore). Per ottenere questa informazione è possibile utilizzare il GPS qualora sia attivo o sfruttare meccanismi di geo-localizzazione disponibili in rete
-\end{enumerate}
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{
-\subfigure[Schermata nella quale è possibile visualizzare l'ultima posizione conosciuta del dispositivo]{\includegraphics[scale=.3]{./../wireless/resources/map.png}}~
-\subfigure[Schermata nella quale è possibile visualizzare le foto scattate dalla fotocamera]{\includegraphics[scale=.3]{./../wireless/resources/slideshow.png}}}
-\end{center}
-\caption{Visualizzazione delle informazioni spedite al server}
-\label{fig:informazioniServer}
-\end{figure}
-
-Per spedire le informazioni al server vengono utilizzate le API REST messe a disposizione dal server:
-\begin{lstlisting}[caption=API REST utilizzate per spedire dati al server]
-[POST] /api/phones/:phoneId/images
-[POST] /api/phones/:phoneId/audio
-[POST] /api/phones/:phoneId/positions
-\end{lstlisting}
-Per poter utilizzare tali API è però necessario accertarsi dell'identità del dispositivo che tenta di inviare le informazioni. \`E quindi stata predisposta un'ulteriore API REST utilizzabile per ottenere un \textit{access token}:
-\begin{lstlisting}[caption=API REST utilizzate per identificarsi e ricevere l'access token]
-[POST] /users/accesstoken
-\end{lstlisting}
-Tale token investe il dispositivo dell'autorità di poter eseguire l'upload di informazioni in quanto, per poter ricevere e quindi avere a disposizione tale token, è necessario essere in possesso delle corrette credenziali con le quali l'utente (e quindi il dispositivo) è noto al server (credenziali spedite in POST assieme alla richiesta per l'\textit{access token}).
-
-\subsection{Utilizzo bluetooth}
-Qualora non si abbia accesso alla rete ed il bluetooth sia attivo, il dispositivo tenterà di mettersi in collegamento con altri dispositivi (che abbiano installata la stessa applicazione) per demandare a loro il compito di inviare dei dati al server. Poiché sarebbe troppo oneroso eseguire uno scambio di immagini e file audio, l'unica informazione che si richiede ad altri dispositivi di spedire al server è l'informazione riguardante la locazione del dispositivo al momento del collegamento.\\
-Per poter raggiungere questo obiettivo è necessario:
-\begin{itemize}
- \item Che le informazioni inviate al server non siano fasulle: ossia è necessario assicurarsi che i dati spediti da un dispositivo per conto di un altro siano informazioni veritiere e che non sia possibile contraffarle
- \item Che non vi sia la necessità di richiedere all'utente l'abilitazione di creare un collegamento bluetooth: non è plausibile che l'utente del dispositivo a cui si sta tentando di chiedere aiuto controlli in continuazione il proprio dispositivo per l'evenienza che vi sia un dispositivo rubato che tenta di collegarsi
-\end{itemize}
-
-Il primo requisito viene soddisfatto applicando un piccolo protocollo di firma dei dati ispirato al protocollo Kerberos. Chiamando ``dispositivo delegato'' il dispositivo a cui si richiede di inviare le informazioni al server e ``dispositivo richiedente'' il dispositivo che vuole inviare al server i propri dati ma che non può considerata l'assenza di rete, il protocollo che si è implementato (schematizzato in figura \ref{fig:protocolloBluetooth}) è:
-\begin{enumerate}
- \item Il dispositivo richiedente invia un \texttt{HelloMessage} ai dispositivi verso i quali è riuscito ad aprire una connessione (ossia i potenziali dispositivi delegati). All'interno di questo messaggio l'unica informazione importante è l'identificativo del dispositivo richiedente, identificativo che verrà usato dal dispositivo delegato per sapere dove inviare le informazioni (in quanto le API REST sono indicizzare sull'identificativo dei dispositivi)
- \item Il dispositivo delegato risponde con un \texttt{KeyRequest}, all'interno del quale si trovano le informazioni riguardanti latitudine e longitudine.
- \item Il dispositivo richiedente utilizza l'algoritmo AES per cifrare le informazioni contenute all'interno di \texttt{KeyRequest} ed ottenere così l'\texttt{authorization\_key}. L'\texttt{authorization\_key} viene quindi rispedita al dispositivo delegato all'interno di un \texttt{KeyResponse}
- \item Il dispositivo delegato invia quindi al server le informazioni di latitudine, longitudine e \texttt{authorization\_key} utilizzando l'API REST \texttt{[POST] /api/phones/:phoneId/position/delegated}
- \item Il server decifrando \texttt{authorization\_key} è in grado di determinare se il dispositivo delegato era veramente autorizzato a richiedere la memorizzazione dei dati
-\end{enumerate}
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\securityProtocol}
-\end{center}
-\caption{Schema del protocollo per l'autenticazione dei dati inviati al server da un dispositivo delegato.}
-\label{fig:protocolloBluetooth}
-\end{figure}
-Ovviamente questo protocollo può funzionare solamente se la chiave di cifratura (e quindi di decifratura in quanto AES è un algoritmo di cifratura simmetrico) è condivisa solo ed esclusivamente tra server e dispositivo richiedente. Infatti questo protocollo si basa sul fatto che solo il dispositivo che ha la chiave corretta è in grado di cifrare il messaggio che viene spedito al server: al server non basterà che controllare che il messaggio decifrato sia identico alle informazioni spedite in chiaro dal dispositivo delegato.\\
-La chiave che viene utilizzata all'interno di AES è una speciale sequenza alfanumerica condivisa esclusivamente tra server e dispositivo: il protocollo offre quindi la possibilità di stabilire l'autorità di un certo dispositivo ad inserire informazioni in vece di un altro dispositivo.\\
-
-Il secondo requisito viene soddisfatto sfruttando un particolare tipo di bluetooth server socket offerto dalle API Android: \texttt{listen\-Using\-Insecure\-Rfcomm\-With\-Service\-Record}. Nonostante venga sconsigliato utilizzare questo tipo di socket, in quanto non richiedendo l'esplicito consenso dell'utente può essere utilizzato per nuocere al dispositivo, è proprio il tipo di socket che permette il tipo di connessione di cui l'applicazione necessita.
-
diff --git a/relazioni/ipermediali/template.tex b/relazioni/ipermediali/template.tex
deleted file mode 100644
index cab939b..0000000
--- a/relazioni/ipermediali/template.tex
+++ /dev/null
@@ -1,120 +0,0 @@
-\usepackage{fancyhdr}
-\usepackage{lastpage}
-\usepackage[utf8x]{inputenc}
-\usepackage[italian]{babel}
-\usepackage[colorlinks=true,linkcolor=black]{hyperref}
-\usepackage{hhline}
-\usepackage{hyperref}
-\usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}
-\usepackage{indentfirst}
-\usepackage[Lenny]{fncychap}
-\usepackage{listings}
-\usepackage{verbatim}
-\usepackage{graphics}
-\usepackage{graphicx}
-\usepackage{amsmath}
-\usepackage{chngpage}
-\usepackage{booktabs}
-\usepackage{tikz}
-\usetikzlibrary{arrows}
-\usepackage[hang,centerlast]{subfigure}
-\usepackage{color}
-\usepackage{caption}
-\definecolor{dkgreen}{rgb}{0,0.6,0}
-\definecolor{gray}{rgb}{0.5,0.5,0.5}
-\definecolor{mauve}{rgb}{0.58,0,0.82}
-\DeclareCaptionFont{white}{\color{white}}
-\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\linewidth}{#1#2#3}}}
-\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
-\usepackage{listings}
-\lstset{ %
- basicstyle=\footnotesize, % the size of the fonts that are used for the code
- numbers=left, % where to put the line-numbers
- numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers
- stepnumber=1, % the step between two line-numbers. If it's 1, each line
- % will be numbered
- numbersep=5pt, % how far the line-numbers are from the code
- backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
- showspaces=false, % show spaces adding particular underscores
- showstringspaces=false, % underline spaces within strings
- showtabs=false, % show tabs within strings adding particular underscores
- %frame=single, % adds a frame around the code
- rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
- tabsize=2, % sets default tabsize to 2 spaces
- captionpos=t, % sets the caption-position to bottom
- breaklines=true, % sets automatic line breaking
- breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
- title=\lstname, % show the filename of files included with \lstinputlisting;
- % also try caption instead of title
- keywordstyle=\color{blue}, % keyword style
- commentstyle=\color{dkgreen}, % comment style
- stringstyle=\color{mauve}, % string literal style
- escapeinside={\%*}{*)}, % if you want to add a comment within your code
- morekeywords={*,...} % if you want to add more keywords to the set
-}
-
-
-
-\newcommand{\makeTitlePage} {
-\begin{titlepage}
-\begin{center}
-\textsc{università degli studi di Padova}\\
-\textsc{corso di laurea magistrale in Informatica}\\
-\textsc{anno accademico 2012 - 2013}\\[2cm]
-
-\includegraphics[scale=.4]{../wireless/resources/icona.pdf}\\[4cm]
-
-\setlength{\unitlength}{1cm}
-\begin{picture}(0,0)(10.7,0)
-{\color[rgb]{0, 0, 0} \rule{22cm}{70pt}}
-\end{picture}\\[-60pt]
-{\huge {\textsc{\color{white} progetto di Sistemi Ipermediali}}}\\[.7cm]
-{\huge {\textsc{\color{white} SecureIt}}}
-
-\end{center}~\\[1cm]
-\begin{flushright}
-Bonato Luca - 1035858\\
-Ziccardi Marco - 1035857\\
-\end{flushright}
-\end{titlepage}}
-
-\newcommand{\flower}{
-\begin{tikzpicture}
-\foreach \i in {0,10,...,100} {
- \foreach \j in {0,30,...,330} {
- \draw[fill=yellow!\i!red] (\j+.01*\i*\i:.04*\i+.001*\i) circle (.01*\i+.1);
- }
-}
-\foreach \j in {0,30,...,330} {
- \draw[fill=red!70!green] (\j+1000:4.3) circle (.1cm);
-}
-\end{tikzpicture}}
-
-\newcommand{\upperborder}{
-\begin{tikzpicture}
-\clip (0,0) rectangle (24.5, 4);
-\foreach \i in {0,1,...,6} {
- \fill[red!40!yellow] (\i*4.5, 0) circle (2.5cm);
- \foreach \j in {0,30,...,180} {
- \fill[red!40!yellow] (\i*4.5,0) +(\j:2.5cm) circle (.7cm);
- \foreach \z in {0,40,...,360} {
- \fill[red!40!yellow] (\i*4.5,0) ++(\j:2.5cm) +(\z:1cm) circle (.2cm);
- }
- }
-}
-
-\end{tikzpicture}}
-
-\fancypagestyle{testo}{
-\pagenumbering{arabic}
-\setcounter{page}{1}
-%\lhead{\begin{picture}(0,0)(145,4)\upperborder\end{picture}}
-\chead{}
-\rhead{}
-\lfoot{\footnotesize \textsc{Sistemi Ipermediali}}
-\cfoot{\thepage}
-\rfoot{}
-\renewcommand{\headrulewidth}{0.4pt}
-\renewcommand{\footrulewidth}{0.4pt}
-}
-
diff --git a/relazioni/wireless/IEEEtran.cls b/relazioni/wireless/IEEEtran.cls
deleted file mode 100644
index 5681714..0000000
--- a/relazioni/wireless/IEEEtran.cls
+++ /dev/null
@@ -1,4702 +0,0 @@
-%%
-%% IEEEtran.cls 2007/03/05 version V1.7a
-%%
-%%
-%% This is the official IEEE LaTeX class for authors of the Institute of
-%% Electrical and Electronics Engineers (IEEE) Transactions journals and
-%% conferences.
-%%
-%% Support sites:
-%% http://www.michaelshell.org/tex/ieeetran/
-%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
-%% and
-%% http://www.ieee.org/
-%%
-%% Based on the original 1993 IEEEtran.cls, but with many bug fixes
-%% and enhancements (from both JVH and MDS) over the 1996/7 version.
-%%
-%%
-%% Contributors:
-%% Gerry Murray (1993), Silvano Balemi (1993),
-%% Jon Dixon (1996), Peter N"uchter (1996),
-%% Juergen von Hagen (2000), and Michael Shell (2001-2007)
-%%
-%%
-%% Copyright (c) 1993-2000 by Gerry Murray, Silvano Balemi,
-%% Jon Dixon, Peter N"uchter,
-%% Juergen von Hagen
-%% and
-%% Copyright (c) 2001-2007 by Michael Shell
-%%
-%% Current maintainer (V1.3 to V1.7): Michael Shell
-%% See:
-%% http://www.michaelshell.org/
-%% for current contact information.
-%%
-%% Special thanks to Peter Wilson (CUA) and Donald Arseneau
-%% for allowing the inclusion of the \@ifmtarg command
-%% from their ifmtarg LaTeX package.
-%%
-%%*************************************************************************
-%% Legal Notice:
-%% This code is offered as-is without any warranty either expressed or
-%% implied; without even the implied warranty of MERCHANTABILITY or
-%% FITNESS FOR A PARTICULAR PURPOSE!
-%% User assumes all risk.
-%% In no event shall IEEE or any contributor to this code be liable for
-%% any damages or losses, including, but not limited to, incidental,
-%% consequential, or any other damages, resulting from the use or misuse
-%% of any information contained here.
-%%
-%% All comments are the opinions of their respective authors and are not
-%% necessarily endorsed by the IEEE.
-%%
-%% This work is distributed under the LaTeX Project Public License (LPPL)
-%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
-%% distributed and modified. A copy of the LPPL, version 1.3, is included
-%% in the base LaTeX documentation of all distributions of LaTeX released
-%% 2003/12/01 or later.
-%% Retain all contribution notices and credits.
-%% ** Modified files should be clearly indicated as such, including **
-%% ** renaming them and changing author support contact information. **
-%%
-%% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex,
-%% bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex
-%%
-%% Major changes to the user interface should be indicated by an
-%% increase in the version numbers. If a version is a beta, it will
-%% be indicated with a BETA suffix, i.e., 1.4 BETA.
-%% Small changes can be indicated by appending letters to the version
-%% such as "IEEEtran_v14a.cls".
-%% In all cases, \Providesclass, any \typeout messages to the user,
-%% \IEEEtransversionmajor and \IEEEtransversionminor must reflect the
-%% correct version information.
-%% The changes should also be documented via source comments.
-%%*************************************************************************
-%%
-%
-% Available class options
-% e.g., \documentclass[10pt,conference]{IEEEtran}
-%
-% *** choose only one from each category ***
-%
-% 9pt, 10pt, 11pt, 12pt
-% Sets normal font size. The default is 10pt.
-%
-% conference, journal, technote, peerreview, peerreviewca
-% determines format mode - conference papers, journal papers,
-% correspondence papers (technotes), or peer review papers. The user
-% should also select 9pt when using technote. peerreview is like
-% journal mode, but provides for a single-column "cover" title page for
-% anonymous peer review. The paper title (without the author names) is
-% repeated at the top of the page after the cover page. For peer review
-% papers, the \IEEEpeerreviewmaketitle command must be executed (will
-% automatically be ignored for non-peerreview modes) at the place the
-% cover page is to end, usually just after the abstract (keywords are
-% not normally used with peer review papers). peerreviewca is like
-% peerreview, but allows the author names to be entered and formatted
-% as with conference mode so that author affiliation and contact
-% information can be easily seen on the cover page.
-% The default is journal.
-%
-% draft, draftcls, draftclsnofoot, final
-% determines if paper is formatted as a widely spaced draft (for
-% handwritten editor comments) or as a properly typeset final version.
-% draftcls restricts draft mode to the class file while all other LaTeX
-% packages (i.e., \usepackage{graphicx}) will behave as final - allows
-% for a draft paper with visible figures, etc. draftclsnofoot is like
-% draftcls, but does not display the date and the word "DRAFT" at the foot
-% of the pages. If using one of the draft modes, the user will probably
-% also want to select onecolumn.
-% The default is final.
-%
-% letterpaper, a4paper
-% determines paper size: 8.5in X 11in or 210mm X 297mm. CHANGING THE PAPER
-% SIZE WILL NOT ALTER THE TYPESETTING OF THE DOCUMENT - ONLY THE MARGINS
-% WILL BE AFFECTED. In particular, documents using the a4paper option will
-% have reduced side margins (A4 is narrower than US letter) and a longer
-% bottom margin (A4 is longer than US letter). For both cases, the top
-% margins will be the same and the text will be horizontally centered.
-% For final submission to IEEE, authors should use US letter (8.5 X 11in)
-% paper. Note that authors should ensure that all post-processing
-% (ps, pdf, etc.) uses the same paper specificiation as the .tex document.
-% Problems here are by far the number one reason for incorrect margins.
-% IEEEtran will automatically set the default paper size under pdflatex
-% (without requiring a change to pdftex.cfg), so this issue is more
-% important to dvips users. Fix config.ps, config.pdf, or ~/.dvipsrc for
-% dvips, or use the dvips -t papersize option instead as needed. See the
-% testflow documentation
-% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/testflow
-% for more details on dvips paper size configuration.
-% The default is letterpaper.
-%
-% oneside, twoside
-% determines if layout follows single sided or two sided (duplex)
-% printing. The only notable change is with the headings at the top of
-% the pages.
-% The default is oneside.
-%
-% onecolumn, twocolumn
-% determines if text is organized into one or two columns per page. One
-% column mode is usually used only with draft papers.
-% The default is twocolumn.
-%
-% compsoc
-% Use the format of the IEEE Computer Society.
-%
-% romanappendices
-% Use the "Appendix I" convention when numbering appendices. IEEEtran.cls
-% now defaults to Alpha "Appendix A" convention - the opposite of what
-% v1.6b and earlier did.
-%
-% captionsoff
-% disables the display of the figure/table captions. Some IEEE journals
-% request that captions be removed and figures/tables be put on pages
-% of their own at the end of an initial paper submission. The endfloat
-% package can be used with this class option to achieve this format.
-%
-% nofonttune
-% turns off tuning of the font interword spacing. Maybe useful to those
-% not using the standard Times fonts or for those who have already "tuned"
-% their fonts.
-% The default is to enable IEEEtran to tune font parameters.
-%
-%
-%----------
-% Available CLASSINPUTs provided (all are macros unless otherwise noted):
-% \CLASSINPUTbaselinestretch
-% \CLASSINPUTinnersidemargin
-% \CLASSINPUToutersidemargin
-% \CLASSINPUTtoptextmargin
-% \CLASSINPUTbottomtextmargin
-%
-% Available CLASSINFOs provided:
-% \ifCLASSINFOpdf (TeX if conditional)
-% \CLASSINFOpaperwidth (macro)
-% \CLASSINFOpaperheight (macro)
-% \CLASSINFOnormalsizebaselineskip (length)
-% \CLASSINFOnormalsizeunitybaselineskip (length)
-%
-% Available CLASSOPTIONs provided:
-% all class option flags (TeX if conditionals) unless otherwise noted,
-% e.g., \ifCLASSOPTIONcaptionsoff
-% point size options provided as a single macro:
-% \CLASSOPTIONpt
-% which will be defined as 9, 10, 11, or 12 depending on the document's
-% normalsize point size.
-% also, class option peerreviewca implies the use of class option peerreview
-% and classoption draft implies the use of class option draftcls
-
-
-
-
-
-\ProvidesClass{IEEEtran}[2007/03/05 V1.7a by Michael Shell]
-\typeout{-- See the "IEEEtran_HOWTO" manual for usage information.}
-\typeout{-- http://www.michaelshell.org/tex/ieeetran/}
-\NeedsTeXFormat{LaTeX2e}
-
-% IEEEtran.cls version numbers, provided as of V1.3
-% These values serve as a way a .tex file can
-% determine if the new features are provided.
-% The version number of this IEEEtrans.cls can be obtained from
-% these values. i.e., V1.4
-% KEEP THESE AS INTEGERS! i.e., NO {4a} or anything like that-
-% (no need to enumerate "a" minor changes here)
-\def\IEEEtransversionmajor{1}
-\def\IEEEtransversionminor{7}
-
-% These do nothing, but provide them like in article.cls
-\newif\if@restonecol
-\newif\if@titlepage
-
-
-% class option conditionals
-\newif\ifCLASSOPTIONonecolumn \CLASSOPTIONonecolumnfalse
-\newif\ifCLASSOPTIONtwocolumn \CLASSOPTIONtwocolumntrue
-
-\newif\ifCLASSOPTIONoneside \CLASSOPTIONonesidetrue
-\newif\ifCLASSOPTIONtwoside \CLASSOPTIONtwosidefalse
-
-\newif\ifCLASSOPTIONfinal \CLASSOPTIONfinaltrue
-\newif\ifCLASSOPTIONdraft \CLASSOPTIONdraftfalse
-\newif\ifCLASSOPTIONdraftcls \CLASSOPTIONdraftclsfalse
-\newif\ifCLASSOPTIONdraftclsnofoot \CLASSOPTIONdraftclsnofootfalse
-
-\newif\ifCLASSOPTIONpeerreview \CLASSOPTIONpeerreviewfalse
-\newif\ifCLASSOPTIONpeerreviewca \CLASSOPTIONpeerreviewcafalse
-
-\newif\ifCLASSOPTIONjournal \CLASSOPTIONjournaltrue
-\newif\ifCLASSOPTIONconference \CLASSOPTIONconferencefalse
-\newif\ifCLASSOPTIONtechnote \CLASSOPTIONtechnotefalse
-
-\newif\ifCLASSOPTIONnofonttune \CLASSOPTIONnofonttunefalse
-
-\newif\ifCLASSOPTIONcaptionsoff \CLASSOPTIONcaptionsofffalse
-
-\newif\ifCLASSOPTIONcompsoc \CLASSOPTIONcompsocfalse
-
-\newif\ifCLASSOPTIONromanappendices \CLASSOPTIONromanappendicesfalse
-
-
-% class info conditionals
-
-% indicates if pdf (via pdflatex) output
-\newif\ifCLASSINFOpdf \CLASSINFOpdffalse
-
-
-% V1.6b internal flag to show if using a4paper
-\newif\if@IEEEusingAfourpaper \@IEEEusingAfourpaperfalse
-
-
-
-% IEEEtran class scratch pad registers
-% dimen
-\newdimen\@IEEEtrantmpdimenA
-\newdimen\@IEEEtrantmpdimenB
-% count
-\newcount\@IEEEtrantmpcountA
-\newcount\@IEEEtrantmpcountB
-% token list
-\newtoks\@IEEEtrantmptoksA
-
-% we use \CLASSOPTIONpt so that we can ID the point size (even for 9pt docs)
-% as well as LaTeX's \@ptsize to retain some compatability with some
-% external packages
-\def\@ptsize{0}
-% LaTeX does not support 9pt, so we set \@ptsize to 0 - same as that of 10pt
-\DeclareOption{9pt}{\def\CLASSOPTIONpt{9}\def\@ptsize{0}}
-\DeclareOption{10pt}{\def\CLASSOPTIONpt{10}\def\@ptsize{0}}
-\DeclareOption{11pt}{\def\CLASSOPTIONpt{11}\def\@ptsize{1}}
-\DeclareOption{12pt}{\def\CLASSOPTIONpt{12}\def\@ptsize{2}}
-
-
-
-\DeclareOption{letterpaper}{\setlength{\paperheight}{11in}%
- \setlength{\paperwidth}{8.5in}%
- \@IEEEusingAfourpaperfalse
- \def\CLASSOPTIONpaper{letter}%
- \def\CLASSINFOpaperwidth{8.5in}%
- \def\CLASSINFOpaperheight{11in}}
-
-
-\DeclareOption{a4paper}{\setlength{\paperheight}{297mm}%
- \setlength{\paperwidth}{210mm}%
- \@IEEEusingAfourpapertrue
- \def\CLASSOPTIONpaper{a4}%
- \def\CLASSINFOpaperwidth{210mm}%
- \def\CLASSINFOpaperheight{297mm}}
-
-\DeclareOption{oneside}{\@twosidefalse\@mparswitchfalse
- \CLASSOPTIONonesidetrue\CLASSOPTIONtwosidefalse}
-\DeclareOption{twoside}{\@twosidetrue\@mparswitchtrue
- \CLASSOPTIONtwosidetrue\CLASSOPTIONonesidefalse}
-
-\DeclareOption{onecolumn}{\CLASSOPTIONonecolumntrue\CLASSOPTIONtwocolumnfalse}
-\DeclareOption{twocolumn}{\CLASSOPTIONtwocolumntrue\CLASSOPTIONonecolumnfalse}
-
-% If the user selects draft, then this class AND any packages
-% will go into draft mode.
-\DeclareOption{draft}{\CLASSOPTIONdrafttrue\CLASSOPTIONdraftclstrue
- \CLASSOPTIONdraftclsnofootfalse}
-% draftcls is for a draft mode which will not affect any packages
-% used by the document.
-\DeclareOption{draftcls}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclstrue
- \CLASSOPTIONdraftclsnofootfalse}
-% draftclsnofoot is like draftcls, but without the footer.
-\DeclareOption{draftclsnofoot}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclstrue
- \CLASSOPTIONdraftclsnofoottrue}
-\DeclareOption{final}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclsfalse
- \CLASSOPTIONdraftclsnofootfalse}
-
-\DeclareOption{journal}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse
- \CLASSOPTIONjournaltrue\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse}
-
-\DeclareOption{conference}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse
- \CLASSOPTIONjournalfalse\CLASSOPTIONconferencetrue\CLASSOPTIONtechnotefalse}
-
-\DeclareOption{technote}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse
- \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotetrue}
-
-\DeclareOption{peerreview}{\CLASSOPTIONpeerreviewtrue\CLASSOPTIONpeerreviewcafalse
- \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse}
-
-\DeclareOption{peerreviewca}{\CLASSOPTIONpeerreviewtrue\CLASSOPTIONpeerreviewcatrue
- \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse}
-
-\DeclareOption{nofonttune}{\CLASSOPTIONnofonttunetrue}
-
-\DeclareOption{captionsoff}{\CLASSOPTIONcaptionsofftrue}
-
-\DeclareOption{compsoc}{\CLASSOPTIONcompsoctrue}
-
-\DeclareOption{romanappendices}{\CLASSOPTIONromanappendicestrue}
-
-
-% default to US letter paper, 10pt, twocolumn, one sided, final, journal
-\ExecuteOptions{letterpaper,10pt,twocolumn,oneside,final,journal}
-% overrride these defaults per user requests
-\ProcessOptions
-
-
-
-% Computer Society conditional execution command
-\long\def\@IEEEcompsoconly#1{\relax\ifCLASSOPTIONcompsoc\relax#1\relax\fi\relax}
-% inverse
-\long\def\@IEEEnotcompsoconly#1{\relax\ifCLASSOPTIONcompsoc\else\relax#1\relax\fi\relax}
-% compsoc conference
-\long\def\@IEEEcompsocconfonly#1{\relax\ifCLASSOPTIONcompsoc\ifCLASSOPTIONconference\relax#1\relax\fi\fi\relax}
-% compsoc not conference
-\long\def\@IEEEcompsocnotconfonly#1{\relax\ifCLASSOPTIONcompsoc\ifCLASSOPTIONconference\else\relax#1\relax\fi\fi\relax}
-
-
-% IEEE uses Times Roman font, so we'll default to Times.
-% These three commands make up the entire times.sty package.
-\renewcommand{\sfdefault}{phv}
-\renewcommand{\rmdefault}{ptm}
-\renewcommand{\ttdefault}{pcr}
-
-\@IEEEcompsoconly{\typeout{-- Using IEEE Computer Society mode.}}
-
-% V1.7 compsoc nonconference papers, use Palatino/Palladio as the main text font,
-% not Times Roman.
-\@IEEEcompsocnotconfonly{\renewcommand{\rmdefault}{ppl}}
-
-% enable Times/Palatino main text font
-\normalfont\selectfont
-
-
-
-
-
-% V1.7 conference notice message hook
-\def\@IEEEconsolenoticeconference{\typeout{}%
-\typeout{** Conference Paper **}%
-\typeout{Before submitting the final camera ready copy, remember to:}%
-\typeout{}%
-\typeout{ 1. Manually equalize the lengths of two columns on the last page}%
-\typeout{ of your paper;}%
-\typeout{}%
-\typeout{ 2. Ensure that any PostScript and/or PDF output post-processing}%
-\typeout{ uses only Type 1 fonts and that every step in the generation}%
-\typeout{ process uses the appropriate paper size.}%
-\typeout{}}
-
-
-% we can send console reminder messages to the user here
-\AtEndDocument{\ifCLASSOPTIONconference\@IEEEconsolenoticeconference\fi}
-
-
-% warn about the use of single column other than for draft mode
-\ifCLASSOPTIONtwocolumn\else%
- \ifCLASSOPTIONdraftcls\else%
- \typeout{** ATTENTION: Single column mode is not typically used with IEEE publications.}%
- \fi%
-\fi
-
-
-% V1.7 improved paper size setting code.
-% Set pdfpage and dvips paper sizes. Conditional tests are similar to that
-% of ifpdf.sty. Retain within {} to ensure tested macros are never altered,
-% even if only effect is to set them to \relax.
-% if \pdfoutput is undefined or equal to relax, output a dvips special
-{\@ifundefined{pdfoutput}{\AtBeginDvi{\special{papersize=\CLASSINFOpaperwidth,\CLASSINFOpaperheight}}}{%
-% pdfoutput is defined and not equal to \relax
-% check for pdfpageheight existence just in case someone sets pdfoutput
-% under non-pdflatex. If exists, set them regardless of value of \pdfoutput.
-\@ifundefined{pdfpageheight}{\relax}{\global\pdfpagewidth\paperwidth
-\global\pdfpageheight\paperheight}%
-% if using \pdfoutput=0 under pdflatex, send dvips papersize special
-\ifcase\pdfoutput
-\AtBeginDvi{\special{papersize=\CLASSINFOpaperwidth,\CLASSINFOpaperheight}}%
-\else
-% we are using pdf output, set CLASSINFOpdf flag
-\global\CLASSINFOpdftrue
-\fi}}
-
-% let the user know the selected papersize
-\typeout{-- Using \CLASSINFOpaperwidth\space x \CLASSINFOpaperheight\space
-(\CLASSOPTIONpaper)\space paper.}
-
-\ifCLASSINFOpdf
-\typeout{-- Using PDF output.}
-\else
-\typeout{-- Using DVI output.}
-\fi
-
-
-% The idea hinted here is for LaTeX to generate markleft{} and markright{}
-% automatically for you after you enter \author{}, \journal{},
-% \journaldate{}, journalvol{}, \journalnum{}, etc.
-% However, there may be some backward compatibility issues here as
-% well as some special applications for IEEEtran.cls and special issues
-% that may require the flexible \markleft{}, \markright{} and/or \markboth{}.
-% We'll leave this as an open future suggestion.
-%\newcommand{\journal}[1]{\def\@journal{#1}}
-%\def\@journal{}
-
-
-
-% pointsize values
-% used with ifx to determine the document's normal size
-\def\@IEEEptsizenine{9}
-\def\@IEEEptsizeten{10}
-\def\@IEEEptsizeeleven{11}
-\def\@IEEEptsizetwelve{12}
-
-
-
-% FONT DEFINITIONS (No sizexx.clo file needed)
-% V1.6 revised font sizes, displayskip values and
-% revised normalsize baselineskip to reduce underfull vbox problems
-% on the 58pc = 696pt = 9.5in text height we want
-% normalsize #lines/column baselineskip (aka leading)
-% 9pt 63 11.0476pt (truncated down)
-% 10pt 58 12pt (exact)
-% 11pt 52 13.3846pt (truncated down)
-% 12pt 50 13.92pt (exact)
-%
-
-% we need to store the nominal baselineskip for the given font size
-% in case baselinestretch ever changes.
-% this is a dimen, so it will not hold stretch or shrink
-\newdimen\@IEEEnormalsizeunitybaselineskip
-\@IEEEnormalsizeunitybaselineskip\baselineskip
-
-\ifx\CLASSOPTIONpt\@IEEEptsizenine
-\typeout{-- This is a 9 point document.}
-\def\normalsize{\@setfontsize{\normalsize}{9}{11.0476pt}}%
-\setlength{\@IEEEnormalsizeunitybaselineskip}{11.0476pt}%
-\normalsize
-\abovedisplayskip 1.5ex plus3pt minus1pt%
-\belowdisplayskip \abovedisplayskip%
-\abovedisplayshortskip 0pt plus3pt%
-\belowdisplayshortskip 1.5ex plus3pt minus1pt
-\def\small{\@setfontsize{\small}{8.5}{10pt}}
-\def\footnotesize{\@setfontsize{\footnotesize}{8}{9pt}}
-\def\scriptsize{\@setfontsize{\scriptsize}{7}{8pt}}
-\def\tiny{\@setfontsize{\tiny}{5}{6pt}}
-% sublargesize is the same as large - 10pt
-\def\sublargesize{\@setfontsize{\sublargesize}{10}{12pt}}
-\def\large{\@setfontsize{\large}{10}{12pt}}
-\def\Large{\@setfontsize{\Large}{12}{14pt}}
-\def\LARGE{\@setfontsize{\LARGE}{14}{17pt}}
-\def\huge{\@setfontsize{\huge}{17}{20pt}}
-\def\Huge{\@setfontsize{\Huge}{20}{24pt}}
-\fi
-
-
-% Check if we have selected 10 points
-\ifx\CLASSOPTIONpt\@IEEEptsizeten
-\typeout{-- This is a 10 point document.}
-\def\normalsize{\@setfontsize{\normalsize}{10}{12.00pt}}%
-\setlength{\@IEEEnormalsizeunitybaselineskip}{12pt}%
-\normalsize
-\abovedisplayskip 1.5ex plus4pt minus2pt%
-\belowdisplayskip \abovedisplayskip%
-\abovedisplayshortskip 0pt plus4pt%
-\belowdisplayshortskip 1.5ex plus4pt minus2pt
-\def\small{\@setfontsize{\small}{9}{10pt}}
-\def\footnotesize{\@setfontsize{\footnotesize}{8}{9pt}}
-\def\scriptsize{\@setfontsize{\scriptsize}{7}{8pt}}
-\def\tiny{\@setfontsize{\tiny}{5}{6pt}}
-% sublargesize is a tad smaller than large - 11pt
-\def\sublargesize{\@setfontsize{\sublargesize}{11}{13.4pt}}
-\def\large{\@setfontsize{\large}{12}{14pt}}
-\def\Large{\@setfontsize{\Large}{14}{17pt}}
-\def\LARGE{\@setfontsize{\LARGE}{17}{20pt}}
-\def\huge{\@setfontsize{\huge}{20}{24pt}}
-\def\Huge{\@setfontsize{\Huge}{24}{28pt}}
-\fi
-
-
-% Check if we have selected 11 points
-\ifx\CLASSOPTIONpt\@IEEEptsizeeleven
-\typeout{-- This is an 11 point document.}
-\def\normalsize{\@setfontsize{\normalsize}{11}{13.3846pt}}%
-\setlength{\@IEEEnormalsizeunitybaselineskip}{13.3846pt}%
-\normalsize
-\abovedisplayskip 1.5ex plus5pt minus3pt%
-\belowdisplayskip \abovedisplayskip%
-\abovedisplayshortskip 0pt plus5pt%
-\belowdisplayshortskip 1.5ex plus5pt minus3pt
-\def\small{\@setfontsize{\small}{10}{12pt}}
-\def\footnotesize{\@setfontsize{\footnotesize}{9}{10.5pt}}
-\def\scriptsize{\@setfontsize{\scriptsize}{8}{9pt}}
-\def\tiny{\@setfontsize{\tiny}{6}{7pt}}
-% sublargesize is the same as large - 12pt
-\def\sublargesize{\@setfontsize{\sublargesize}{12}{14pt}}
-\def\large{\@setfontsize{\large}{12}{14pt}}
-\def\Large{\@setfontsize{\Large}{14}{17pt}}
-\def\LARGE{\@setfontsize{\LARGE}{17}{20pt}}
-\def\huge{\@setfontsize{\huge}{20}{24pt}}
-\def\Huge{\@setfontsize{\Huge}{24}{28pt}}
-\fi
-
-
-% Check if we have selected 12 points
-\ifx\CLASSOPTIONpt\@IEEEptsizetwelve
-\typeout{-- This is a 12 point document.}
-\def\normalsize{\@setfontsize{\normalsize}{12}{13.92pt}}%
-\setlength{\@IEEEnormalsizeunitybaselineskip}{13.92pt}%
-\normalsize
-\abovedisplayskip 1.5ex plus6pt minus4pt%
-\belowdisplayskip \abovedisplayskip%
-\abovedisplayshortskip 0pt plus6pt%
-\belowdisplayshortskip 1.5ex plus6pt minus4pt
-\def\small{\@setfontsize{\small}{10}{12pt}}
-\def\footnotesize{\@setfontsize{\footnotesize}{9}{10.5pt}}
-\def\scriptsize{\@setfontsize{\scriptsize}{8}{9pt}}
-\def\tiny{\@setfontsize{\tiny}{6}{7pt}}
-% sublargesize is the same as large - 14pt
-\def\sublargesize{\@setfontsize{\sublargesize}{14}{17pt}}
-\def\large{\@setfontsize{\large}{14}{17pt}}
-\def\Large{\@setfontsize{\Large}{17}{20pt}}
-\def\LARGE{\@setfontsize{\LARGE}{20}{24pt}}
-\def\huge{\@setfontsize{\huge}{22}{26pt}}
-\def\Huge{\@setfontsize{\Huge}{24}{28pt}}
-\fi
-
-
-% V1.6 The Computer Modern Fonts will issue a substitution warning for
-% 24pt titles (24.88pt is used instead) increase the substitution
-% tolerance to turn off this warning
-\def\fontsubfuzz{.9pt}
-% However, the default (and correct) Times font will scale exactly as needed.
-
-
-% warn the user in case they forget to use the 9pt option with
-% technote
-\ifCLASSOPTIONtechnote%
- \ifx\CLASSOPTIONpt\@IEEEptsizenine\else%
- \typeout{** ATTENTION: Technotes are normally 9pt documents.}%
- \fi%
-\fi
-
-
-% V1.7
-% Improved \textunderscore to provide a much better fake _ when used with
-% OT1 encoding. Under OT1, detect use of pcr or cmtt \ttfamily and use
-% available true _ glyph for those two typewriter fonts.
-\def\@IEEEstringptm{ptm} % Times Roman family
-\def\@IEEEstringppl{ppl} % Palatino Roman family
-\def\@IEEEstringphv{phv} % Helvetica Sans Serif family
-\def\@IEEEstringpcr{pcr} % Courier typewriter family
-\def\@IEEEstringcmtt{cmtt} % Computer Modern typewriter family
-\DeclareTextCommandDefault{\textunderscore}{\leavevmode
-\ifx\f@family\@IEEEstringpcr\string_\else
-\ifx\f@family\@IEEEstringcmtt\string_\else
-\ifx\f@family\@IEEEstringptm\kern 0em\vbox{\hrule\@width 0.5em\@height 0.5pt\kern -0.3ex}\else
-\ifx\f@family\@IEEEstringppl\kern 0em\vbox{\hrule\@width 0.5em\@height 0.5pt\kern -0.3ex}\else
-\ifx\f@family\@IEEEstringphv\kern -0.03em\vbox{\hrule\@width 0.62em\@height 0.52pt\kern -0.33ex}\kern -0.03em\else
-\kern 0.09em\vbox{\hrule\@width 0.6em\@height 0.44pt\kern -0.63pt\kern -0.42ex}\kern 0.09em\fi\fi\fi\fi\fi\relax}
-
-
-
-
-% set the default \baselinestretch
-\def\baselinestretch{1}
-\ifCLASSOPTIONdraftcls
- \def\baselinestretch{1.5}% default baselinestretch for draft modes
-\fi
-
-
-% process CLASSINPUT baselinestretch
-\ifx\CLASSINPUTbaselinestretch\@IEEEundefined
-\else
- \edef\baselinestretch{\CLASSINPUTbaselinestretch} % user CLASSINPUT override
- \typeout{** ATTENTION: Overriding \string\baselinestretch\space to
- \baselinestretch\space via \string\CLASSINPUT.}
-\fi
-
-\normalsize % make \baselinestretch take affect
-
-
-
-
-% store the normalsize baselineskip
-\newdimen\CLASSINFOnormalsizebaselineskip
-\CLASSINFOnormalsizebaselineskip=\baselineskip\relax
-% and the normalsize unity (baselinestretch=1) baselineskip
-% we could save a register by giving the user access to
-% \@IEEEnormalsizeunitybaselineskip. However, let's protect
-% its read only internal status
-\newdimen\CLASSINFOnormalsizeunitybaselineskip
-\CLASSINFOnormalsizeunitybaselineskip=\@IEEEnormalsizeunitybaselineskip\relax
-% store the nominal value of jot
-\newdimen\IEEEnormaljot
-\IEEEnormaljot=0.25\baselineskip\relax
-
-% set \jot
-\jot=\IEEEnormaljot\relax
-
-
-
-
-% V1.6, we are now going to fine tune the interword spacing
-% The default interword glue for Times under TeX appears to use a
-% nominal interword spacing of 25% (relative to the font size, i.e., 1em)
-% a maximum of 40% and a minimum of 19%.
-% For example, 10pt text uses an interword glue of:
-%
-% 2.5pt plus 1.49998pt minus 0.59998pt
-%
-% However, IEEE allows for a more generous range which reduces the need
-% for hyphenation, especially for two column text. Furthermore, IEEE
-% tends to use a little bit more nominal space between the words.
-% IEEE's interword spacing percentages appear to be:
-% 35% nominal
-% 23% minimum
-% 50% maximum
-% (They may even be using a tad more for the largest fonts such as 24pt.)
-%
-% for bold text, IEEE increases the spacing a little more:
-% 37.5% nominal
-% 23% minimum
-% 55% maximum
-
-% here are the interword spacing ratios we'll use
-% for medium (normal weight)
-\def\@IEEEinterspaceratioM{0.35}
-\def\@IEEEinterspaceMINratioM{0.23}
-\def\@IEEEinterspaceMAXratioM{0.50}
-
-% for bold
-\def\@IEEEinterspaceratioB{0.375}
-\def\@IEEEinterspaceMINratioB{0.23}
-\def\@IEEEinterspaceMAXratioB{0.55}
-
-
-% command to revise the interword spacing for the current font under TeX:
-% \fontdimen2 = nominal interword space
-% \fontdimen3 = interword stretch
-% \fontdimen4 = interword shrink
-% since all changes to the \fontdimen are global, we can enclose these commands
-% in braces to confine any font attribute or length changes
-\def\@@@IEEEsetfontdimens#1#2#3{{%
-\setlength{\@IEEEtrantmpdimenB}{\f@size pt}% grab the font size in pt, could use 1em instead.
-\setlength{\@IEEEtrantmpdimenA}{#1\@IEEEtrantmpdimenB}%
-\fontdimen2\font=\@IEEEtrantmpdimenA\relax
-\addtolength{\@IEEEtrantmpdimenA}{-#2\@IEEEtrantmpdimenB}%
-\fontdimen3\font=-\@IEEEtrantmpdimenA\relax
-\setlength{\@IEEEtrantmpdimenA}{#1\@IEEEtrantmpdimenB}%
-\addtolength{\@IEEEtrantmpdimenA}{-#3\@IEEEtrantmpdimenB}%
-\fontdimen4\font=\@IEEEtrantmpdimenA\relax}}
-
-% revise the interword spacing for each font weight
-\def\@@IEEEsetfontdimens{{%
-\mdseries
-\@@@IEEEsetfontdimens{\@IEEEinterspaceratioM}{\@IEEEinterspaceMAXratioM}{\@IEEEinterspaceMINratioM}%
-\bfseries
-\@@@IEEEsetfontdimens{\@IEEEinterspaceratioB}{\@IEEEinterspaceMAXratioB}{\@IEEEinterspaceMINratioB}%
-}}
-
-% revise the interword spacing for each font shape
-% \slshape is not often used for IEEE work and is not altered here. The \scshape caps are
-% already a tad too large in the free LaTeX fonts (as compared to what IEEE uses) so we
-% won't alter these either.
-\def\@IEEEsetfontdimens{{%
-\normalfont
-\@@IEEEsetfontdimens
-\normalfont\itshape
-\@@IEEEsetfontdimens
-}}
-
-% command to revise the interword spacing for each font size (and shape
-% and weight). Only the \rmfamily is done here as \ttfamily uses a
-% fixed spacing and \sffamily is not used as the main text of IEEE papers.
-\def\@IEEEtunefonts{{\selectfont\rmfamily
-\tiny\@IEEEsetfontdimens
-\scriptsize\@IEEEsetfontdimens
-\footnotesize\@IEEEsetfontdimens
-\small\@IEEEsetfontdimens
-\normalsize\@IEEEsetfontdimens
-\sublargesize\@IEEEsetfontdimens
-\large\@IEEEsetfontdimens
-\LARGE\@IEEEsetfontdimens
-\huge\@IEEEsetfontdimens
-\Huge\@IEEEsetfontdimens}}
-
-% if the nofonttune class option is not given, revise the interword spacing
-% now - in case IEEEtran makes any default length measurements, and make
-% sure all the default fonts are loaded
-\ifCLASSOPTIONnofonttune\else
-\@IEEEtunefonts
-\fi
-
-% and again at the start of the document in case the user loaded different fonts
-\AtBeginDocument{\ifCLASSOPTIONnofonttune\else\@IEEEtunefonts\fi}
-
-
-
-% V1.6
-% LaTeX is a little to quick to use hyphenations
-% So, we increase the penalty for their use and raise
-% the badness level that triggers an underfull hbox
-% warning. The author may still have to tweak things,
-% but the appearance will be much better "right out
-% of the box" than that under V1.5 and prior.
-% TeX default is 50
-\hyphenpenalty=750
-% If we didn't adjust the interword spacing, 2200 might be better.
-% The TeX default is 1000
-\hbadness=1350
-% IEEE does not use extra spacing after punctuation
-\frenchspacing
-
-% V1.7 increase this a tad to discourage equation breaks
-\binoppenalty=1000 % default 700
-\relpenalty=800 % default 500
-
-
-% margin note stuff
-\marginparsep 10pt
-\marginparwidth 20pt
-\marginparpush 25pt
-
-
-% if things get too close, go ahead and let them touch
-\lineskip 0pt
-\normallineskip 0pt
-\lineskiplimit 0pt
-\normallineskiplimit 0pt
-
-% The distance from the lower edge of the text body to the
-% footline
-\footskip 0.4in
-
-% normally zero, should be relative to font height.
-% put in a little rubber to help stop some bad breaks (underfull vboxes)
-\parskip 0ex plus 0.2ex minus 0.1ex
-
-\parindent 1.0em
-
-\topmargin -49.0pt
-\headheight 12pt
-\headsep 0.25in
-
-% use the normal font baselineskip
-% so that \topskip is unaffected by changes in \baselinestretch
-\topskip=\@IEEEnormalsizeunitybaselineskip
-\textheight 58pc % 9.63in, 696pt
-% Tweak textheight to a perfect integer number of lines/page.
-% The normal baselineskip for each document point size is used
-% to determine these values.
-\ifx\CLASSOPTIONpt\@IEEEptsizenine\textheight=63\@IEEEnormalsizeunitybaselineskip\fi % 63 lines/page
-\ifx\CLASSOPTIONpt\@IEEEptsizeten\textheight=58\@IEEEnormalsizeunitybaselineskip\fi % 58 lines/page
-\ifx\CLASSOPTIONpt\@IEEEptsizeeleven\textheight=52\@IEEEnormalsizeunitybaselineskip\fi % 52 lines/page
-\ifx\CLASSOPTIONpt\@IEEEptsizetwelve\textheight=50\@IEEEnormalsizeunitybaselineskip\fi % 50 lines/page
-
-
-\columnsep 1pc
-\textwidth 43pc % 2 x 21pc + 1pc = 43pc
-
-
-% the default side margins are equal
-\if@IEEEusingAfourpaper
-\oddsidemargin 14.32mm
-\evensidemargin 14.32mm
-\else
-\oddsidemargin 0.680in
-\evensidemargin 0.680in
-\fi
-% compensate for LaTeX's 1in offset
-\addtolength{\oddsidemargin}{-1in}
-\addtolength{\evensidemargin}{-1in}
-
-
-
-% adjust margins for conference mode
-\ifCLASSOPTIONconference
- \topmargin -0.25in
- % we retain the reserved, but unused space for headers
- \addtolength{\topmargin}{-\headheight}
- \addtolength{\topmargin}{-\headsep}
- \textheight 9.25in % The standard for conferences (668.4975pt)
- % Tweak textheight to a perfect integer number of lines/page.
- \ifx\CLASSOPTIONpt\@IEEEptsizenine\textheight=61\@IEEEnormalsizeunitybaselineskip\fi % 61 lines/page
- \ifx\CLASSOPTIONpt\@IEEEptsizeten\textheight=56\@IEEEnormalsizeunitybaselineskip\fi % 56 lines/page
- \ifx\CLASSOPTIONpt\@IEEEptsizeeleven\textheight=50\@IEEEnormalsizeunitybaselineskip\fi % 50 lines/page
- \ifx\CLASSOPTIONpt\@IEEEptsizetwelve\textheight=48\@IEEEnormalsizeunitybaselineskip\fi % 48 lines/page
-\fi
-
-
-% compsoc conference
-\ifCLASSOPTIONcompsoc
-\ifCLASSOPTIONconference
- % compsoc conference use a larger value for columnsep
- \columnsep 0.375in
- % compsoc conferences want 1in top margin, 1.125in bottom margin
- \topmargin 0in
- \addtolength{\topmargin}{-6pt}% we tweak this a tad to better comply with top of line stuff
- % we retain the reserved, but unused space for headers
- \addtolength{\topmargin}{-\headheight}
- \addtolength{\topmargin}{-\headsep}
- \textheight 8.875in % (641.39625pt)
- % Tweak textheight to a perfect integer number of lines/page.
- \ifx\CLASSOPTIONpt\@IEEEptsizenine\textheight=58\@IEEEnormalsizeunitybaselineskip\fi % 58 lines/page
- \ifx\CLASSOPTIONpt\@IEEEptsizeten\textheight=53\@IEEEnormalsizeunitybaselineskip\fi % 53 lines/page
- \ifx\CLASSOPTIONpt\@IEEEptsizeeleven\textheight=48\@IEEEnormalsizeunitybaselineskip\fi % 48 lines/page
- \ifx\CLASSOPTIONpt\@IEEEptsizetwelve\textheight=46\@IEEEnormalsizeunitybaselineskip\fi % 46 lines/page
- \textwidth 6.5in
- % the default side margins are equal
- \if@IEEEusingAfourpaper
- \oddsidemargin 22.45mm
- \evensidemargin 22.45mm
- \else
- \oddsidemargin 1in
- \evensidemargin 1in
- \fi
- % compensate for LaTeX's 1in offset
- \addtolength{\oddsidemargin}{-1in}
- \addtolength{\evensidemargin}{-1in}
-\fi\fi
-
-
-
-% draft mode settings override that of all other modes
-% provides a nice 1in margin all around the paper and extra
-% space between the lines for editor's comments
-\ifCLASSOPTIONdraftcls
- % want 1in from top of paper to text
- \setlength{\topmargin}{-\headsep}%
- \addtolength{\topmargin}{-\headheight}%
- % we want 1in side margins regardless of paper type
- \oddsidemargin 0in
- \evensidemargin 0in
- % set the text width
- \setlength{\textwidth}{\paperwidth}%
- \addtolength{\textwidth}{-2.0in}%
- \setlength{\textheight}{\paperheight}%
- \addtolength{\textheight}{-2.0in}%
- % digitize textheight to be an integer number of lines.
- % this may cause the bottom margin to be off a tad
- \addtolength{\textheight}{-1\topskip}%
- \divide\textheight by \baselineskip%
- \multiply\textheight by \baselineskip%
- \addtolength{\textheight}{\topskip}%
-\fi
-
-
-
-% process CLASSINPUT inner/outer margin
-% if inner margin defined, but outer margin not, set outer to inner.
-\ifx\CLASSINPUTinnersidemargin\@IEEEundefined
-\else
- \ifx\CLASSINPUToutersidemargin\@IEEEundefined
- \edef\CLASSINPUToutersidemargin{\CLASSINPUTinnersidemargin}
- \fi
-\fi
-
-\ifx\CLASSINPUToutersidemargin\@IEEEundefined
-\else
- % if outer margin defined, but inner margin not, set inner to outer.
- \ifx\CLASSINPUTinnersidemargin\@IEEEundefined
- \edef\CLASSINPUTinnersidemargin{\CLASSINPUToutersidemargin}
- \fi
- \setlength{\oddsidemargin}{\CLASSINPUTinnersidemargin}
- \ifCLASSOPTIONtwoside
- \setlength{\evensidemargin}{\CLASSINPUToutersidemargin}
- \else
- \setlength{\evensidemargin}{\CLASSINPUTinnersidemargin}
- \fi
- \addtolength{\oddsidemargin}{-1in}
- \addtolength{\evensidemargin}{-1in}
- \setlength{\textwidth}{\paperwidth}
- \addtolength{\textwidth}{-\CLASSINPUTinnersidemargin}
- \addtolength{\textwidth}{-\CLASSINPUToutersidemargin}
- \typeout{** ATTENTION: Overriding inner side margin to \CLASSINPUTinnersidemargin\space and
- outer side margin to \CLASSINPUToutersidemargin\space via \string\CLASSINPUT.}
-\fi
-
-
-
-% process CLASSINPUT top/bottom text margin
-% if toptext margin defined, but bottomtext margin not, set bottomtext to toptext margin
-\ifx\CLASSINPUTtoptextmargin\@IEEEundefined
-\else
- \ifx\CLASSINPUTbottomtextmargin\@IEEEundefined
- \edef\CLASSINPUTbottomtextmargin{\CLASSINPUTtoptextmargin}
- \fi
-\fi
-
-\ifx\CLASSINPUTbottomtextmargin\@IEEEundefined
-\else
- % if bottomtext margin defined, but toptext margin not, set toptext to bottomtext margin
- \ifx\CLASSINPUTtoptextmargin\@IEEEundefined
- \edef\CLASSINPUTtoptextmargin{\CLASSINPUTbottomtextmargin}
- \fi
- \setlength{\topmargin}{\CLASSINPUTtoptextmargin}
- \addtolength{\topmargin}{-1in}
- \addtolength{\topmargin}{-\headheight}
- \addtolength{\topmargin}{-\headsep}
- \setlength{\textheight}{\paperheight}
- \addtolength{\textheight}{-\CLASSINPUTtoptextmargin}
- \addtolength{\textheight}{-\CLASSINPUTbottomtextmargin}
- % in the default format we use the normal baselineskip as topskip
- % we only need 0.7 of this to clear typical top text and we need
- % an extra 0.3 spacing at the bottom for descenders. This will
- % correct for both.
- \addtolength{\topmargin}{-0.3\@IEEEnormalsizeunitybaselineskip}
- \typeout{** ATTENTION: Overriding top text margin to \CLASSINPUTtoptextmargin\space and
- bottom text margin to \CLASSINPUTbottomtextmargin\space via \string\CLASSINPUT.}
-\fi
-
-
-
-
-
-
-
-% LIST SPACING CONTROLS
-
-% Controls the amount of EXTRA spacing
-% above and below \trivlist
-% Both \list and IED lists override this.
-% However, \trivlist will use this as will most
-% things built from \trivlist like the \center
-% environment.
-\topsep 0.5\baselineskip
-
-% Controls the additional spacing around lists preceded
-% or followed by blank lines. IEEE does not increase
-% spacing before or after paragraphs so it is set to zero.
-% \z@ is the same as zero, but faster.
-\partopsep \z@
-
-% Controls the spacing between paragraphs in lists.
-% IEEE does not increase spacing before or after paragraphs
-% so this is also zero.
-% With IEEEtran.cls, global changes to
-% this value DO affect lists (but not IED lists).
-\parsep \z@
-
-% Controls the extra spacing between list items.
-% IEEE does not put extra spacing between items.
-% With IEEEtran.cls, global changes to this value DO affect
-% lists (but not IED lists).
-\itemsep \z@
-
-% \itemindent is the amount to indent the FIRST line of a list
-% item. It is auto set to zero within the \list environment. To alter
-% it, you have to do so when you call the \list.
-% However, IEEE uses this for the theorem environment
-% There is an alternative value for this near \leftmargini below
-\itemindent -1em
-
-% \leftmargin, the spacing from the left margin of the main text to
-% the left of the main body of a list item is set by \list.
-% Hence this statement does nothing for lists.
-% But, quote and verse do use it for indention.
-\leftmargin 2em
-
-% we retain this stuff from the older IEEEtran.cls so that \list
-% will work the same way as before. However, itemize, enumerate and
-% description (IED) could care less about what these are as they
-% all are overridden.
-\leftmargini 2em
-%\itemindent 2em % Alternative values: sometimes used.
-%\leftmargini 0em
-\leftmarginii 1em
-\leftmarginiii 1.5em
-\leftmarginiv 1.5em
-\leftmarginv 1.0em
-\leftmarginvi 1.0em
-\labelsep 0.5em
-\labelwidth \z@
-
-
-% The old IEEEtran.cls behavior of \list is retained.
-% However, the new V1.3 IED list environments override all the
-% @list stuff (\@listX is called within \list for the
-% appropriate level just before the user's list_decl is called).
-% \topsep is now 2pt as IEEE puts a little extra space around
-% lists - used by those non-IED macros that depend on \list.
-% Note that \parsep and \itemsep are not redefined as in
-% the sizexx.clo \@listX (which article.cls uses) so global changes
-% of these values DO affect \list
-%
-\def\@listi{\leftmargin\leftmargini \topsep 2pt plus 1pt minus 1pt}
-\let\@listI\@listi
-\def\@listii{\leftmargin\leftmarginii\labelwidth\leftmarginii%
- \advance\labelwidth-\labelsep \topsep 2pt}
-\def\@listiii{\leftmargin\leftmarginiii\labelwidth\leftmarginiii%
- \advance\labelwidth-\labelsep \topsep 2pt}
-\def\@listiv{\leftmargin\leftmarginiv\labelwidth\leftmarginiv%
- \advance\labelwidth-\labelsep \topsep 2pt}
-\def\@listv{\leftmargin\leftmarginv\labelwidth\leftmarginv%
- \advance\labelwidth-\labelsep \topsep 2pt}
-\def\@listvi{\leftmargin\leftmarginvi\labelwidth\leftmarginvi%
- \advance\labelwidth-\labelsep \topsep 2pt}
-
-
-% IEEE uses 5) not 5.
-\def\labelenumi{\theenumi)} \def\theenumi{\arabic{enumi}}
-
-% IEEE uses a) not (a)
-\def\labelenumii{\theenumii)} \def\theenumii{\alph{enumii}}
-
-% IEEE uses iii) not iii.
-\def\labelenumiii{\theenumiii)} \def\theenumiii{\roman{enumiii}}
-
-% IEEE uses A) not A.
-\def\labelenumiv{\theenumiv)} \def\theenumiv{\Alph{enumiv}}
-
-% exactly the same as in article.cls
-\def\p@enumii{\theenumi}
-\def\p@enumiii{\theenumi(\theenumii)}
-\def\p@enumiv{\p@enumiii\theenumiii}
-
-% itemized list label styles
-\def\labelitemi{$\scriptstyle\bullet$}
-\def\labelitemii{\textbf{--}}
-\def\labelitemiii{$\ast$}
-\def\labelitemiv{$\cdot$}
-
-
-
-% **** V1.3 ENHANCEMENTS ****
-% Itemize, Enumerate and Description (IED) List Controls
-% ***************************
-%
-%
-% IEEE seems to use at least two different values by
-% which ITEMIZED list labels are indented to the right
-% For The Journal of Lightwave Technology (JLT) and The Journal
-% on Selected Areas in Communications (JSAC), they tend to use
-% an indention equal to \parindent. For Transactions on Communications
-% they tend to indent ITEMIZED lists a little more--- 1.3\parindent.
-% We'll provide both values here for you so that you can choose
-% which one you like in your document using a command such as:
-% setlength{\IEEEilabelindent}{\IEEEilabelindentB}
-\newdimen\IEEEilabelindentA
-\IEEEilabelindentA \parindent
-
-\newdimen\IEEEilabelindentB
-\IEEEilabelindentB 1.3\parindent
-% However, we'll default to using \parindent
-% which makes more sense to me
-\newdimen\IEEEilabelindent
-\IEEEilabelindent \IEEEilabelindentA
-
-
-% This controls the default amount the enumerated list labels
-% are indented to the right.
-% Normally, this is the same as the paragraph indention
-\newdimen\IEEEelabelindent
-\IEEEelabelindent \parindent
-
-% This controls the default amount the description list labels
-% are indented to the right.
-% Normally, this is the same as the paragraph indention
-\newdimen\IEEEdlabelindent
-\IEEEdlabelindent \parindent
-
-% This is the value actually used within the IED lists.
-% The IED environments automatically set its value to
-% one of the three values above, so global changes do
-% not have any effect
-\newdimen\IEEElabelindent
-\IEEElabelindent \parindent
-
-% The actual amount labels will be indented is
-% \IEEElabelindent multiplied by the factor below
-% corresponding to the level of nesting depth
-% This provides a means by which the user can
-% alter the effective \IEEElabelindent for deeper
-% levels
-% There may not be such a thing as correct "standard IEEE"
-% values. What IEEE actually does may depend on the specific
-% circumstances.
-% The first list level almost always has full indention.
-% The second levels I've seen have only 75% of the normal indentation
-% Three level or greater nestings are very rare. I am guessing
-% that they don't use any indentation.
-\def\IEEElabelindentfactori{1.0} % almost always one
-\def\IEEElabelindentfactorii{0.75} % 0.0 or 1.0 may be used in some cases
-\def\IEEElabelindentfactoriii{0.0} % 0.75? 0.5? 0.0?
-\def\IEEElabelindentfactoriv{0.0}
-\def\IEEElabelindentfactorv{0.0}
-\def\IEEElabelindentfactorvi{0.0}
-
-% value actually used within IED lists, it is auto
-% set to one of the 6 values above
-% global changes here have no effect
-\def\IEEElabelindentfactor{1.0}
-
-% This controls the default spacing between the end of the IED
-% list labels and the list text, when normal text is used for
-% the labels.
-\newdimen\IEEEiednormlabelsep
-\IEEEiednormlabelsep 0.6em
-
-% This controls the default spacing between the end of the IED
-% list labels and the list text, when math symbols are used for
-% the labels (nomenclature lists). IEEE usually increases the
-% spacing in these cases
-\newdimen\IEEEiedmathlabelsep
-\IEEEiedmathlabelsep 1.2em
-
-% This controls the extra vertical separation put above and
-% below each IED list. IEEE usually puts a little extra spacing
-% around each list. However, this spacing is barely noticeable.
-\newskip\IEEEiedtopsep
-\IEEEiedtopsep 2pt plus 1pt minus 1pt
-
-
-% This command is executed within each IED list environment
-% at the beginning of the list. You can use this to set the
-% parameters for some/all your IED list(s) without disturbing
-% global parameters that affect things other than lists.
-% i.e., renewcommand{\IEEEiedlistdecl}{\setlength{\labelsep}{5em}}
-% will alter the \labelsep for the next list(s) until
-% \IEEEiedlistdecl is redefined.
-\def\IEEEiedlistdecl{\relax}
-
-% This command provides an easy way to set \leftmargin based
-% on the \labelwidth, \labelsep and the argument \IEEElabelindent
-% Usage: \IEEEcalcleftmargin{width-to-indent-the-label}
-% output is in the \leftmargin variable, i.e., effectively:
-% \leftmargin = argument + \labelwidth + \labelsep
-% Note controlled spacing here, shield end of lines with %
-\def\IEEEcalcleftmargin#1{\setlength{\leftmargin}{#1}%
-\addtolength{\leftmargin}{\labelwidth}%
-\addtolength{\leftmargin}{\labelsep}}
-
-% This command provides an easy way to set \labelwidth to the
-% width of the given text. It is the same as
-% \settowidth{\labelwidth}{label-text}
-% and useful as a shorter alternative.
-% Typically used to set \labelwidth to be the width
-% of the longest label in the list
-\def\IEEEsetlabelwidth#1{\settowidth{\labelwidth}{#1}}
-
-% When this command is executed, IED lists will use the
-% IEEEiedmathlabelsep label separation rather than the normal
-% spacing. To have an effect, this command must be executed via
-% the \IEEEiedlistdecl or within the option of the IED list
-% environments.
-\def\IEEEusemathlabelsep{\setlength{\labelsep}{\IEEEiedmathlabelsep}}
-
-% A flag which controls whether the IED lists automatically
-% calculate \leftmargin from \IEEElabelindent, \labelwidth and \labelsep
-% Useful if you want to specify your own \leftmargin
-% This flag must be set (\IEEEnocalcleftmargintrue or \IEEEnocalcleftmarginfalse)
-% via the \IEEEiedlistdecl or within the option of the IED list
-% environments to have an effect.
-\newif\ifIEEEnocalcleftmargin
-\IEEEnocalcleftmarginfalse
-
-% A flag which controls whether \IEEElabelindent is multiplied by
-% the \IEEElabelindentfactor for each list level.
-% This flag must be set via the \IEEEiedlistdecl or within the option
-% of the IED list environments to have an effect.
-\newif\ifIEEEnolabelindentfactor
-\IEEEnolabelindentfactorfalse
-
-
-% internal variable to indicate type of IED label
-% justification
-% 0 - left; 1 - center; 2 - right
-\def\@IEEEiedjustify{0}
-
-
-% commands to allow the user to control IED
-% label justifications. Use these commands within
-% the IED environment option or in the \IEEEiedlistdecl
-% Note that changing the normal list justifications
-% is nonstandard and IEEE may not like it if you do so!
-% I include these commands as they may be helpful to
-% those who are using these enhanced list controls for
-% other non-IEEE related LaTeX work.
-% itemize and enumerate automatically default to right
-% justification, description defaults to left.
-\def\IEEEiedlabeljustifyl{\def\@IEEEiedjustify{0}}%left
-\def\IEEEiedlabeljustifyc{\def\@IEEEiedjustify{1}}%center
-\def\IEEEiedlabeljustifyr{\def\@IEEEiedjustify{2}}%right
-
-
-
-
-% commands to save to and restore from the list parameter copies
-% this allows us to set all the list parameters within
-% the list_decl and prevent \list (and its \@list)
-% from overriding any of our parameters
-% V1.6 use \edefs instead of dimen's to conserve dimen registers
-% Note controlled spacing here, shield end of lines with %
-\def\@IEEEsavelistparams{\edef\@IEEEiedtopsep{\the\topsep}%
-\edef\@IEEEiedlabelwidth{\the\labelwidth}%
-\edef\@IEEEiedlabelsep{\the\labelsep}%
-\edef\@IEEEiedleftmargin{\the\leftmargin}%
-\edef\@IEEEiedpartopsep{\the\partopsep}%
-\edef\@IEEEiedparsep{\the\parsep}%
-\edef\@IEEEieditemsep{\the\itemsep}%
-\edef\@IEEEiedrightmargin{\the\rightmargin}%
-\edef\@IEEEiedlistparindent{\the\listparindent}%
-\edef\@IEEEieditemindent{\the\itemindent}}
-
-% Note controlled spacing here
-\def\@IEEErestorelistparams{\topsep\@IEEEiedtopsep\relax%
-\labelwidth\@IEEEiedlabelwidth\relax%
-\labelsep\@IEEEiedlabelsep\relax%
-\leftmargin\@IEEEiedleftmargin\relax%
-\partopsep\@IEEEiedpartopsep\relax%
-\parsep\@IEEEiedparsep\relax%
-\itemsep\@IEEEieditemsep\relax%
-\rightmargin\@IEEEiedrightmargin\relax%
-\listparindent\@IEEEiedlistparindent\relax%
-\itemindent\@IEEEieditemindent\relax}
-
-
-% v1.6b provide original LaTeX IED list environments
-% note that latex.ltx defines \itemize and \enumerate, but not \description
-% which must be created by the base classes
-% save original LaTeX itemize and enumerate
-\let\LaTeXitemize\itemize
-\let\endLaTeXitemize\enditemize
-\let\LaTeXenumerate\enumerate
-\let\endLaTeXenumerate\endenumerate
-
-% provide original LaTeX description environment from article.cls
-\newenvironment{LaTeXdescription}
- {\list{}{\labelwidth\z@ \itemindent-\leftmargin
- \let\makelabel\descriptionlabel}}
- {\endlist}
-\newcommand*\descriptionlabel[1]{\hspace\labelsep
- \normalfont\bfseries #1}
-
-
-% override LaTeX's default IED lists
-\def\itemize{\@IEEEitemize}
-\def\enditemize{\@endIEEEitemize}
-\def\enumerate{\@IEEEenumerate}
-\def\endenumerate{\@endIEEEenumerate}
-\def\description{\@IEEEdescription}
-\def\enddescription{\@endIEEEdescription}
-
-% provide the user with aliases - may help those using packages that
-% override itemize, enumerate, or description
-\def\IEEEitemize{\@IEEEitemize}
-\def\endIEEEitemize{\@endIEEEitemize}
-\def\IEEEenumerate{\@IEEEenumerate}
-\def\endIEEEenumerate{\@endIEEEenumerate}
-\def\IEEEdescription{\@IEEEdescription}
-\def\endIEEEdescription{\@endIEEEdescription}
-
-
-% V1.6 we want to keep the IEEEtran IED list definitions as our own internal
-% commands so they are protected against redefinition
-\def\@IEEEitemize{\@ifnextchar[{\@@IEEEitemize}{\@@IEEEitemize[\relax]}}
-\def\@IEEEenumerate{\@ifnextchar[{\@@IEEEenumerate}{\@@IEEEenumerate[\relax]}}
-\def\@IEEEdescription{\@ifnextchar[{\@@IEEEdescription}{\@@IEEEdescription[\relax]}}
-\def\@endIEEEitemize{\endlist}
-\def\@endIEEEenumerate{\endlist}
-\def\@endIEEEdescription{\endlist}
-
-
-% DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS
-% AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS
-% IEEEtran itemized list MDS 1/2001
-% Note controlled spacing here, shield end of lines with %
-\def\@@IEEEitemize[#1]{%
- \ifnum\@itemdepth>3\relax\@toodeep\else%
- \ifnum\@listdepth>5\relax\@toodeep\else%
- \advance\@itemdepth\@ne%
- \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
- % get the labelindentfactor for this level
- \advance\@listdepth\@ne% we need to know what the level WILL be
- \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}%
- \advance\@listdepth-\@ne% undo our increment
- \def\@IEEEiedjustify{2}% right justified labels are default
- % set other defaults
- \IEEEnocalcleftmarginfalse%
- \IEEEnolabelindentfactorfalse%
- \topsep\IEEEiedtopsep%
- \IEEElabelindent\IEEEilabelindent%
- \labelsep\IEEEiednormlabelsep%
- \partopsep 0ex%
- \parsep 0ex%
- \itemsep 0ex%
- \rightmargin 0em%
- \listparindent 0em%
- \itemindent 0em%
- % calculate the label width
- % the user can override this later if
- % they specified a \labelwidth
- \settowidth{\labelwidth}{\csname labelitem\romannumeral\the\@itemdepth\endcsname}%
- \@IEEEsavelistparams% save our list parameters
- \list{\csname\@itemitem\endcsname}{%
- \@IEEErestorelistparams% override any list{} changes
- % to our globals
- \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel
- \IEEEiedlistdecl% let user alter parameters
- #1\relax%
- % If the user has requested not to use the
- % labelindent factor, don't revise \labelindent
- \ifIEEEnolabelindentfactor\relax%
- \else\IEEElabelindent=\IEEElabelindentfactor\labelindent%
- \fi%
- % Unless the user has requested otherwise,
- % calculate our left margin based
- % on \IEEElabelindent, \labelwidth and
- % \labelsep
- \ifIEEEnocalcleftmargin\relax%
- \else\IEEEcalcleftmargin{\IEEElabelindent}%
- \fi}\fi\fi}%
-
-
-% DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS
-% AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS
-% IEEEtran enumerate list MDS 1/2001
-% Note controlled spacing here, shield end of lines with %
-\def\@@IEEEenumerate[#1]{%
- \ifnum\@enumdepth>3\relax\@toodeep\else%
- \ifnum\@listdepth>5\relax\@toodeep\else%
- \advance\@enumdepth\@ne%
- \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
- % get the labelindentfactor for this level
- \advance\@listdepth\@ne% we need to know what the level WILL be
- \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}%
- \advance\@listdepth-\@ne% undo our increment
- \def\@IEEEiedjustify{2}% right justified labels are default
- % set other defaults
- \IEEEnocalcleftmarginfalse%
- \IEEEnolabelindentfactorfalse%
- \topsep\IEEEiedtopsep%
- \IEEElabelindent\IEEEelabelindent%
- \labelsep\IEEEiednormlabelsep%
- \partopsep 0ex%
- \parsep 0ex%
- \itemsep 0ex%
- \rightmargin 0em%
- \listparindent 0em%
- \itemindent 0em%
- % calculate the label width
- % We'll set it to the width suitable for all labels using
- % normalfont 1) to 9)
- % The user can override this later
- \settowidth{\labelwidth}{9)}%
- \@IEEEsavelistparams% save our list parameters
- \list{\csname label\@enumctr\endcsname}{\usecounter{\@enumctr}%
- \@IEEErestorelistparams% override any list{} changes
- % to our globals
- \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel
- \IEEEiedlistdecl% let user alter parameters
- #1\relax%
- % If the user has requested not to use the
- % IEEElabelindent factor, don't revise \IEEElabelindent
- \ifIEEEnolabelindentfactor\relax%
- \else\IEEElabelindent=\IEEElabelindentfactor\IEEElabelindent%
- \fi%
- % Unless the user has requested otherwise,
- % calculate our left margin based
- % on \IEEElabelindent, \labelwidth and
- % \labelsep
- \ifIEEEnocalcleftmargin\relax%
- \else\IEEEcalcleftmargin{\IEEElabelindent}%
- \fi}\fi\fi}%
-
-
-% DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS
-% AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS
-% IEEEtran description list MDS 1/2001
-% Note controlled spacing here, shield end of lines with %
-\def\@@IEEEdescription[#1]{%
- \ifnum\@listdepth>5\relax\@toodeep\else%
- % get the labelindentfactor for this level
- \advance\@listdepth\@ne% we need to know what the level WILL be
- \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}%
- \advance\@listdepth-\@ne% undo our increment
- \def\@IEEEiedjustify{0}% left justified labels are default
- % set other defaults
- \IEEEnocalcleftmarginfalse%
- \IEEEnolabelindentfactorfalse%
- \topsep\IEEEiedtopsep%
- \IEEElabelindent\IEEEdlabelindent%
- % assume normal labelsep
- \labelsep\IEEEiednormlabelsep%
- \partopsep 0ex%
- \parsep 0ex%
- \itemsep 0ex%
- \rightmargin 0em%
- \listparindent 0em%
- \itemindent 0em%
- % Bogus label width in case the user forgets
- % to set it.
- % TIP: If you want to see what a variable's width is you
- % can use the TeX command \showthe\width-variable to
- % display it on the screen during compilation
- % (This might be helpful to know when you need to find out
- % which label is the widest)
- \settowidth{\labelwidth}{Hello}%
- \@IEEEsavelistparams% save our list parameters
- \list{}{\@IEEErestorelistparams% override any list{} changes
- % to our globals
- \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel
- \IEEEiedlistdecl% let user alter parameters
- #1\relax%
- % If the user has requested not to use the
- % labelindent factor, don't revise \IEEElabelindent
- \ifIEEEnolabelindentfactor\relax%
- \else\IEEElabelindent=\IEEElabelindentfactor\IEEElabelindent%
- \fi%
- % Unless the user has requested otherwise,
- % calculate our left margin based
- % on \IEEElabelindent, \labelwidth and
- % \labelsep
- \ifIEEEnocalcleftmargin\relax%
- \else\IEEEcalcleftmargin{\IEEElabelindent}\relax%
- \fi}\fi}
-
-% v1.6b we use one makelabel that does justification as needed.
-\def\@IEEEiedmakelabel#1{\relax\if\@IEEEiedjustify 0\relax
-\makebox[\labelwidth][l]{\normalfont #1}\else
-\if\@IEEEiedjustify 1\relax
-\makebox[\labelwidth][c]{\normalfont #1}\else
-\makebox[\labelwidth][r]{\normalfont #1}\fi\fi}
-
-
-% VERSE and QUOTE
-% V1.7 define environments with newenvironment
-\newenvironment{verse}{\let\\=\@centercr
- \list{}{\itemsep\z@ \itemindent -1.5em \listparindent \itemindent
- \rightmargin\leftmargin\advance\leftmargin 1.5em}\item\relax}
- {\endlist}
-\newenvironment{quotation}{\list{}{\listparindent 1.5em \itemindent\listparindent
- \rightmargin\leftmargin \parsep 0pt plus 1pt}\item\relax}
- {\endlist}
-\newenvironment{quote}{\list{}{\rightmargin\leftmargin}\item\relax}
- {\endlist}
-
-
-% \titlepage
-% provided only for backward compatibility. \maketitle is the correct
-% way to create the title page.
-\newif\if@restonecol
-\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
- \else \newpage \fi \thispagestyle{empty}\c@page\z@}
-\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}
-
-% standard values from article.cls
-\arraycolsep 5pt
-\arrayrulewidth .4pt
-\doublerulesep 2pt
-
-\tabcolsep 6pt
-\tabbingsep 0.5em
-
-
-%% FOOTNOTES
-%
-%\skip\footins 10pt plus 4pt minus 2pt
-% V1.6 respond to changes in font size
-% space added above the footnotes (if present)
-\skip\footins 0.9\baselineskip plus 0.4\baselineskip minus 0.2\baselineskip
-
-% V1.6, we need to make \footnotesep responsive to changes
-% in \baselineskip or strange spacings will result when in
-% draft mode. Here is a little LaTeX secret - \footnotesep
-% determines the height of an invisible strut that is placed
-% *above* the baseline of footnotes after the first. Since
-% LaTeX considers the space for characters to be 0.7/baselineskip
-% above the baseline and 0.3/baselineskip below it, we need to
-% use 0.7/baselineskip as a \footnotesep to maintain equal spacing
-% between all the lines of the footnotes. IEEE often uses a tad
-% more, so use 0.8\baselineskip. This slightly larger value also helps
-% the text to clear the footnote marks. Note that \thanks in IEEEtran
-% uses its own value of \footnotesep which is set in \maketitle.
-{\footnotesize
-\global\footnotesep 0.8\baselineskip}
-
-
-\skip\@mpfootins = \skip\footins
-\fboxsep = 3pt
-\fboxrule = .4pt
-% V1.6 use 1em, then use LaTeX2e's \@makefnmark
-% Note that IEEE normally *left* aligns the footnote marks, so we don't need
-% box resizing tricks here.
-\long\def\@makefntext#1{\parindent 1em\indent\hbox{\@makefnmark}#1}% V1.6 use 1em
-% V1.7 compsoc does not use superscipts for footnote marks
-\ifCLASSOPTIONcompsoc
-\def\@IEEEcompsocmakefnmark{\hbox{\normalfont\@thefnmark.\ }}
-\long\def\@makefntext#1{\parindent 1em\indent\hbox{\@IEEEcompsocmakefnmark}#1}
-\fi
-
-% IEEE does not use footnote rules
-\def\footnoterule{}
-
-% V1.7 for compsoc, IEEE uses a footnote rule only for \thanks. We devise a "one-shot"
-% system to implement this.
-\newif\if@IEEEenableoneshotfootnoterule
-\@IEEEenableoneshotfootnoterulefalse
-\ifCLASSOPTIONcompsoc
-\def\footnoterule{\relax\if@IEEEenableoneshotfootnoterule
-\kern-5pt
-\hbox to \columnwidth{\hfill\vrule width 0.5\columnwidth height 0.4pt\hfill}
-\kern4.6pt
-\global\@IEEEenableoneshotfootnoterulefalse
-\else
-\relax
-\fi}
-\fi
-
-% V1.6 do not allow LaTeX to break a footnote across multiple pages
-\interfootnotelinepenalty=10000
-
-% V1.6 discourage breaks within equations
-% Note that amsmath normally sets this to 10000,
-% but LaTeX2e normally uses 100.
-\interdisplaylinepenalty=2500
-
-% default allows section depth up to /paragraph
-\setcounter{secnumdepth}{4}
-
-% technotes do not allow /paragraph
-\ifCLASSOPTIONtechnote
- \setcounter{secnumdepth}{3}
-\fi
-% neither do compsoc conferences
-\@IEEEcompsocconfonly{\setcounter{secnumdepth}{3}}
-
-
-\newcounter{section}
-\newcounter{subsection}[section]
-\newcounter{subsubsection}[subsection]
-\newcounter{paragraph}[subsubsection]
-
-% used only by IEEEtran's IEEEeqnarray as other packages may
-% have their own, different, implementations
-\newcounter{IEEEsubequation}[equation]
-
-% as shown when called by user from \ref, \label and in table of contents
-\def\theequation{\arabic{equation}} % 1
-\def\theIEEEsubequation{\theequation\alph{IEEEsubequation}} % 1a (used only by IEEEtran's IEEEeqnarray)
-\ifCLASSOPTIONcompsoc
-% compsoc is all arabic
-\def\thesection{\arabic{section}}
-\def\thesubsection{\thesection.\arabic{subsection}}
-\def\thesubsubsection{\thesubsection.\arabic{subsubsection}}
-\def\theparagraph{\thesubsubsection.\arabic{paragraph}}
-\else
-\def\thesection{\Roman{section}} % I
-% V1.7, \mbox prevents breaks around -
-\def\thesubsection{\mbox{\thesection-\Alph{subsection}}} % I-A
-% V1.7 use I-A1 format used by IEEE rather than I-A.1
-\def\thesubsubsection{\thesubsection\arabic{subsubsection}} % I-A1
-\def\theparagraph{\thesubsubsection\alph{paragraph}} % I-A1a
-\fi
-
-% From Heiko Oberdiek. Because of the \mbox in \thesubsection, we need to
-% tell hyperref to disable the \mbox command when making PDF bookmarks.
-% This done already with hyperref.sty version 6.74o and later, but
-% it will not hurt to do it here again for users of older versions.
-\@ifundefined{pdfstringdefPreHook}{\let\pdfstringdefPreHook\@empty}{}%
-\g@addto@macro\pdfstringdefPreHook{\let\mbox\relax}
-
-
-% Main text forms (how shown in main text headings)
-% V1.6, using \thesection in \thesectiondis allows changes
-% in the former to automatically appear in the latter
-\ifCLASSOPTIONcompsoc
- \ifCLASSOPTIONconference% compsoc conference
- \def\thesectiondis{\thesection.}
- \def\thesubsectiondis{\thesectiondis\arabic{subsection}.}
- \def\thesubsubsectiondis{\thesubsectiondis\arabic{subsubsection}.}
- \def\theparagraphdis{\thesubsubsectiondis\arabic{paragraph}.}
- \else% compsoc not conferencs
- \def\thesectiondis{\thesection}
- \def\thesubsectiondis{\thesectiondis.\arabic{subsection}}
- \def\thesubsubsectiondis{\thesubsectiondis.\arabic{subsubsection}}
- \def\theparagraphdis{\thesubsubsectiondis.\arabic{paragraph}}
- \fi
-\else% not compsoc
- \def\thesectiondis{\thesection.} % I.
- \def\thesubsectiondis{\Alph{subsection}.} % B.
- \def\thesubsubsectiondis{\arabic{subsubsection})} % 3)
- \def\theparagraphdis{\alph{paragraph})} % d)
-\fi
-
-% just like LaTeX2e's \@eqnnum
-\def\theequationdis{{\normalfont \normalcolor (\theequation)}}% (1)
-% IEEEsubequation used only by IEEEtran's IEEEeqnarray
-\def\theIEEEsubequationdis{{\normalfont \normalcolor (\theIEEEsubequation)}}% (1a)
-% redirect LaTeX2e's equation number display and all that depend on
-% it, through IEEEtran's \theequationdis
-\def\@eqnnum{\theequationdis}
-
-
-
-% V1.7 provide string macros as article.cls does
-\def\contentsname{Contents}
-\def\listfigurename{List of Figures}
-\def\listtablename{List of Tables}
-\def\refname{References}
-\def\indexname{Index}
-\def\figurename{Fig.}
-\def\tablename{TABLE}
-\@IEEEcompsocconfonly{\def\figurename{Figure}\def\tablename{Table}}
-\def\partname{Part}
-\def\appendixname{Appendix}
-\def\abstractname{Abstract}
-% IEEE specific names
-\def\IEEEkeywordsname{Index Terms}
-\def\IEEEproofname{Proof}
-
-
-% LIST OF FIGURES AND TABLES AND TABLE OF CONTENTS
-%
-\def\@pnumwidth{1.55em}
-\def\@tocrmarg{2.55em}
-\def\@dotsep{4.5}
-\setcounter{tocdepth}{3}
-
-% adjusted some spacings here so that section numbers will not easily
-% collide with the section titles.
-% VIII; VIII-A; and VIII-A.1 are usually the worst offenders.
-% MDS 1/2001
-\def\tableofcontents{\section*{\contentsname}\@starttoc{toc}}
-\def\l@section#1#2{\addpenalty{\@secpenalty}\addvspace{1.0em plus 1pt}%
- \@tempdima 2.75em \begingroup \parindent \z@ \rightskip \@pnumwidth%
- \parfillskip-\@pnumwidth {\bfseries\leavevmode #1}\hfil\hbox to\@pnumwidth{\hss #2}\par%
- \endgroup}
-% argument format #1:level, #2:labelindent,#3:labelsep
-\def\l@subsection{\@dottedtocline{2}{2.75em}{3.75em}}
-\def\l@subsubsection{\@dottedtocline{3}{6.5em}{4.5em}}
-% must provide \l@ defs for ALL sublevels EVEN if tocdepth
-% is such as they will not appear in the table of contents
-% these defs are how TOC knows what level these things are!
-\def\l@paragraph{\@dottedtocline{4}{6.5em}{5.5em}}
-\def\l@subparagraph{\@dottedtocline{5}{6.5em}{6.5em}}
-\def\listoffigures{\section*{\listfigurename}\@starttoc{lof}}
-\def\l@figure{\@dottedtocline{1}{0em}{2.75em}}
-\def\listoftables{\section*{\listtablename}\@starttoc{lot}}
-\let\l@table\l@figure
-
-
-%% Definitions for floats
-%%
-%% Normal Floats
-\floatsep 1\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip
-\textfloatsep 1.7\baselineskip plus 0.2\baselineskip minus 0.4\baselineskip
-\@fptop 0pt plus 1fil
-\@fpsep 0.75\baselineskip plus 2fil
-\@fpbot 0pt plus 1fil
-\def\topfraction{0.9}
-\def\bottomfraction{0.4}
-\def\floatpagefraction{0.8}
-% V1.7, let top floats approach 90% of page
-\def\textfraction{0.1}
-
-%% Double Column Floats
-\dblfloatsep 1\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip
-
-\dbltextfloatsep 1.7\baselineskip plus 0.2\baselineskip minus 0.4\baselineskip
-% Note that it would be nice if the rubber here actually worked in LaTeX2e.
-% There is a long standing limitation in LaTeX, first discovered (to the best
-% of my knowledge) by Alan Jeffrey in 1992. LaTeX ignores the stretchable
-% portion of \dbltextfloatsep, and as a result, double column figures can and
-% do result in an non-integer number of lines in the main text columns with
-% underfull vbox errors as a consequence. A post to comp.text.tex
-% by Donald Arseneau confirms that this had not yet been fixed in 1998.
-% IEEEtran V1.6 will fix this problem for you in the titles, but it doesn't
-% protect you from other double floats. Happy vspace'ing.
-
-\@dblfptop 0pt plus 1fil
-\@dblfpsep 0.75\baselineskip plus 2fil
-\@dblfpbot 0pt plus 1fil
-\def\dbltopfraction{0.8}
-\def\dblfloatpagefraction{0.8}
-\setcounter{dbltopnumber}{4}
-
-\intextsep 1\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip
-\setcounter{topnumber}{2}
-\setcounter{bottomnumber}{2}
-\setcounter{totalnumber}{4}
-
-
-
-% article class provides these, we should too.
-\newlength\abovecaptionskip
-\newlength\belowcaptionskip
-% but only \abovecaptionskip is used above figure captions and *below* table
-% captions
-\setlength\abovecaptionskip{0.5\baselineskip}
-\setlength\belowcaptionskip{0pt}
-% V1.6 create hooks in case the caption spacing ever needs to be
-% overridden by a user
-\def\@IEEEfigurecaptionsepspace{\vskip\abovecaptionskip\relax}%
-\def\@IEEEtablecaptionsepspace{\vskip\abovecaptionskip\relax}%
-
-
-% 1.6b revise caption system so that \@makecaption uses two arguments
-% as with LaTeX2e. Otherwise, there will be problems when using hyperref.
-\def\@IEEEtablestring{table}
-
-\ifCLASSOPTIONcompsoc
-% V1.7 compsoc \@makecaption
-\ifCLASSOPTIONconference% compsoc conference
-\long\def\@makecaption#1#2{%
-% test if is a for a figure or table
-\ifx\@captype\@IEEEtablestring%
-% if a table, do table caption
-\normalsize\begin{center}{\normalfont\sffamily\normalsize {#1.}~ #2}\end{center}%
-\@IEEEtablecaptionsepspace
-% if not a table, format it as a figure
-\else
-\@IEEEfigurecaptionsepspace
-\setbox\@tempboxa\hbox{\normalfont\sffamily\normalsize {#1.}~ #2}%
-\ifdim \wd\@tempboxa >\hsize%
-% if caption is longer than a line, let it wrap around
-\setbox\@tempboxa\hbox{\normalfont\sffamily\normalsize {#1.}~ }%
-\parbox[t]{\hsize}{\normalfont\sffamily\normalsize \noindent\unhbox\@tempboxa#2}%
-% if caption is shorter than a line, center
-\else%
-\hbox to\hsize{\normalfont\sffamily\normalsize\hfil\box\@tempboxa\hfil}%
-\fi\fi}
-\else% nonconference compsoc
-\long\def\@makecaption#1#2{%
-% test if is a for a figure or table
-\ifx\@captype\@IEEEtablestring%
-% if a table, do table caption
-\normalsize\begin{center}{\normalfont\sffamily\normalsize #1}\\{\normalfont\sffamily\normalsize #2}\end{center}%
-\@IEEEtablecaptionsepspace
-% if not a table, format it as a figure
-\else
-\@IEEEfigurecaptionsepspace
-\setbox\@tempboxa\hbox{\normalfont\sffamily\normalsize {#1.}~ #2}%
-\ifdim \wd\@tempboxa >\hsize%
-% if caption is longer than a line, let it wrap around
-\setbox\@tempboxa\hbox{\normalfont\sffamily\normalsize {#1.}~ }%
-\parbox[t]{\hsize}{\normalfont\sffamily\normalsize \noindent\unhbox\@tempboxa#2}%
-% if caption is shorter than a line, left justify
-\else%
-\hbox to\hsize{\normalfont\sffamily\normalsize\box\@tempboxa\hfil}%
-\fi\fi}
-\fi
-
-\else% traditional noncompsoc \@makecaption
-\long\def\@makecaption#1#2{%
-% test if is a for a figure or table
-\ifx\@captype\@IEEEtablestring%
-% if a table, do table caption
-\footnotesize\begin{center}{\normalfont\footnotesize #1}\\{\normalfont\footnotesize\scshape #2}\end{center}%
-\@IEEEtablecaptionsepspace
-% if not a table, format it as a figure
-\else
-\@IEEEfigurecaptionsepspace
-% 3/2001 use footnotesize, not small; use two nonbreaking spaces, not one
-\setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}~~ #2}%
-\ifdim \wd\@tempboxa >\hsize%
-% if caption is longer than a line, let it wrap around
-\setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}~~ }%
-\parbox[t]{\hsize}{\normalfont\footnotesize\noindent\unhbox\@tempboxa#2}%
-% if caption is shorter than a line, center if conference, left justify otherwise
-\else%
-\ifCLASSOPTIONconference \hbox to\hsize{\normalfont\footnotesize\hfil\box\@tempboxa\hfil}%
-\else \hbox to\hsize{\normalfont\footnotesize\box\@tempboxa\hfil}%
-\fi\fi\fi}
-\fi
-
-
-
-% V1.7 disable captions class option, do so in a way that retains operation of \label
-% within \caption
-\ifCLASSOPTIONcaptionsoff
-\long\def\@makecaption#1#2{\vspace*{2em}\footnotesize\begin{center}{\footnotesize #1}\end{center}%
-\let\@IEEEtemporiglabeldefsave\label
-\let\@IEEEtemplabelargsave\relax
-\def\label##1{\gdef\@IEEEtemplabelargsave{##1}}%
-\setbox\@tempboxa\hbox{#2}%
-\let\label\@IEEEtemporiglabeldefsave
-\ifx\@IEEEtemplabelargsave\relax\else\label{\@IEEEtemplabelargsave}\fi}
-\fi
-
-
-% V1.7 define end environments with \def not \let so as to work OK with
-% preview-latex
-\newcounter{figure}
-\def\thefigure{\@arabic\c@figure}
-\def\fps@figure{tbp}
-\def\ftype@figure{1}
-\def\ext@figure{lof}
-\def\fnum@figure{\figurename~\thefigure}
-\def\figure{\@float{figure}}
-\def\endfigure{\end@float}
-\@namedef{figure*}{\@dblfloat{figure}}
-\@namedef{endfigure*}{\end@dblfloat}
-\newcounter{table}
-\ifCLASSOPTIONcompsoc
-\def\thetable{\arabic{table}}
-\else
-\def\thetable{\@Roman\c@table}
-\fi
-\def\fps@table{tbp}
-\def\ftype@table{2}
-\def\ext@table{lot}
-\def\fnum@table{\tablename~\thetable}
-% V1.6 IEEE uses 8pt text for tables
-% to default to footnotesize, we hack into LaTeX2e's \@floatboxreset and pray
-\def\table{\def\@floatboxreset{\reset@font\footnotesize\@setminipage}\@float{table}}
-\def\endtable{\end@float}
-% v1.6b double column tables need to default to footnotesize as well.
-\@namedef{table*}{\def\@floatboxreset{\reset@font\footnotesize\@setminipage}\@dblfloat{table}}
-\@namedef{endtable*}{\end@dblfloat}
-
-
-
-
-%%
-%% START OF IEEEeqnarry DEFINITIONS
-%%
-%% Inspired by the concepts, examples, and previous works of LaTeX
-%% coders and developers such as Donald Arseneau, Fred Bartlett,
-%% David Carlisle, Tony Liu, Frank Mittelbach, Piet van Oostrum,
-%% Roland Winkler and Mark Wooding.
-%% I don't make the claim that my work here is even near their calibre. ;)
-
-
-% hook to allow easy changeover to IEEEtran.cls/tools.sty error reporting
-\def\@IEEEclspkgerror{\ClassError{IEEEtran}}
-
-\newif\if@IEEEeqnarraystarform% flag to indicate if the environment was called as the star form
-\@IEEEeqnarraystarformfalse
-
-\newif\if@advanceIEEEeqncolcnt% tracks if the environment should advance the col counter
-% allows a way to make an \IEEEeqnarraybox that can be used within an \IEEEeqnarray
-% used by IEEEeqnarraymulticol so that it can work properly in both
-\@advanceIEEEeqncolcnttrue
-
-\newcount\@IEEEeqnnumcols % tracks how many IEEEeqnarray cols are defined
-\newcount\@IEEEeqncolcnt % tracks how many IEEEeqnarray cols the user actually used
-
-
-% The default math style used by the columns
-\def\IEEEeqnarraymathstyle{\displaystyle}
-% The default text style used by the columns
-% default to using the current font
-\def\IEEEeqnarraytextstyle{\relax}
-
-% like the iedlistdecl but for \IEEEeqnarray
-\def\IEEEeqnarraydecl{\relax}
-\def\IEEEeqnarrayboxdecl{\relax}
-
-% \yesnumber is the opposite of \nonumber
-% a novel concept with the same def as the equationarray package
-% However, we give IEEE versions too since some LaTeX packages such as
-% the MDWtools mathenv.sty redefine \nonumber to something else.
-\providecommand{\yesnumber}{\global\@eqnswtrue}
-\def\IEEEyesnumber{\global\@eqnswtrue}
-\def\IEEEnonumber{\global\@eqnswfalse}
-
-
-\def\IEEEyessubnumber{\global\@IEEEissubequationtrue\global\@eqnswtrue%
-\if@IEEEeqnarrayISinner% only do something inside an IEEEeqnarray
-\if@IEEElastlinewassubequation\addtocounter{equation}{-1}\else\setcounter{IEEEsubequation}{1}\fi%
-\def\@currentlabel{\p@IEEEsubequation\theIEEEsubequation}\fi}
-
-% flag to indicate that an equation is a sub equation
-\newif\if@IEEEissubequation%
-\@IEEEissubequationfalse
-
-% allows users to "push away" equations that get too close to the equation numbers
-\def\IEEEeqnarraynumspace{\hphantom{\if@IEEEissubequation\theIEEEsubequationdis\else\theequationdis\fi}}
-
-% provides a way to span multiple columns within IEEEeqnarray environments
-% will consider \if@advanceIEEEeqncolcnt before globally advancing the
-% column counter - so as to work within \IEEEeqnarraybox
-% usage: \IEEEeqnarraymulticol{number cols. to span}{col type}{cell text}
-\long\def\IEEEeqnarraymulticol#1#2#3{\multispan{#1}%
-% check if column is defined
-\relax\expandafter\ifx\csname @IEEEeqnarraycolDEF#2\endcsname\@IEEEeqnarraycolisdefined%
-\csname @IEEEeqnarraycolPRE#2\endcsname#3\relax\relax\relax\relax\relax%
-\relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST#2\endcsname%
-\else% if not, error and use default type
-\@IEEEclspkgerror{Invalid column type "#2" in \string\IEEEeqnarraymulticol.\MessageBreak
-Using a default centering column instead}%
-{You must define IEEEeqnarray column types before use.}%
-\csname @IEEEeqnarraycolPRE@IEEEdefault\endcsname#3\relax\relax\relax\relax\relax%
-\relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST@IEEEdefault\endcsname%
-\fi%
-% advance column counter only if the IEEEeqnarray environment wants it
-\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by #1\relax\fi}
-
-% like \omit, but maintains track of the column counter for \IEEEeqnarray
-\def\IEEEeqnarrayomit{\omit\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by 1\relax\fi}
-
-
-% provides a way to define a letter referenced column type
-% usage: \IEEEeqnarraydefcol{col. type letter/name}{pre insertion text}{post insertion text}
-\def\IEEEeqnarraydefcol#1#2#3{\expandafter\def\csname @IEEEeqnarraycolPRE#1\endcsname{#2}%
-\expandafter\def\csname @IEEEeqnarraycolPOST#1\endcsname{#3}%
-\expandafter\def\csname @IEEEeqnarraycolDEF#1\endcsname{1}}
-
-
-% provides a way to define a numerically referenced inter-column glue types
-% usage: \IEEEeqnarraydefcolsep{col. glue number}{glue definition}
-\def\IEEEeqnarraydefcolsep#1#2{\expandafter\def\csname @IEEEeqnarraycolSEP\romannumeral #1\endcsname{#2}%
-\expandafter\def\csname @IEEEeqnarraycolSEPDEF\romannumeral #1\endcsname{1}}
-
-
-\def\@IEEEeqnarraycolisdefined{1}% just a macro for 1, used for checking undefined column types
-
-
-% expands and appends the given argument to the \@IEEEtrantmptoksA token list
-% used to build up the \halign preamble
-\def\@IEEEappendtoksA#1{\edef\@@IEEEappendtoksA{\@IEEEtrantmptoksA={\the\@IEEEtrantmptoksA #1}}%
-\@@IEEEappendtoksA}
-
-% also appends to \@IEEEtrantmptoksA, but does not expand the argument
-% uses \toks8 as a scratchpad register
-\def\@IEEEappendNOEXPANDtoksA#1{\toks8={#1}%
-\edef\@@IEEEappendNOEXPANDtoksA{\@IEEEtrantmptoksA={\the\@IEEEtrantmptoksA\the\toks8}}%
-\@@IEEEappendNOEXPANDtoksA}
-
-% define some common column types for the user
-% math
-\IEEEeqnarraydefcol{l}{$\IEEEeqnarraymathstyle}{$\hfil}
-\IEEEeqnarraydefcol{c}{\hfil$\IEEEeqnarraymathstyle}{$\hfil}
-\IEEEeqnarraydefcol{r}{\hfil$\IEEEeqnarraymathstyle}{$}
-\IEEEeqnarraydefcol{L}{$\IEEEeqnarraymathstyle{}}{{}$\hfil}
-\IEEEeqnarraydefcol{C}{\hfil$\IEEEeqnarraymathstyle{}}{{}$\hfil}
-\IEEEeqnarraydefcol{R}{\hfil$\IEEEeqnarraymathstyle{}}{{}$}
-% text
-\IEEEeqnarraydefcol{s}{\IEEEeqnarraytextstyle}{\hfil}
-\IEEEeqnarraydefcol{t}{\hfil\IEEEeqnarraytextstyle}{\hfil}
-\IEEEeqnarraydefcol{u}{\hfil\IEEEeqnarraytextstyle}{}
-
-% vertical rules
-\IEEEeqnarraydefcol{v}{}{\vrule width\arrayrulewidth}
-\IEEEeqnarraydefcol{vv}{\vrule width\arrayrulewidth\hfil}{\hfil\vrule width\arrayrulewidth}
-\IEEEeqnarraydefcol{V}{}{\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth}
-\IEEEeqnarraydefcol{VV}{\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth\hfil}%
-{\hfil\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth}
-
-% horizontal rules
-\IEEEeqnarraydefcol{h}{}{\leaders\hrule height\arrayrulewidth\hfil}
-\IEEEeqnarraydefcol{H}{}{\leaders\vbox{\hrule width\arrayrulewidth\vskip\doublerulesep\hrule width\arrayrulewidth}\hfil}
-
-% plain
-\IEEEeqnarraydefcol{x}{}{}
-\IEEEeqnarraydefcol{X}{$}{$}
-
-% the default column type to use in the event a column type is not defined
-\IEEEeqnarraydefcol{@IEEEdefault}{\hfil$\IEEEeqnarraymathstyle}{$\hfil}
-
-
-% a zero tabskip (used for "-" col types)
-\def\@IEEEeqnarraycolSEPzero{0pt plus 0pt minus 0pt}
-% a centering tabskip (used for "+" col types)
-\def\@IEEEeqnarraycolSEPcenter{1000pt plus 0pt minus 1000pt}
-
-% top level default tabskip glues for the start, end, and inter-column
-% may be reset within environments not always at the top level, e.g., \IEEEeqnarraybox
-\edef\@IEEEeqnarraycolSEPdefaultstart{\@IEEEeqnarraycolSEPcenter}% default start glue
-\edef\@IEEEeqnarraycolSEPdefaultend{\@IEEEeqnarraycolSEPcenter}% default end glue
-\edef\@IEEEeqnarraycolSEPdefaultmid{\@IEEEeqnarraycolSEPzero}% default inter-column glue
-
-
-
-% creates a vertical rule that extends from the bottom to the top a a cell
-% Provided in case other packages redefine \vline some other way.
-% usage: \IEEEeqnarrayvrule[rule thickness]
-% If no argument is provided, \arrayrulewidth will be used for the rule thickness.
-\newcommand\IEEEeqnarrayvrule[1][\arrayrulewidth]{\vrule\@width#1\relax}
-
-% creates a blank separator row
-% usage: \IEEEeqnarrayseprow[separation length][font size commands]
-% default is \IEEEeqnarrayseprow[0.25\normalbaselineskip][\relax]
-% blank arguments inherit the default values
-% uses \skip5 as a scratch register - calls \@IEEEeqnarraystrutsize which uses more scratch registers
-\def\IEEEeqnarrayseprow{\relax\@ifnextchar[{\@IEEEeqnarrayseprow}{\@IEEEeqnarrayseprow[0.25\normalbaselineskip]}}
-\def\@IEEEeqnarrayseprow[#1]{\relax\@ifnextchar[{\@@IEEEeqnarrayseprow[#1]}{\@@IEEEeqnarrayseprow[#1][\relax]}}
-\def\@@IEEEeqnarrayseprow[#1][#2]{\def\@IEEEeqnarrayseprowARGONE{#1}%
-\ifx\@IEEEeqnarrayseprowARGONE\@empty%
-% get the skip value, based on the font commands
-% use skip5 because \IEEEeqnarraystrutsize uses \skip0, \skip2, \skip3
-% assign within a bogus box to confine the font changes
-{\setbox0=\hbox{#2\relax\global\skip5=0.25\normalbaselineskip}}%
-\else%
-{\setbox0=\hbox{#2\relax\global\skip5=#1}}%
-\fi%
-\@IEEEeqnarrayhoptolastcolumn\IEEEeqnarraystrutsize{\skip5}{0pt}[\relax]\relax}
-
-% creates a blank separator row, but omits all the column templates
-% usage: \IEEEeqnarrayseprowcut[separation length][font size commands]
-% default is \IEEEeqnarrayseprowcut[0.25\normalbaselineskip][\relax]
-% blank arguments inherit the default values
-% uses \skip5 as a scratch register - calls \@IEEEeqnarraystrutsize which uses more scratch registers
-\def\IEEEeqnarrayseprowcut{\multispan{\@IEEEeqnnumcols}\relax% span all the cols
-% advance column counter only if the IEEEeqnarray environment wants it
-\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
-\@ifnextchar[{\@IEEEeqnarrayseprowcut}{\@IEEEeqnarrayseprowcut[0.25\normalbaselineskip]}}
-\def\@IEEEeqnarrayseprowcut[#1]{\relax\@ifnextchar[{\@@IEEEeqnarrayseprowcut[#1]}{\@@IEEEeqnarrayseprowcut[#1][\relax]}}
-\def\@@IEEEeqnarrayseprowcut[#1][#2]{\def\@IEEEeqnarrayseprowARGONE{#1}%
-\ifx\@IEEEeqnarrayseprowARGONE\@empty%
-% get the skip value, based on the font commands
-% use skip5 because \IEEEeqnarraystrutsize uses \skip0, \skip2, \skip3
-% assign within a bogus box to confine the font changes
-{\setbox0=\hbox{#2\relax\global\skip5=0.25\normalbaselineskip}}%
-\else%
-{\setbox0=\hbox{#2\relax\global\skip5=#1}}%
-\fi%
-\IEEEeqnarraystrutsize{\skip5}{0pt}[\relax]\relax}
-
-
-
-% draws a single rule across all the columns optional
-% argument determines the rule width, \arrayrulewidth is the default
-% updates column counter as needed and turns off struts
-% usage: \IEEEeqnarrayrulerow[rule line thickness]
-\def\IEEEeqnarrayrulerow{\multispan{\@IEEEeqnnumcols}\relax% span all the cols
-% advance column counter only if the IEEEeqnarray environment wants it
-\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
-\@ifnextchar[{\@IEEEeqnarrayrulerow}{\@IEEEeqnarrayrulerow[\arrayrulewidth]}}
-\def\@IEEEeqnarrayrulerow[#1]{\leaders\hrule height#1\hfil\relax% put in our rule
-% turn off any struts
-\IEEEeqnarraystrutsize{0pt}{0pt}[\relax]\relax}
-
-
-% draws a double rule by using a single rule row, a separator row, and then
-% another single rule row
-% first optional argument determines the rule thicknesses, \arrayrulewidth is the default
-% second optional argument determines the rule spacing, \doublerulesep is the default
-% usage: \IEEEeqnarraydblrulerow[rule line thickness][rule spacing]
-\def\IEEEeqnarraydblrulerow{\multispan{\@IEEEeqnnumcols}\relax% span all the cols
-% advance column counter only if the IEEEeqnarray environment wants it
-\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
-\@ifnextchar[{\@IEEEeqnarraydblrulerow}{\@IEEEeqnarraydblrulerow[\arrayrulewidth]}}
-\def\@IEEEeqnarraydblrulerow[#1]{\relax\@ifnextchar[{\@@IEEEeqnarraydblrulerow[#1]}%
-{\@@IEEEeqnarraydblrulerow[#1][\doublerulesep]}}
-\def\@@IEEEeqnarraydblrulerow[#1][#2]{\def\@IEEEeqnarraydblrulerowARG{#1}%
-% we allow the user to say \IEEEeqnarraydblrulerow[][]
-\ifx\@IEEEeqnarraydblrulerowARG\@empty%
-\@IEEEeqnarrayrulerow[\arrayrulewidth]%
-\else%
-\@IEEEeqnarrayrulerow[#1]\relax%
-\fi%
-\def\@IEEEeqnarraydblrulerowARG{#2}%
-\ifx\@IEEEeqnarraydblrulerowARG\@empty%
-\\\IEEEeqnarrayseprow[\doublerulesep][\relax]%
-\else%
-\\\IEEEeqnarrayseprow[#2][\relax]%
-\fi%
-\\\multispan{\@IEEEeqnnumcols}%
-% advance column counter only if the IEEEeqnarray environment wants it
-\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
-\def\@IEEEeqnarraydblrulerowARG{#1}%
-\ifx\@IEEEeqnarraydblrulerowARG\@empty%
-\@IEEEeqnarrayrulerow[\arrayrulewidth]%
-\else%
-\@IEEEeqnarrayrulerow[#1]%
-\fi%
-}
-
-% draws a double rule by using a single rule row, a separator (cutting) row, and then
-% another single rule row
-% first optional argument determines the rule thicknesses, \arrayrulewidth is the default
-% second optional argument determines the rule spacing, \doublerulesep is the default
-% usage: \IEEEeqnarraydblrulerow[rule line thickness][rule spacing]
-\def\IEEEeqnarraydblrulerowcut{\multispan{\@IEEEeqnnumcols}\relax% span all the cols
-% advance column counter only if the IEEEeqnarray environment wants it
-\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
-\@ifnextchar[{\@IEEEeqnarraydblrulerowcut}{\@IEEEeqnarraydblrulerowcut[\arrayrulewidth]}}
-\def\@IEEEeqnarraydblrulerowcut[#1]{\relax\@ifnextchar[{\@@IEEEeqnarraydblrulerowcut[#1]}%
-{\@@IEEEeqnarraydblrulerowcut[#1][\doublerulesep]}}
-\def\@@IEEEeqnarraydblrulerowcut[#1][#2]{\def\@IEEEeqnarraydblrulerowARG{#1}%
-% we allow the user to say \IEEEeqnarraydblrulerow[][]
-\ifx\@IEEEeqnarraydblrulerowARG\@empty%
-\@IEEEeqnarrayrulerow[\arrayrulewidth]%
-\else%
-\@IEEEeqnarrayrulerow[#1]%
-\fi%
-\def\@IEEEeqnarraydblrulerowARG{#2}%
-\ifx\@IEEEeqnarraydblrulerowARG\@empty%
-\\\IEEEeqnarrayseprowcut[\doublerulesep][\relax]%
-\else%
-\\\IEEEeqnarrayseprowcut[#2][\relax]%
-\fi%
-\\\multispan{\@IEEEeqnnumcols}%
-% advance column counter only if the IEEEeqnarray environment wants it
-\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
-\def\@IEEEeqnarraydblrulerowARG{#1}%
-\ifx\@IEEEeqnarraydblrulerowARG\@empty%
-\@IEEEeqnarrayrulerow[\arrayrulewidth]%
-\else%
-\@IEEEeqnarrayrulerow[#1]%
-\fi%
-}
-
-
-
-% inserts a full row's worth of &'s
-% relies on \@IEEEeqnnumcols to provide the correct number of columns
-% uses \@IEEEtrantmptoksA, \count0 as scratch registers
-\def\@IEEEeqnarrayhoptolastcolumn{\@IEEEtrantmptoksA={}\count0=1\relax%
-\loop% add cols if the user did not use them all
-\ifnum\count0<\@IEEEeqnnumcols\relax%
-\@IEEEappendtoksA{&}%
-\advance\count0 by 1\relax% update the col count
-\repeat%
-\the\@IEEEtrantmptoksA%execute the &'s
-}
-
-
-
-\newif\if@IEEEeqnarrayISinner % flag to indicate if we are within the lines
-\@IEEEeqnarrayISinnerfalse % of an IEEEeqnarray - after the IEEEeqnarraydecl
-
-\edef\@IEEEeqnarrayTHEstrutheight{0pt} % height and depth of IEEEeqnarray struts
-\edef\@IEEEeqnarrayTHEstrutdepth{0pt}
-
-\edef\@IEEEeqnarrayTHEmasterstrutheight{0pt} % default height and depth of
-\edef\@IEEEeqnarrayTHEmasterstrutdepth{0pt} % struts within an IEEEeqnarray
-
-\edef\@IEEEeqnarrayTHEmasterstrutHSAVE{0pt} % saved master strut height
-\edef\@IEEEeqnarrayTHEmasterstrutDSAVE{0pt} % and depth
-
-\newif\if@IEEEeqnarrayusemasterstrut % flag to indicate that the master strut value
-\@IEEEeqnarrayusemasterstruttrue % is to be used
-
-
-
-% saves the strut height and depth of the master strut
-\def\@IEEEeqnarraymasterstrutsave{\relax%
-\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax%
-\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax%
-% remove stretchability
-\dimen0\skip0\relax%
-\dimen2\skip2\relax%
-% save values
-\edef\@IEEEeqnarrayTHEmasterstrutHSAVE{\the\dimen0}%
-\edef\@IEEEeqnarrayTHEmasterstrutDSAVE{\the\dimen2}}
-
-% restores the strut height and depth of the master strut
-\def\@IEEEeqnarraymasterstrutrestore{\relax%
-\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutHSAVE\relax%
-\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutDSAVE\relax%
-% remove stretchability
-\dimen0\skip0\relax%
-\dimen2\skip2\relax%
-% restore values
-\edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}%
-\edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}}
-
-
-% globally restores the strut height and depth to the
-% master values and sets the master strut flag to true
-\def\@IEEEeqnarraystrutreset{\relax%
-\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax%
-\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax%
-% remove stretchability
-\dimen0\skip0\relax%
-\dimen2\skip2\relax%
-% restore values
-\xdef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
-\xdef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
-\global\@IEEEeqnarrayusemasterstruttrue}
-
-
-% if the master strut is not to be used, make the current
-% values of \@IEEEeqnarrayTHEstrutheight, \@IEEEeqnarrayTHEstrutdepth
-% and the use master strut flag, global
-% this allows user strut commands issued in the last column to be carried
-% into the isolation/strut column
-\def\@IEEEeqnarrayglobalizestrutstatus{\relax%
-\if@IEEEeqnarrayusemasterstrut\else%
-\xdef\@IEEEeqnarrayTHEstrutheight{\@IEEEeqnarrayTHEstrutheight}%
-\xdef\@IEEEeqnarrayTHEstrutdepth{\@IEEEeqnarrayTHEstrutdepth}%
-\global\@IEEEeqnarrayusemasterstrutfalse%
-\fi}
-
-
-
-% usage: \IEEEeqnarraystrutsize{height}{depth}[font size commands]
-% If called outside the lines of an IEEEeqnarray, sets the height
-% and depth of both the master and local struts. If called inside
-% an IEEEeqnarray line, sets the height and depth of the local strut
-% only and sets the flag to indicate the use of the local strut
-% values. If the height or depth is left blank, 0.7\normalbaselineskip
-% and 0.3\normalbaselineskip will be used, respectively.
-% The optional argument can be used to evaluate the lengths under
-% a different font size and styles. If none is specified, the current
-% font is used.
-% uses scratch registers \skip0, \skip2, \skip3, \dimen0, \dimen2
-\def\IEEEeqnarraystrutsize#1#2{\relax\@ifnextchar[{\@IEEEeqnarraystrutsize{#1}{#2}}{\@IEEEeqnarraystrutsize{#1}{#2}[\relax]}}
-\def\@IEEEeqnarraystrutsize#1#2[#3]{\def\@IEEEeqnarraystrutsizeARG{#1}%
-\ifx\@IEEEeqnarraystrutsizeARG\@empty%
-{\setbox0=\hbox{#3\relax\global\skip3=0.7\normalbaselineskip}}%
-\skip0=\skip3\relax%
-\else% arg one present
-{\setbox0=\hbox{#3\relax\global\skip3=#1\relax}}%
-\skip0=\skip3\relax%
-\fi% if null arg
-\def\@IEEEeqnarraystrutsizeARG{#2}%
-\ifx\@IEEEeqnarraystrutsizeARG\@empty%
-{\setbox0=\hbox{#3\relax\global\skip3=0.3\normalbaselineskip}}%
-\skip2=\skip3\relax%
-\else% arg two present
-{\setbox0=\hbox{#3\relax\global\skip3=#2\relax}}%
-\skip2=\skip3\relax%
-\fi% if null arg
-% remove stretchability, just to be safe
-\dimen0\skip0\relax%
-\dimen2\skip2\relax%
-% dimen0 = height, dimen2 = depth
-\if@IEEEeqnarrayISinner% inner does not touch master strut size
-\edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
-\edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
-\@IEEEeqnarrayusemasterstrutfalse% do not use master
-\else% outer, have to set master strut too
-\edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}%
-\edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}%
-\edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
-\edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
-\@IEEEeqnarrayusemasterstruttrue% use master strut
-\fi}
-
-
-% usage: \IEEEeqnarraystrutsizeadd{added height}{added depth}[font size commands]
-% If called outside the lines of an IEEEeqnarray, adds the given height
-% and depth to both the master and local struts.
-% If called inside an IEEEeqnarray line, adds the given height and depth
-% to the local strut only and sets the flag to indicate the use
-% of the local strut values.
-% In both cases, if a height or depth is left blank, 0pt is used instead.
-% The optional argument can be used to evaluate the lengths under
-% a different font size and styles. If none is specified, the current
-% font is used.
-% uses scratch registers \skip0, \skip2, \skip3, \dimen0, \dimen2
-\def\IEEEeqnarraystrutsizeadd#1#2{\relax\@ifnextchar[{\@IEEEeqnarraystrutsizeadd{#1}{#2}}{\@IEEEeqnarraystrutsizeadd{#1}{#2}[\relax]}}
-\def\@IEEEeqnarraystrutsizeadd#1#2[#3]{\def\@IEEEeqnarraystrutsizearg{#1}%
-\ifx\@IEEEeqnarraystrutsizearg\@empty%
-\skip0=0pt\relax%
-\else% arg one present
-{\setbox0=\hbox{#3\relax\global\skip3=#1}}%
-\skip0=\skip3\relax%
-\fi% if null arg
-\def\@IEEEeqnarraystrutsizearg{#2}%
-\ifx\@IEEEeqnarraystrutsizearg\@empty%
-\skip2=0pt\relax%
-\else% arg two present
-{\setbox0=\hbox{#3\relax\global\skip3=#2}}%
-\skip2=\skip3\relax%
-\fi% if null arg
-% remove stretchability, just to be safe
-\dimen0\skip0\relax%
-\dimen2\skip2\relax%
-% dimen0 = height, dimen2 = depth
-\if@IEEEeqnarrayISinner% inner does not touch master strut size
-% get local strut size
-\expandafter\skip0=\@IEEEeqnarrayTHEstrutheight\relax%
-\expandafter\skip2=\@IEEEeqnarrayTHEstrutdepth\relax%
-% add it to the user supplied values
-\advance\dimen0 by \skip0\relax%
-\advance\dimen2 by \skip2\relax%
-% update the local strut size
-\edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
-\edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
-\@IEEEeqnarrayusemasterstrutfalse% do not use master
-\else% outer, have to set master strut too
-% get master strut size
-\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax%
-\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax%
-% add it to the user supplied values
-\advance\dimen0 by \skip0\relax%
-\advance\dimen2 by \skip2\relax%
-% update the local and master strut sizes
-\edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}%
-\edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}%
-\edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
-\edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
-\@IEEEeqnarrayusemasterstruttrue% use master strut
-\fi}
-
-
-% allow user a way to see the struts
-\newif\ifIEEEvisiblestruts
-\IEEEvisiblestrutsfalse
-
-% inserts an invisible strut using the master or local strut values
-% uses scratch registers \skip0, \skip2, \dimen0, \dimen2
-\def\@IEEEeqnarrayinsertstrut{\relax%
-\if@IEEEeqnarrayusemasterstrut
-% get master strut size
-\expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax%
-\expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax%
-\else%
-% get local strut size
-\expandafter\skip0=\@IEEEeqnarrayTHEstrutheight\relax%
-\expandafter\skip2=\@IEEEeqnarrayTHEstrutdepth\relax%
-\fi%
-% remove stretchability, probably not needed
-\dimen0\skip0\relax%
-\dimen2\skip2\relax%
-% dimen0 = height, dimen2 = depth
-% allow user to see struts if desired
-\ifIEEEvisiblestruts%
-\vrule width0.2pt height\dimen0 depth\dimen2\relax%
-\else%
-\vrule width0pt height\dimen0 depth\dimen2\relax\fi}
-
-
-% creates an invisible strut, useable even outside \IEEEeqnarray
-% if \IEEEvisiblestrutstrue, the strut will be visible and 0.2pt wide.
-% usage: \IEEEstrut[height][depth][font size commands]
-% default is \IEEEstrut[0.7\normalbaselineskip][0.3\normalbaselineskip][\relax]
-% blank arguments inherit the default values
-% uses \dimen0, \dimen2, \skip0, \skip2
-\def\IEEEstrut{\relax\@ifnextchar[{\@IEEEstrut}{\@IEEEstrut[0.7\normalbaselineskip]}}
-\def\@IEEEstrut[#1]{\relax\@ifnextchar[{\@@IEEEstrut[#1]}{\@@IEEEstrut[#1][0.3\normalbaselineskip]}}
-\def\@@IEEEstrut[#1][#2]{\relax\@ifnextchar[{\@@@IEEEstrut[#1][#2]}{\@@@IEEEstrut[#1][#2][\relax]}}
-\def\@@@IEEEstrut[#1][#2][#3]{\mbox{#3\relax%
-\def\@IEEEstrutARG{#1}%
-\ifx\@IEEEstrutARG\@empty%
-\skip0=0.7\normalbaselineskip\relax%
-\else%
-\skip0=#1\relax%
-\fi%
-\def\@IEEEstrutARG{#2}%
-\ifx\@IEEEstrutARG\@empty%
-\skip2=0.3\normalbaselineskip\relax%
-\else%
-\skip2=#2\relax%
-\fi%
-% remove stretchability, probably not needed
-\dimen0\skip0\relax%
-\dimen2\skip2\relax%
-\ifIEEEvisiblestruts%
-\vrule width0.2pt height\dimen0 depth\dimen2\relax%
-\else%
-\vrule width0.0pt height\dimen0 depth\dimen2\relax\fi}}
-
-
-% enables strut mode by setting a default strut size and then zeroing the
-% \baselineskip, \lineskip, \lineskiplimit and \jot
-\def\IEEEeqnarraystrutmode{\IEEEeqnarraystrutsize{0.7\normalbaselineskip}{0.3\normalbaselineskip}[\relax]%
-\baselineskip=0pt\lineskip=0pt\lineskiplimit=0pt\jot=0pt}
-
-
-
-\def\IEEEeqnarray{\@IEEEeqnarraystarformfalse\@IEEEeqnarray}
-\def\endIEEEeqnarray{\end@IEEEeqnarray}
-
-\@namedef{IEEEeqnarray*}{\@IEEEeqnarraystarformtrue\@IEEEeqnarray}
-\@namedef{endIEEEeqnarray*}{\end@IEEEeqnarray}
-
-
-% \IEEEeqnarray is an enhanced \eqnarray.
-% The star form defaults to not putting equation numbers at the end of each row.
-% usage: \IEEEeqnarray[decl]{cols}
-\def\@IEEEeqnarray{\relax\@ifnextchar[{\@@IEEEeqnarray}{\@@IEEEeqnarray[\relax]}}
-\def\@@IEEEeqnarray[#1]#2{%
- % default to showing the equation number or not based on whether or not
- % the star form was involked
- \if@IEEEeqnarraystarform\global\@eqnswfalse
- \else% not the star form
- \global\@eqnswtrue
- \fi% if star form
- \@IEEEissubequationfalse% default to no subequations
- \@IEEElastlinewassubequationfalse% assume last line is not a sub equation
- \@IEEEeqnarrayISinnerfalse% not yet within the lines of the halign
- \@IEEEeqnarraystrutsize{0pt}{0pt}[\relax]% turn off struts by default
- \@IEEEeqnarrayusemasterstruttrue% use master strut till user asks otherwise
- \IEEEvisiblestrutsfalse% diagnostic mode defaults to off
- % no extra space unless the user specifically requests it
- \lineskip=0pt\relax
- \lineskiplimit=0pt\relax
- \baselineskip=\normalbaselineskip\relax%
- \jot=\IEEEnormaljot\relax%
- \mathsurround\z@\relax% no extra spacing around math
- \@advanceIEEEeqncolcnttrue% advance the col counter for each col the user uses,
- % used in \IEEEeqnarraymulticol and in the preamble build
- \stepcounter{equation}% advance equation counter before first line
- \setcounter{IEEEsubequation}{0}% no subequation yet
- \def\@currentlabel{\p@equation\theequation}% redefine the ref label
- \IEEEeqnarraydecl\relax% allow a way for the user to make global overrides
- #1\relax% allow user to override defaults
- \let\\\@IEEEeqnarraycr% replace newline with one that can put in eqn. numbers
- \global\@IEEEeqncolcnt\z@% col. count = 0 for first line
- \@IEEEbuildpreamble #2\end\relax% build the preamble and put it into \@IEEEtrantmptoksA
- % put in the column for the equation number
- \ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi% col separator for those after the first
- \toks0={##}%
- % advance the \@IEEEeqncolcnt for the isolation col, this helps with error checking
- \@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}%
- % add the isolation column
- \@IEEEappendtoksA{\tabskip\z@skip\bgroup\the\toks0\egroup}%
- % advance the \@IEEEeqncolcnt for the equation number col, this helps with error checking
- \@IEEEappendtoksA{&\global\advance\@IEEEeqncolcnt by 1\relax}%
- % add the equation number col to the preamble
- \@IEEEappendtoksA{\tabskip\z@skip\hb@xt@\z@\bgroup\hss\the\toks0\egroup}%
- % note \@IEEEeqnnumcols does not count the equation col or isolation col
- % set the starting tabskip glue as determined by the preamble build
- \tabskip=\@IEEEBPstartglue\relax
- % begin the display alignment
- \@IEEEeqnarrayISinnertrue% commands are now within the lines
- $$\everycr{}\halign to\displaywidth\bgroup
- % "exspand" the preamble
- \span\the\@IEEEtrantmptoksA\cr}
-
-% enter isolation/strut column (or the next column if the user did not use
-% every column), record the strut status, complete the columns, do the strut if needed,
-% restore counters to correct values and exit
-\def\end@IEEEeqnarray{\@IEEEeqnarrayglobalizestrutstatus&\@@IEEEeqnarraycr\egroup%
-\if@IEEElastlinewassubequation\global\advance\c@IEEEsubequation\m@ne\fi%
-\global\advance\c@equation\m@ne%
-$$\@ignoretrue}
-
-% need a way to remember if last line is a subequation
-\newif\if@IEEElastlinewassubequation%
-\@IEEElastlinewassubequationfalse
-
-% IEEEeqnarray uses a modifed \\ instead of the plain \cr to
-% end rows. This allows for things like \\*[vskip amount]
-% This "cr" macros are modified versions those for LaTeX2e's eqnarray
-% the {\ifnum0=`} braces must be kept away from the last column to avoid
-% altering spacing of its math, so we use & to advance to the next column
-% as there is an isolation/strut column after the user's columns
-\def\@IEEEeqnarraycr{\@IEEEeqnarrayglobalizestrutstatus&% save strut status and advance to next column
- {\ifnum0=`}\fi
- \@ifstar{%
- \global\@eqpen\@M\@IEEEeqnarrayYCR
- }{%
- \global\@eqpen\interdisplaylinepenalty \@IEEEeqnarrayYCR
- }%
-}
-
-\def\@IEEEeqnarrayYCR{\@testopt\@IEEEeqnarrayXCR\z@skip}
-
-\def\@IEEEeqnarrayXCR[#1]{%
- \ifnum0=`{\fi}%
- \@@IEEEeqnarraycr
- \noalign{\penalty\@eqpen\vskip\jot\vskip #1\relax}}%
-
-\def\@@IEEEeqnarraycr{\@IEEEtrantmptoksA={}% clear token register
- \advance\@IEEEeqncolcnt by -1\relax% adjust col count because of the isolation column
- \ifnum\@IEEEeqncolcnt>\@IEEEeqnnumcols\relax
- \@IEEEclspkgerror{Too many columns within the IEEEeqnarray\MessageBreak
- environment}%
- {Use fewer \string &'s or put more columns in the IEEEeqnarry column\MessageBreak
- specifications.}\relax%
- \else
- \loop% add cols if the user did not use them all
- \ifnum\@IEEEeqncolcnt<\@IEEEeqnnumcols\relax
- \@IEEEappendtoksA{&}%
- \advance\@IEEEeqncolcnt by 1\relax% update the col count
- \repeat
- % this number of &'s will take us the the isolation column
- \fi
- % execute the &'s
- \the\@IEEEtrantmptoksA%
- % handle the strut/isolation column
- \@IEEEeqnarrayinsertstrut% do the strut if needed
- \@IEEEeqnarraystrutreset% reset the strut system for next line or IEEEeqnarray
- &% and enter the equation number column
- % is this line needs an equation number, display it and advance the
- % (sub)equation counters, record what type this line was
- \if@eqnsw%
- \if@IEEEissubequation\theIEEEsubequationdis\addtocounter{equation}{1}\stepcounter{IEEEsubequation}%
- \global\@IEEElastlinewassubequationtrue%
- \else% display a standard equation number, initialize the IEEEsubequation counter
- \theequationdis\stepcounter{equation}\setcounter{IEEEsubequation}{0}%
- \global\@IEEElastlinewassubequationfalse\fi%
- \fi%
- % reset the eqnsw flag to indicate default preference of the display of equation numbers
- \if@IEEEeqnarraystarform\global\@eqnswfalse\else\global\@eqnswtrue\fi
- \global\@IEEEissubequationfalse% reset the subequation flag
- % reset the number of columns the user actually used
- \global\@IEEEeqncolcnt\z@\relax
- % the real end of the line
- \cr}
-
-
-
-
-
-% \IEEEeqnarraybox is like \IEEEeqnarray except the box form puts everything
-% inside a vtop, vbox, or vcenter box depending on the letter in the second
-% optional argument (t,b,c). Vbox is the default. Unlike \IEEEeqnarray,
-% equation numbers are not displayed and \IEEEeqnarraybox can be nested.
-% \IEEEeqnarrayboxm is for math mode (like \array) and does not put the vbox
-% within an hbox.
-% \IEEEeqnarrayboxt is for text mode (like \tabular) and puts the vbox within
-% a \hbox{$ $} construct.
-% \IEEEeqnarraybox will auto detect whether to use \IEEEeqnarrayboxm or
-% \IEEEeqnarrayboxt depending on the math mode.
-% The third optional argument specifies the width this box is to be set to -
-% natural width is the default.
-% The * forms do not add \jot line spacing
-% usage: \IEEEeqnarraybox[decl][pos][width]{cols}
-\def\IEEEeqnarrayboxm{\@IEEEeqnarraystarformfalse\@IEEEeqnarrayboxHBOXSWfalse\@IEEEeqnarraybox}
-\def\endIEEEeqnarrayboxm{\end@IEEEeqnarraybox}
-\@namedef{IEEEeqnarrayboxm*}{\@IEEEeqnarraystarformtrue\@IEEEeqnarrayboxHBOXSWfalse\@IEEEeqnarraybox}
-\@namedef{endIEEEeqnarrayboxm*}{\end@IEEEeqnarraybox}
-
-\def\IEEEeqnarrayboxt{\@IEEEeqnarraystarformfalse\@IEEEeqnarrayboxHBOXSWtrue\@IEEEeqnarraybox}
-\def\endIEEEeqnarrayboxt{\end@IEEEeqnarraybox}
-\@namedef{IEEEeqnarrayboxt*}{\@IEEEeqnarraystarformtrue\@IEEEeqnarrayboxHBOXSWtrue\@IEEEeqnarraybox}
-\@namedef{endIEEEeqnarrayboxt*}{\end@IEEEeqnarraybox}
-
-\def\IEEEeqnarraybox{\@IEEEeqnarraystarformfalse\ifmmode\@IEEEeqnarrayboxHBOXSWfalse\else\@IEEEeqnarrayboxHBOXSWtrue\fi%
-\@IEEEeqnarraybox}
-\def\endIEEEeqnarraybox{\end@IEEEeqnarraybox}
-
-\@namedef{IEEEeqnarraybox*}{\@IEEEeqnarraystarformtrue\ifmmode\@IEEEeqnarrayboxHBOXSWfalse\else\@IEEEeqnarrayboxHBOXSWtrue\fi%
-\@IEEEeqnarraybox}
-\@namedef{endIEEEeqnarraybox*}{\end@IEEEeqnarraybox}
-
-% flag to indicate if the \IEEEeqnarraybox needs to put things into an hbox{$ $}
-% for \vcenter in non-math mode
-\newif\if@IEEEeqnarrayboxHBOXSW%
-\@IEEEeqnarrayboxHBOXSWfalse
-
-\def\@IEEEeqnarraybox{\relax\@ifnextchar[{\@@IEEEeqnarraybox}{\@@IEEEeqnarraybox[\relax]}}
-\def\@@IEEEeqnarraybox[#1]{\relax\@ifnextchar[{\@@@IEEEeqnarraybox[#1]}{\@@@IEEEeqnarraybox[#1][b]}}
-\def\@@@IEEEeqnarraybox[#1][#2]{\relax\@ifnextchar[{\@@@@IEEEeqnarraybox[#1][#2]}{\@@@@IEEEeqnarraybox[#1][#2][\relax]}}
-
-% #1 = decl; #2 = t,b,c; #3 = width, #4 = col specs
-\def\@@@@IEEEeqnarraybox[#1][#2][#3]#4{\@IEEEeqnarrayISinnerfalse % not yet within the lines of the halign
- \@IEEEeqnarraymasterstrutsave% save current master strut values
- \@IEEEeqnarraystrutsize{0pt}{0pt}[\relax]% turn off struts by default
- \@IEEEeqnarrayusemasterstruttrue% use master strut till user asks otherwise
- \IEEEvisiblestrutsfalse% diagnostic mode defaults to off
- % no extra space unless the user specifically requests it
- \lineskip=0pt\relax%
- \lineskiplimit=0pt\relax%
- \baselineskip=\normalbaselineskip\relax%
- \jot=\IEEEnormaljot\relax%
- \mathsurround\z@\relax% no extra spacing around math
- % the default end glues are zero for an \IEEEeqnarraybox
- \edef\@IEEEeqnarraycolSEPdefaultstart{\@IEEEeqnarraycolSEPzero}% default start glue
- \edef\@IEEEeqnarraycolSEPdefaultend{\@IEEEeqnarraycolSEPzero}% default end glue
- \edef\@IEEEeqnarraycolSEPdefaultmid{\@IEEEeqnarraycolSEPzero}% default inter-column glue
- \@advanceIEEEeqncolcntfalse% do not advance the col counter for each col the user uses,
- % used in \IEEEeqnarraymulticol and in the preamble build
- \IEEEeqnarrayboxdecl\relax% allow a way for the user to make global overrides
- #1\relax% allow user to override defaults
- \let\\\@IEEEeqnarrayboxcr% replace newline with one that allows optional spacing
- \@IEEEbuildpreamble #4\end\relax% build the preamble and put it into \@IEEEtrantmptoksA
- % add an isolation column to the preamble to stop \\'s {} from getting into the last col
- \ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi% col separator for those after the first
- \toks0={##}%
- % add the isolation column to the preamble
- \@IEEEappendtoksA{\tabskip\z@skip\bgroup\the\toks0\egroup}%
- % set the starting tabskip glue as determined by the preamble build
- \tabskip=\@IEEEBPstartglue\relax
- % begin the alignment
- \everycr{}%
- % use only the very first token to determine the positioning
- % this stops some problems when the user uses more than one letter,
- % but is probably not worth the effort
- % \noindent is used as a delimiter
- \def\@IEEEgrabfirstoken##1##2\noindent{\let\@IEEEgrabbedfirstoken=##1}%
- \@IEEEgrabfirstoken#2\relax\relax\noindent
- % \@IEEEgrabbedfirstoken has the first token, the rest are discarded
- % if we need to put things into and hbox and go into math mode, do so now
- \if@IEEEeqnarrayboxHBOXSW \leavevmode \hbox \bgroup $\fi%
- % use the appropriate vbox type
- \if\@IEEEgrabbedfirstoken t\relax\vtop\else\if\@IEEEgrabbedfirstoken c\relax%
- \vcenter\else\vbox\fi\fi\bgroup%
- \@IEEEeqnarrayISinnertrue% commands are now within the lines
- \ifx#3\relax\halign\else\halign to #3\relax\fi%
- \bgroup
- % "exspand" the preamble
- \span\the\@IEEEtrantmptoksA\cr}
-
-% carry strut status and enter the isolation/strut column,
-% exit from math mode if needed, and exit
-\def\end@IEEEeqnarraybox{\@IEEEeqnarrayglobalizestrutstatus% carry strut status
-&% enter isolation/strut column
-\@IEEEeqnarrayinsertstrut% do strut if needed
-\@IEEEeqnarraymasterstrutrestore% restore the previous master strut values
-% reset the strut system for next IEEEeqnarray
-% (sets local strut values back to previous master strut values)
-\@IEEEeqnarraystrutreset%
-% ensure last line, exit from halign, close vbox
-\crcr\egroup\egroup%
-% exit from math mode and close hbox if needed
-\if@IEEEeqnarrayboxHBOXSW $\egroup\fi}
-
-
-
-% IEEEeqnarraybox uses a modifed \\ instead of the plain \cr to
-% end rows. This allows for things like \\[vskip amount]
-% This "cr" macros are modified versions those for LaTeX2e's eqnarray
-% For IEEEeqnarraybox, \\* is the same as \\
-% the {\ifnum0=`} braces must be kept away from the last column to avoid
-% altering spacing of its math, so we use & to advance to the isolation/strut column
-% carry strut status into isolation/strut column
-\def\@IEEEeqnarrayboxcr{\@IEEEeqnarrayglobalizestrutstatus% carry strut status
-&% enter isolation/strut column
-\@IEEEeqnarrayinsertstrut% do strut if needed
-% reset the strut system for next line or IEEEeqnarray
-\@IEEEeqnarraystrutreset%
-{\ifnum0=`}\fi%
-\@ifstar{\@IEEEeqnarrayboxYCR}{\@IEEEeqnarrayboxYCR}}
-
-% test and setup the optional argument to \\[]
-\def\@IEEEeqnarrayboxYCR{\@testopt\@IEEEeqnarrayboxXCR\z@skip}
-
-% IEEEeqnarraybox does not automatically increase line spacing by \jot
-\def\@IEEEeqnarrayboxXCR[#1]{\ifnum0=`{\fi}%
-\cr\noalign{\if@IEEEeqnarraystarform\else\vskip\jot\fi\vskip#1\relax}}
-
-
-
-% starts the halign preamble build
-\def\@IEEEbuildpreamble{\@IEEEtrantmptoksA={}% clear token register
-\let\@IEEEBPcurtype=u%current column type is not yet known
-\let\@IEEEBPprevtype=s%the previous column type was the start
-\let\@IEEEBPnexttype=u%next column type is not yet known
-% ensure these are valid
-\def\@IEEEBPcurglue={0pt plus 0pt minus 0pt}%
-\def\@IEEEBPcurcolname{@IEEEdefault}% name of current column definition
-% currently acquired numerically referenced glue
-% use a name that is easier to remember
-\let\@IEEEBPcurnum=\@IEEEtrantmpcountA%
-\@IEEEBPcurnum=0%
-% tracks number of columns in the preamble
-\@IEEEeqnnumcols=0%
-% record the default end glues
-\edef\@IEEEBPstartglue{\@IEEEeqnarraycolSEPdefaultstart}%
-\edef\@IEEEBPendglue{\@IEEEeqnarraycolSEPdefaultend}%
-% now parse the user's column specifications
-\@@IEEEbuildpreamble}
-
-
-% parses and builds the halign preamble
-\def\@@IEEEbuildpreamble#1#2{\let\@@nextIEEEbuildpreamble=\@@IEEEbuildpreamble%
-% use only the very first token to check the end
-% \noindent is used as a delimiter as \end can be present here
-\def\@IEEEgrabfirstoken##1##2\noindent{\let\@IEEEgrabbedfirstoken=##1}%
-\@IEEEgrabfirstoken#1\relax\relax\noindent
-\ifx\@IEEEgrabbedfirstoken\end\let\@@nextIEEEbuildpreamble=\@@IEEEfinishpreamble\else%
-% identify current and next token type
-\@IEEEgetcoltype{#1}{\@IEEEBPcurtype}{1}% current, error on invalid
-\@IEEEgetcoltype{#2}{\@IEEEBPnexttype}{0}% next, no error on invalid next
-% if curtype is a glue, get the glue def
-\if\@IEEEBPcurtype g\@IEEEgetcurglue{#1}{\@IEEEBPcurglue}\fi%
-% if curtype is a column, get the column def and set the current column name
-\if\@IEEEBPcurtype c\@IEEEgetcurcol{#1}\fi%
-% if curtype is a numeral, acquire the user defined glue
-\if\@IEEEBPcurtype n\@IEEEprocessNcol{#1}\fi%
-% process the acquired glue
-\if\@IEEEBPcurtype g\@IEEEprocessGcol\fi%
-% process the acquired col
-\if\@IEEEBPcurtype c\@IEEEprocessCcol\fi%
-% ready prevtype for next col spec.
-\let\@IEEEBPprevtype=\@IEEEBPcurtype%
-% be sure and put back the future token(s) as a group
-\fi\@@nextIEEEbuildpreamble{#2}}
-
-
-% executed just after preamble build is completed
-% warn about zero cols, and if prevtype type = u, put in end tabskip glue
-\def\@@IEEEfinishpreamble#1{\ifnum\@IEEEeqnnumcols<1\relax
-\@IEEEclspkgerror{No column specifiers declared for IEEEeqnarray}%
-{At least one column type must be declared for each IEEEeqnarray.}%
-\fi%num cols less than 1
-%if last type undefined, set default end tabskip glue
-\if\@IEEEBPprevtype u\@IEEEappendtoksA{\tabskip=\@IEEEBPendglue}\fi}
-
-
-% Identify and return the column specifier's type code
-\def\@IEEEgetcoltype#1#2#3{%
-% use only the very first token to determine the type
-% \noindent is used as a delimiter as \end can be present here
-\def\@IEEEgrabfirstoken##1##2\noindent{\let\@IEEEgrabbedfirstoken=##1}%
-\@IEEEgrabfirstoken#1\relax\relax\noindent
-% \@IEEEgrabfirstoken has the first token, the rest are discarded
-% n = number
-% g = glue (any other char in catagory 12)
-% c = letter
-% e = \end
-% u = undefined
-% third argument: 0 = no error message, 1 = error on invalid char
-\let#2=u\relax% assume invalid until know otherwise
-\ifx\@IEEEgrabbedfirstoken\end\let#2=e\else
-\ifcat\@IEEEgrabbedfirstoken\relax\else% screen out control sequences
-\if0\@IEEEgrabbedfirstoken\let#2=n\else
-\if1\@IEEEgrabbedfirstoken\let#2=n\else
-\if2\@IEEEgrabbedfirstoken\let#2=n\else
-\if3\@IEEEgrabbedfirstoken\let#2=n\else
-\if4\@IEEEgrabbedfirstoken\let#2=n\else
-\if5\@IEEEgrabbedfirstoken\let#2=n\else
-\if6\@IEEEgrabbedfirstoken\let#2=n\else
-\if7\@IEEEgrabbedfirstoken\let#2=n\else
-\if8\@IEEEgrabbedfirstoken\let#2=n\else
-\if9\@IEEEgrabbedfirstoken\let#2=n\else
-\ifcat,\@IEEEgrabbedfirstoken\let#2=g\relax
-\else\ifcat a\@IEEEgrabbedfirstoken\let#2=c\relax\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
-\if#2u\relax
-\if0\noexpand#3\relax\else\@IEEEclspkgerror{Invalid character in column specifications}%
-{Only letters, numerals and certain other symbols are allowed \MessageBreak
-as IEEEeqnarray column specifiers.}\fi\fi}
-
-
-% identify the current letter referenced column
-% if invalid, use a default column
-\def\@IEEEgetcurcol#1{\expandafter\ifx\csname @IEEEeqnarraycolDEF#1\endcsname\@IEEEeqnarraycolisdefined%
-\def\@IEEEBPcurcolname{#1}\else% invalid column name
-\@IEEEclspkgerror{Invalid column type "#1" in column specifications.\MessageBreak
-Using a default centering column instead}%
-{You must define IEEEeqnarray column types before use.}%
-\def\@IEEEBPcurcolname{@IEEEdefault}\fi}
-
-
-% identify and return the predefined (punctuation) glue value
-\def\@IEEEgetcurglue#1#2{%
-% ! = \! (neg small) -0.16667em (-3/18 em)
-% , = \, (small) 0.16667em ( 3/18 em)
-% : = \: (med) 0.22222em ( 4/18 em)
-% ; = \; (large) 0.27778em ( 5/18 em)
-% ' = \quad 1em
-% " = \qquad 2em
-% . = 0.5\arraycolsep
-% / = \arraycolsep
-% ? = 2\arraycolsep
-% * = 1fil
-% + = \@IEEEeqnarraycolSEPcenter
-% - = \@IEEEeqnarraycolSEPzero
-% Note that all em values are referenced to the math font (textfont2) fontdimen6
-% value for 1em.
-%
-% use only the very first token to determine the type
-% this prevents errant tokens from getting in the main text
-% \noindent is used as a delimiter here
-\def\@IEEEgrabfirstoken##1##2\noindent{\let\@IEEEgrabbedfirstoken=##1}%
-\@IEEEgrabfirstoken#1\relax\relax\noindent
-% get the math font 1em value
-% LaTeX2e's NFSS2 does not preload the fonts, but \IEEEeqnarray needs
-% to gain access to the math (\textfont2) font's spacing parameters.
-% So we create a bogus box here that uses the math font to ensure
-% that \textfont2 is loaded and ready. If this is not done,
-% the \textfont2 stuff here may not work.
-% Thanks to Bernd Raichle for his 1997 post on this topic.
-{\setbox0=\hbox{$\displaystyle\relax$}}%
-% fontdimen6 has the width of 1em (a quad).
-\@IEEEtrantmpdimenA=\fontdimen6\textfont2\relax%
-% identify the glue value based on the first token
-% we discard anything after the first
-\if!\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=-0.16667\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
-\if,\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=0.16667\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
-\if:\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=0.22222\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
-\if;\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=0.27778\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
-\if'\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=1\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
-\if"\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=2\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
-\if.\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=0.5\arraycolsep\edef#2{\the\@IEEEtrantmpdimenA}\else
-\if/\@IEEEgrabbedfirstoken\edef#2{\the\arraycolsep}\else
-\if?\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=2\arraycolsep\edef#2{\the\@IEEEtrantmpdimenA}\else
-\if *\@IEEEgrabbedfirstoken\edef#2{0pt plus 1fil minus 0pt}\else
-\if+\@IEEEgrabbedfirstoken\edef#2{\@IEEEeqnarraycolSEPcenter}\else
-\if-\@IEEEgrabbedfirstoken\edef#2{\@IEEEeqnarraycolSEPzero}\else
-\edef#2{\@IEEEeqnarraycolSEPzero}%
-\@IEEEclspkgerror{Invalid predefined inter-column glue type "#1" in\MessageBreak
-column specifications. Using a default value of\MessageBreak
-0pt instead}%
-{Only !,:;'"./?*+ and - are valid predefined glue types in the\MessageBreak
-IEEEeqnarray column specifications.}\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}
-
-
-
-% process a numerical digit from the column specification
-% and look up the corresponding user defined glue value
-% can transform current type from n to g or a as the user defined glue is acquired
-\def\@IEEEprocessNcol#1{\if\@IEEEBPprevtype g%
-\@IEEEclspkgerror{Back-to-back inter-column glue specifiers in column\MessageBreak
-specifications. Ignoring consecutive glue specifiers\MessageBreak
-after the first}%
-{You cannot have two or more glue types next to each other\MessageBreak
-in the IEEEeqnarray column specifications.}%
-\let\@IEEEBPcurtype=a% abort this glue, future digits will be discarded
-\@IEEEBPcurnum=0\relax%
-\else% if we previously aborted a glue
-\if\@IEEEBPprevtype a\@IEEEBPcurnum=0\let\@IEEEBPcurtype=a%maintain digit abortion
-\else%acquire this number
-% save the previous type before the numerical digits started
-\if\@IEEEBPprevtype n\else\let\@IEEEBPprevsavedtype=\@IEEEBPprevtype\fi%
-\multiply\@IEEEBPcurnum by 10\relax%
-\advance\@IEEEBPcurnum by #1\relax% add in number, \relax is needed to stop TeX's number scan
-\if\@IEEEBPnexttype n\else%close acquisition
-\expandafter\ifx\csname @IEEEeqnarraycolSEPDEF\expandafter\romannumeral\number\@IEEEBPcurnum\endcsname\@IEEEeqnarraycolisdefined%
-\edef\@IEEEBPcurglue{\csname @IEEEeqnarraycolSEP\expandafter\romannumeral\number\@IEEEBPcurnum\endcsname}%
-\else%user glue not defined
-\@IEEEclspkgerror{Invalid user defined inter-column glue type "\number\@IEEEBPcurnum" in\MessageBreak
-column specifications. Using a default value of\MessageBreak
-0pt instead}%
-{You must define all IEEEeqnarray numerical inter-column glue types via\MessageBreak
-\string\IEEEeqnarraydefcolsep \space before they are used in column specifications.}%
-\edef\@IEEEBPcurglue{\@IEEEeqnarraycolSEPzero}%
-\fi% glue defined or not
-\let\@IEEEBPcurtype=g% change the type to reflect the acquired glue
-\let\@IEEEBPprevtype=\@IEEEBPprevsavedtype% restore the prev type before this number glue
-\@IEEEBPcurnum=0\relax%ready for next acquisition
-\fi%close acquisition, get glue
-\fi%discard or acquire number
-\fi%prevtype glue or not
-}
-
-
-% process an acquired glue
-% add any acquired column/glue pair to the preamble
-\def\@IEEEprocessGcol{\if\@IEEEBPprevtype a\let\@IEEEBPcurtype=a%maintain previous glue abortions
-\else
-% if this is the start glue, save it, but do nothing else
-% as this is not used in the preamble, but before
-\if\@IEEEBPprevtype s\edef\@IEEEBPstartglue{\@IEEEBPcurglue}%
-\else%not the start glue
-\if\@IEEEBPprevtype g%ignore if back to back glues
-\@IEEEclspkgerror{Back-to-back inter-column glue specifiers in column\MessageBreak
-specifications. Ignoring consecutive glue specifiers\MessageBreak
-after the first}%
-{You cannot have two or more glue types next to each other\MessageBreak
-in the IEEEeqnarray column specifications.}%
-\let\@IEEEBPcurtype=a% abort this glue
-\else% not a back to back glue
-\if\@IEEEBPprevtype c\relax% if the previoustype was a col, add column/glue pair to preamble
-\ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi
-\toks0={##}%
-% make preamble advance col counter if this environment needs this
-\if@advanceIEEEeqncolcnt\@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}\fi
-% insert the column defintion into the preamble, being careful not to expand
-% the column definition
-\@IEEEappendtoksA{\tabskip=\@IEEEBPcurglue}%
-\@IEEEappendNOEXPANDtoksA{\begingroup\csname @IEEEeqnarraycolPRE}%
-\@IEEEappendtoksA{\@IEEEBPcurcolname}%
-\@IEEEappendNOEXPANDtoksA{\endcsname}%
-\@IEEEappendtoksA{\the\toks0}%
-\@IEEEappendNOEXPANDtoksA{\relax\relax\relax\relax\relax%
-\relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST}%
-\@IEEEappendtoksA{\@IEEEBPcurcolname}%
-\@IEEEappendNOEXPANDtoksA{\endcsname\relax\relax\relax\relax\relax%
-\relax\relax\relax\relax\relax\endgroup}%
-\advance\@IEEEeqnnumcols by 1\relax%one more column in the preamble
-\else% error: non-start glue with no pending column
-\@IEEEclspkgerror{Inter-column glue specifier without a prior column\MessageBreak
-type in the column specifications. Ignoring this glue\MessageBreak
-specifier}%
-{Except for the first and last positions, glue can be placed only\MessageBreak
-between column types.}%
-\let\@IEEEBPcurtype=a% abort this glue
-\fi% previous was a column
-\fi% back-to-back glues
-\fi% is start column glue
-\fi% prev type not a
-}
-
-
-% process an acquired letter referenced column and, if necessary, add it to the preamble
-\def\@IEEEprocessCcol{\if\@IEEEBPnexttype g\else
-\if\@IEEEBPnexttype n\else
-% we have a column followed by something other than a glue (or numeral glue)
-% so we must add this column to the preamble now
-\ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi%col separator for those after the first
-\if\@IEEEBPnexttype e\@IEEEappendtoksA{\tabskip=\@IEEEBPendglue\relax}\else%put in end glue
-\@IEEEappendtoksA{\tabskip=\@IEEEeqnarraycolSEPdefaultmid\relax}\fi% or default mid glue
-\toks0={##}%
-% make preamble advance col counter if this environment needs this
-\if@advanceIEEEeqncolcnt\@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}\fi
-% insert the column definition into the preamble, being careful not to expand
-% the column definition
-\@IEEEappendNOEXPANDtoksA{\begingroup\csname @IEEEeqnarraycolPRE}%
-\@IEEEappendtoksA{\@IEEEBPcurcolname}%
-\@IEEEappendNOEXPANDtoksA{\endcsname}%
-\@IEEEappendtoksA{\the\toks0}%
-\@IEEEappendNOEXPANDtoksA{\relax\relax\relax\relax\relax%
-\relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST}%
-\@IEEEappendtoksA{\@IEEEBPcurcolname}%
-\@IEEEappendNOEXPANDtoksA{\endcsname\relax\relax\relax\relax\relax%
-\relax\relax\relax\relax\relax\endgroup}%
-\advance\@IEEEeqnnumcols by 1\relax%one more column in the preamble
-\fi%next type not numeral
-\fi%next type not glue
-}
-
-
-%%
-%% END OF IEEEeqnarry DEFINITIONS
-%%
-
-
-
-
-% set up the running headings, this complex because of all the different
-% modes IEEEtran supports
-\if@twoside
- \ifCLASSOPTIONtechnote
- \def\ps@headings{%
- \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}
- \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}
- \ifCLASSOPTIONdraftcls
- \ifCLASSOPTIONdraftclsnofoot
- \def\@oddfoot{}\def\@evenfoot{}%
- \else
- \def\@oddfoot{\scriptsize\@date\hfil DRAFT}
- \def\@evenfoot{\scriptsize DRAFT\hfil\@date}
- \fi
- \else
- \def\@oddfoot{}\def\@evenfoot{}
- \fi}
- \else % not a technote
- \def\ps@headings{%
- \ifCLASSOPTIONconference
- \def\@oddhead{}
- \def\@evenhead{}
- \else
- \def\@oddhead{\hbox{}\scriptsize\rightmark \hfil \thepage}
- \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}
- \fi
- \ifCLASSOPTIONdraftcls
- \def\@oddhead{\hbox{}\scriptsize\rightmark \hfil \thepage}
- \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}
- \ifCLASSOPTIONdraftclsnofoot
- \def\@oddfoot{}\def\@evenfoot{}%
- \else
- \def\@oddfoot{\scriptsize\@date\hfil DRAFT}
- \def\@evenfoot{\scriptsize DRAFT\hfil\@date}
- \fi
- \else
- \def\@oddfoot{}\def\@evenfoot{}%
- \fi}
- \fi
-\else % single side
-\def\ps@headings{%
- \ifCLASSOPTIONconference
- \def\@oddhead{}
- \def\@evenhead{}
- \else
- \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}
- \def\@evenhead{}
- \fi
- \ifCLASSOPTIONdraftcls
- \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}
- \def\@evenhead{}
- \ifCLASSOPTIONdraftclsnofoot
- \def\@oddfoot{}
- \else
- \def\@oddfoot{\scriptsize \@date \hfil DRAFT}
- \fi
- \else
- \def\@oddfoot{}
- \fi
- \def\@evenfoot{}}
-\fi
-
-
-% title page style
-\def\ps@IEEEtitlepagestyle{\def\@oddfoot{}\def\@evenfoot{}%
-\ifCLASSOPTIONconference
- \def\@oddhead{}%
- \def\@evenhead{}%
-\else
- \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}%
- \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}%
-\fi
-\ifCLASSOPTIONdraftcls
- \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}%
- \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}%
- \ifCLASSOPTIONdraftclsnofoot\else
- \def\@oddfoot{\scriptsize \@date\hfil DRAFT}%
- \def\@evenfoot{\scriptsize DRAFT\hfil \@date}%
- \fi
-\else
- % all non-draft mode footers
- \if@IEEEusingpubid
- % for title pages that are using a pubid
- % do not repeat pubid if using peer review option
- \ifCLASSOPTIONpeerreview
- \else
- \footskip 0pt%
- \ifCLASSOPTIONcompsoc
- \def\@oddfoot{\hss\normalfont\scriptsize\raisebox{-1.5\@IEEEnormalsizeunitybaselineskip}[0ex][0ex]{\@IEEEpubid}\hss}%
- \def\@evenfoot{\hss\normalfont\scriptsize\raisebox{-1.5\@IEEEnormalsizeunitybaselineskip}[0ex][0ex]{\@IEEEpubid}\hss}%
- \else
- \def\@oddfoot{\hss\normalfont\footnotesize\raisebox{1.5ex}[1.5ex]{\@IEEEpubid}\hss}%
- \def\@evenfoot{\hss\normalfont\footnotesize\raisebox{1.5ex}[1.5ex]{\@IEEEpubid}\hss}%
- \fi
- \fi
- \fi
-\fi}
-
-
-% peer review cover page style
-\def\ps@IEEEpeerreviewcoverpagestyle{%
-\def\@oddhead{}\def\@evenhead{}%
-\def\@oddfoot{}\def\@evenfoot{}%
-\ifCLASSOPTIONdraftcls
- \ifCLASSOPTIONdraftclsnofoot\else
- \def\@oddfoot{\scriptsize \@date\hfil DRAFT}%
- \def\@evenfoot{\scriptsize DRAFT\hfil \@date}%
- \fi
-\else
- % non-draft mode footers
- \if@IEEEusingpubid
- \footskip 0pt%
- \ifCLASSOPTIONcompsoc
- \def\@oddfoot{\hss\normalfont\scriptsize\raisebox{-1.5\@IEEEnormalsizeunitybaselineskip}[0ex][0ex]{\@IEEEpubid}\hss}%
- \def\@evenfoot{\hss\normalfont\scriptsize\raisebox{-1.5\@IEEEnormalsizeunitybaselineskip}[0ex][0ex]{\@IEEEpubid}\hss}%
- \else
- \def\@oddfoot{\hss\normalfont\footnotesize\raisebox{1.5ex}[1.5ex]{\@IEEEpubid}\hss}%
- \def\@evenfoot{\hss\normalfont\footnotesize\raisebox{1.5ex}[1.5ex]{\@IEEEpubid}\hss}%
- \fi
- \fi
-\fi}
-
-
-% start with empty headings
-\def\rightmark{}\def\leftmark{}
-
-
-%% Defines the command for putting the header. \footernote{TEXT} is the same
-%% as \markboth{TEXT}{TEXT}.
-%% Note that all the text is forced into uppercase, if you have some text
-%% that needs to be in lower case, for instance et. al., then either manually
-%% set \leftmark and \rightmark or use \MakeLowercase{et. al.} within the
-%% arguments to \markboth.
-\def\markboth#1#2{\def\leftmark{\@IEEEcompsoconly{\sffamily}\MakeUppercase{#1}}%
-\def\rightmark{\@IEEEcompsoconly{\sffamily}\MakeUppercase{#2}}}
-\def\footernote#1{\markboth{#1}{#1}}
-
-\def\today{\ifcase\month\or
- January\or February\or March\or April\or May\or June\or
- July\or August\or September\or October\or November\or December\fi
- \space\number\day, \number\year}
-
-
-
-
-%% CITATION AND BIBLIOGRAPHY COMMANDS
-%%
-%% V1.6 no longer supports the older, nonstandard \shortcite and \citename setup stuff
-%
-%
-% Modify Latex2e \@citex to separate citations with "], ["
-\def\@citex[#1]#2{%
- \let\@citea\@empty
- \@cite{\@for\@citeb:=#2\do
- {\@citea\def\@citea{], [}%
- \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
- \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
- \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
- \G@refundefinedtrue
- \@latex@warning
- {Citation `\@citeb' on page \thepage \space undefined}}%
- {\hbox{\csname b@\@citeb\endcsname}}}}{#1}}
-
-% V1.6 we create hooks for the optional use of Donald Arseneau's
-% cite.sty package. cite.sty is "smart" and will notice that the
-% following format controls are already defined and will not
-% redefine them. The result will be the proper sorting of the
-% citation numbers and auto detection of 3 or more entry "ranges" -
-% all in IEEE style: [1], [2], [5]--[7], [12]
-% This also allows for an optional note, i.e., \cite[mynote]{..}.
-% If the \cite with note has more than one reference, the note will
-% be applied to the last of the listed references. It is generally
-% desired that if a note is given, only one reference is listed in
-% that \cite.
-% Thanks to Mr. Arseneau for providing the required format arguments
-% to produce the IEEE style.
-\def\citepunct{], [}
-\def\citedash{]--[}
-
-% V1.7 default to using same font for urls made by url.sty
-\AtBeginDocument{\csname url@samestyle\endcsname}
-
-% V1.6 class files should always provide these
-\def\newblock{\hskip .11em\@plus.33em\@minus.07em}
-\let\@openbib@code\@empty
-
-
-% Provide support for the control entries of IEEEtran.bst V1.00 and later.
-% V1.7 optional argument allows for a different aux file to be specified in
-% order to handle multiple bibliographies. For example, with multibib.sty:
-% \newcites{sec}{Secondary Literature}
-% \bstctlcite[@auxoutsec]{BSTcontrolhak}
-\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
-\def\@bstctlcite[#1]#2{\@bsphack
- \@for\@citeb:=#2\do{%
- \edef\@citeb{\expandafter\@firstofone\@citeb}%
- \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%
- \@esphack}
-
-% V1.6 provide a way for a user to execute a command just before
-% a given reference number - used to insert a \newpage to balance
-% the columns on the last page
-\edef\@IEEEtriggerrefnum{0} % the default of zero means that
- % the command is not executed
-\def\@IEEEtriggercmd{\newpage}
-
-% allow the user to alter the triggered command
-\long\def\IEEEtriggercmd#1{\long\def\@IEEEtriggercmd{#1}}
-
-% allow user a way to specify the reference number just before the
-% command is executed
-\def\IEEEtriggeratref#1{\@IEEEtrantmpcountA=#1%
-\edef\@IEEEtriggerrefnum{\the\@IEEEtrantmpcountA}}%
-
-% trigger command at the given reference
-\def\@IEEEbibitemprefix{\@IEEEtrantmpcountA=\@IEEEtriggerrefnum\relax%
-\advance\@IEEEtrantmpcountA by -1\relax%
-\ifnum\c@enumiv=\@IEEEtrantmpcountA\relax\@IEEEtriggercmd\relax\fi}
-
-
-\def\@biblabel#1{[#1]}
-
-% compsoc journals left align the reference numbers
-\@IEEEcompsocnotconfonly{\def\@biblabel#1{[#1]\hfill}}
-
-% controls bib item spacing
-\def\IEEEbibitemsep{0pt plus .5pt}
-
-\@IEEEcompsocconfonly{\def\IEEEbibitemsep{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}}
-
-
-\def\thebibliography#1{\section*{\refname}%
- \addcontentsline{toc}{section}{\refname}%
- % V1.6 add some rubber space here and provide a command trigger
- \footnotesize\@IEEEcompsocconfonly{\small}\vskip 0.3\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip%
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep\relax
- \itemsep \IEEEbibitemsep\relax
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \let\@IEEElatexbibitem\bibitem%
- \def\bibitem{\@IEEEbibitemprefix\@IEEElatexbibitem}%
-\def\newblock{\hskip .11em plus .33em minus .07em}%
-% originally:
-% \sloppy\clubpenalty4000\widowpenalty4000%
-% by adding the \interlinepenalty here, we make it more
-% difficult, but not impossible, for LaTeX to break within a reference.
-% IEEE almost never breaks a reference (but they do it more often with
-% technotes). You may get an underfull vbox warning around the bibliography,
-% but the final result will be much more like what IEEE will publish.
-% MDS 11/2000
-\ifCLASSOPTIONtechnote\sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty100%
-\else\sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty500\fi%
- \sfcode`\.=1000\relax}
-\let\endthebibliography=\endlist
-
-
-
-
-% TITLE PAGE COMMANDS
-%
-%
-% \IEEEmembership is used to produce the sublargesize italic font used to indicate author
-% IEEE membership. compsoc uses a large size sans slant font
-\def\IEEEmembership#1{{\@IEEEnotcompsoconly{\sublargesize}\normalfont\@IEEEcompsoconly{\sffamily}\textit{#1}}}
-
-
-% \IEEEauthorrefmark{} produces a footnote type symbol to indicate author affiliation.
-% When given an argument of 1 to 9, \IEEEauthorrefmark{} follows the standard LaTeX footnote
-% symbol sequence convention. However, for arguments 10 and above, \IEEEauthorrefmark{}
-% reverts to using lower case roman numerals, so it cannot overflow. Do note that you
-% cannot use \footnotemark[] in place of \IEEEauthorrefmark{} within \author as the footnote
-% symbols will have been turned off to prevent \thanks from creating footnote marks.
-% \IEEEauthorrefmark{} produces a symbol that appears to LaTeX as having zero vertical
-% height - this allows for a more compact line packing, but the user must ensure that
-% the interline spacing is large enough to prevent \IEEEauthorrefmark{} from colliding
-% with the text above.
-% V1.7 make this a robust command
-\DeclareRobustCommand*{\IEEEauthorrefmark}[1]{\raisebox{0pt}[0pt][0pt]{\textsuperscript{\footnotesize\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or%
- \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger%
- \or \ddagger\ddagger \else\textsuperscript{\expandafter\romannumeral#1}\fi}}}}
-
-
-% FONT CONTROLS AND SPACINGS FOR CONFERENCE MODE AUTHOR NAME AND AFFILIATION BLOCKS
-%
-% The default font styles for the author name and affiliation blocks (confmode)
-\def\@IEEEauthorblockNstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\sublargesize\@IEEEcompsocconfonly{\large}}
-\def\@IEEEauthorblockAstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\@IEEEcompsocconfonly{\itshape}\normalsize\@IEEEcompsocconfonly{\large}}
-% The default if the user does not use an author block
-\def\@IEEEauthordefaulttextstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\sublargesize}
-
-% spacing from title (or special paper notice) to author name blocks (confmode)
-% can be negative
-\def\@IEEEauthorblockconfadjspace{-0.25em}
-% compsoc conferences need more space here
-\@IEEEcompsocconfonly{\def\@IEEEauthorblockconfadjspace{0.75\@IEEEnormalsizeunitybaselineskip}}
-
-% spacing between name and affiliation blocks (confmode)
-% This can be negative.
-% IEEE doesn't want any added spacing here, but I will leave these
-% controls in place in case they ever change their mind.
-% Personally, I like 0.75ex.
-%\def\@IEEEauthorblockNtopspace{0.75ex}
-%\def\@IEEEauthorblockAtopspace{0.75ex}
-\def\@IEEEauthorblockNtopspace{0.0ex}
-\def\@IEEEauthorblockAtopspace{0.0ex}
-% baseline spacing within name and affiliation blocks (confmode)
-% must be positive, spacings below certain values will make
-% the position of line of text sensitive to the contents of the
-% line above it i.e., whether or not the prior line has descenders,
-% subscripts, etc. For this reason it is a good idea to keep
-% these above 2.6ex
-\def\@IEEEauthorblockNinterlinespace{2.6ex}
-\def\@IEEEauthorblockAinterlinespace{2.75ex}
-
-% This tracks the required strut size.
-% See the \@IEEEauthorhalign command for the actual default value used.
-\def\@IEEEauthorblockXinterlinespace{2.7ex}
-
-% variables to retain font size and style across groups
-% values given here have no effect as they will be overwritten later
-\gdef\@IEEESAVESTATEfontsize{10}
-\gdef\@IEEESAVESTATEfontbaselineskip{12}
-\gdef\@IEEESAVESTATEfontencoding{OT1}
-\gdef\@IEEESAVESTATEfontfamily{ptm}
-\gdef\@IEEESAVESTATEfontseries{m}
-\gdef\@IEEESAVESTATEfontshape{n}
-
-% saves the current font attributes
-\def\@IEEEcurfontSAVE{\global\let\@IEEESAVESTATEfontsize\f@size%
-\global\let\@IEEESAVESTATEfontbaselineskip\f@baselineskip%
-\global\let\@IEEESAVESTATEfontencoding\f@encoding%
-\global\let\@IEEESAVESTATEfontfamily\f@family%
-\global\let\@IEEESAVESTATEfontseries\f@series%
-\global\let\@IEEESAVESTATEfontshape\f@shape}
-
-% restores the saved font attributes
-\def\@IEEEcurfontRESTORE{\fontsize{\@IEEESAVESTATEfontsize}{\@IEEESAVESTATEfontbaselineskip}%
-\fontencoding{\@IEEESAVESTATEfontencoding}%
-\fontfamily{\@IEEESAVESTATEfontfamily}%
-\fontseries{\@IEEESAVESTATEfontseries}%
-\fontshape{\@IEEESAVESTATEfontshape}%
-\selectfont}
-
-
-% variable to indicate if the current block is the first block in the column
-\newif\if@IEEEprevauthorblockincol \@IEEEprevauthorblockincolfalse
-
-
-% the command places a strut with height and depth = \@IEEEauthorblockXinterlinespace
-% we use this technique to have complete manual control over the spacing of the lines
-% within the halign environment.
-% We set the below baseline portion at 30%, the above
-% baseline portion at 70% of the total length.
-% Responds to changes in the document's \baselinestretch
-\def\@IEEEauthorstrutrule{\@IEEEtrantmpdimenA\@IEEEauthorblockXinterlinespace%
-\@IEEEtrantmpdimenA=\baselinestretch\@IEEEtrantmpdimenA%
-\rule[-0.3\@IEEEtrantmpdimenA]{0pt}{\@IEEEtrantmpdimenA}}
-
-
-% blocks to hold the authors' names and affilations.
-% Makes formatting easy for conferences
-%
-% use real definitions in conference mode
-% name block
-\def\IEEEauthorblockN#1{\relax\@IEEEauthorblockNstyle% set the default text style
-\gdef\@IEEEauthorblockXinterlinespace{0pt}% disable strut for spacer row
-% the \expandafter hides the \cr in conditional tex, see the array.sty docs
-% for details, probably not needed here as the \cr is in a macro
-% do a spacer row if needed
-\if@IEEEprevauthorblockincol\expandafter\@IEEEauthorblockNtopspaceline\fi
-\global\@IEEEprevauthorblockincoltrue% we now have a block in this column
-%restore the correct strut value
-\gdef\@IEEEauthorblockXinterlinespace{\@IEEEauthorblockNinterlinespace}%
-% input the author names
-#1%
-% end the row if the user did not already
-\crcr}
-% spacer row for names
-\def\@IEEEauthorblockNtopspaceline{\cr\noalign{\vskip\@IEEEauthorblockNtopspace}}
-%
-% affiliation block
-\def\IEEEauthorblockA#1{\relax\@IEEEauthorblockAstyle% set the default text style
-\gdef\@IEEEauthorblockXinterlinespace{0pt}%disable strut for spacer row
-% the \expandafter hides the \cr in conditional tex, see the array.sty docs
-% for details, probably not needed here as the \cr is in a macro
-% do a spacer row if needed
-\if@IEEEprevauthorblockincol\expandafter\@IEEEauthorblockAtopspaceline\fi
-\global\@IEEEprevauthorblockincoltrue% we now have a block in this column
-%restore the correct strut value
-\gdef\@IEEEauthorblockXinterlinespace{\@IEEEauthorblockAinterlinespace}%
-% input the author affiliations
-#1%
-% end the row if the user did not already
-\crcr}
-% spacer row for affiliations
-\def\@IEEEauthorblockAtopspaceline{\cr\noalign{\vskip\@IEEEauthorblockAtopspace}}
-
-
-% allow papers to compile even if author blocks are used in modes other
-% than conference or peerreviewca. For such cases, we provide dummy blocks.
-\ifCLASSOPTIONconference
-\else
- \ifCLASSOPTIONpeerreviewca\else
- % not conference or peerreviewca mode
- \def\IEEEauthorblockN#1{#1}%
- \def\IEEEauthorblockA#1{#1}%
- \fi
-\fi
-
-
-
-% we provide our own halign so as not to have to depend on tabular
-\def\@IEEEauthorhalign{\@IEEEauthordefaulttextstyle% default text style
- \lineskip=0pt\relax% disable line spacing
- \lineskiplimit=0pt\relax%
- \baselineskip=0pt\relax%
- \@IEEEcurfontSAVE% save the current font
- \mathsurround\z@\relax% no extra spacing around math
- \let\\\@IEEEauthorhaligncr% replace newline with halign friendly one
- \tabskip=0pt\relax% no column spacing
- \everycr{}% ensure no problems here
- \@IEEEprevauthorblockincolfalse% no author blocks yet
- \def\@IEEEauthorblockXinterlinespace{2.7ex}% default interline space
- \vtop\bgroup%vtop box
- \halign\bgroup&\relax\hfil\@IEEEcurfontRESTORE\relax ##\relax
- \hfil\@IEEEcurfontSAVE\@IEEEauthorstrutrule\cr}
-
-% ensure last line, exit from halign, close vbox
-\def\end@IEEEauthorhalign{\crcr\egroup\egroup}
-
-% handle bogus star form
-\def\@IEEEauthorhaligncr{{\ifnum0=`}\fi\@ifstar{\@@IEEEauthorhaligncr}{\@@IEEEauthorhaligncr}}
-
-% test and setup the optional argument to \\[]
-\def\@@IEEEauthorhaligncr{\@testopt\@@@IEEEauthorhaligncr\z@skip}
-
-% end the line and do the optional spacer
-\def\@@@IEEEauthorhaligncr[#1]{\ifnum0=`{\fi}\cr\noalign{\vskip#1\relax}}
-
-
-
-% flag to prevent multiple \and warning messages
-\newif\if@IEEEWARNand
-\@IEEEWARNandtrue
-
-% if in conference or peerreviewca modes, we support the use of \and as \author is a
-% tabular environment, otherwise we warn the user that \and is invalid
-% outside of conference or peerreviewca modes.
-\def\and{\relax} % provide a bogus \and that we will then override
-
-\renewcommand{\and}[1][\relax]{\if@IEEEWARNand\typeout{** WARNING: \noexpand\and is valid only
- when in conference or peerreviewca}\typeout{modes (line \the\inputlineno).}\fi\global\@IEEEWARNandfalse}
-
-\ifCLASSOPTIONconference%
-\renewcommand{\and}[1][\hfill]{\end{@IEEEauthorhalign}#1\begin{@IEEEauthorhalign}}%
-\fi
-\ifCLASSOPTIONpeerreviewca
-\renewcommand{\and}[1][\hfill]{\end{@IEEEauthorhalign}#1\begin{@IEEEauthorhalign}}%
-\fi
-
-
-% page clearing command
-% based on LaTeX2e's \cleardoublepage, but allows different page styles
-% for the inserted blank pages
-\def\@IEEEcleardoublepage#1{\clearpage\if@twoside\ifodd\c@page\else
-\hbox{}\thispagestyle{#1}\newpage\if@twocolumn\hbox{}\thispagestyle{#1}\newpage\fi\fi\fi}
-
-
-% user command to invoke the title page
-\def\maketitle{\par%
- \begingroup%
- \normalfont%
- \def\thefootnote{}% the \thanks{} mark type is empty
- \def\footnotemark{}% and kill space from \thanks within author
- \let\@makefnmark\relax% V1.7, must *really* kill footnotemark to remove all \textsuperscript spacing as well.
- \footnotesize% equal spacing between thanks lines
- \footnotesep 0.7\baselineskip%see global setting of \footnotesep for more info
- % V1.7 disable \thanks note indention for compsoc
- \@IEEEcompsoconly{\long\def\@makefntext##1{\parindent 1em\noindent\hbox{\@makefnmark}##1}}%
- \normalsize%
- \ifCLASSOPTIONpeerreview
- \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext%
- \thispagestyle{IEEEpeerreviewcoverpagestyle}\@thanks%
- \else
- \if@twocolumn%
- \ifCLASSOPTIONtechnote%
- \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext%
- \else
- \twocolumn[\@maketitle\@IEEEdynamictitlevspace\@IEEEaftertitletext]%
- \fi
- \else
- \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext%
- \fi
- \thispagestyle{IEEEtitlepagestyle}\@thanks%
- \fi
- % pullup page for pubid if used.
- \if@IEEEusingpubid
- \enlargethispage{-\@IEEEpubidpullup}%
- \fi
- \endgroup
- \setcounter{footnote}{0}\let\maketitle\relax\let\@maketitle\relax
- \gdef\@thanks{}%
- % v1.6b do not clear these as we will need the title again for peer review papers
- % \gdef\@author{}\gdef\@title{}%
- \let\thanks\relax}
-
-
-
-% V1.7 parbox to format \@IEEEcompsoctitleabstractindextext
-\long\def\@IEEEcompsoctitleabstractindextextbox#1{\parbox{0.915\textwidth}{#1}}
-
-% formats the Title, authors names, affiliations and special paper notice
-% THIS IS A CONTROLLED SPACING COMMAND! Do not allow blank lines or unintentional
-% spaces to enter the definition - use % at the end of each line
-\def\@maketitle{\newpage
-\begin{center}%
-\ifCLASSOPTIONtechnote% technotes
- {\bfseries\large\@IEEEcompsoconly{\sffamily}\@title\par}\vskip 1.3em{\lineskip .5em\@IEEEcompsoconly{\sffamily}\@author
- \@IEEEspecialpapernotice\par{\@IEEEcompsoconly{\vskip 1.5em\relax
- \@IEEEcompsoctitleabstractindextextbox{\@IEEEcompsoctitleabstractindextext}\par
- \hfill\@IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax
-\else% not a technote
- \vskip0.2em{\Huge\@IEEEcompsoconly{\sffamily}\@IEEEcompsocconfonly{\normalfont\normalsize\vskip 2\@IEEEnormalsizeunitybaselineskip
- \bfseries\Large}\@title\par}\vskip1.0em\par%
- % V1.6 handle \author differently if in conference mode
- \ifCLASSOPTIONconference%
- {\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace%
- \mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par}\relax
- \else% peerreviewca, peerreview or journal
- \ifCLASSOPTIONpeerreviewca
- % peerreviewca handles author names just like conference mode
- {\@IEEEcompsoconly{\sffamily}\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace%
- \mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par
- {\@IEEEcompsoconly{\vskip 1.5em\relax
- \@IEEEcompsoctitleabstractindextextbox{\@IEEEcompsoctitleabstractindextext}\par\hfill
- \@IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax
- \else% journal or peerreview
- {\lineskip.5em\@IEEEcompsoconly{\sffamily}\sublargesize\@author\@IEEEspecialpapernotice\par
- {\@IEEEcompsoconly{\vskip 1.5em\relax
- \@IEEEcompsoctitleabstractindextextbox{\@IEEEcompsoctitleabstractindextext}\par\hfill
- \@IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax
- \fi
- \fi
-\fi\end{center}}
-
-
-
-% V1.7 Computer Society "diamond line" which follows index terms for nonconference papers
-\def\@IEEEcompsocdiamondline{\vrule depth 0pt height 0.5pt width 4cm\hspace{7.5pt}%
-\raisebox{-3.5pt}{\fontfamily{pzd}\fontencoding{U}\fontseries{m}\fontshape{n}\fontsize{11}{12}\selectfont\char70}%
-\hspace{7.5pt}\vrule depth 0pt height 0.5pt width 4cm\relax}
-
-% V1.7 standard LateX2e \thanks, but with \itshape under compsoc. Also make it a \long\def
-% We also need to trigger the one-shot footnote rule
-\def\@IEEEtriggeroneshotfootnoterule{\global\@IEEEenableoneshotfootnoteruletrue}
-
-
-\long\def\thanks#1{\footnotemark
- \protected@xdef\@thanks{\@thanks
- \protect\footnotetext[\the\c@footnote]{\@IEEEcompsoconly{\itshape
- \protect\@IEEEtriggeroneshotfootnoterule\relax}\ignorespaces#1}}}
-\let\@thanks\@empty
-
-% V1.7 allow \author to contain \par's. This is needed to allow \thanks to contain \par.
-\long\def\author#1{\gdef\@author{#1}}
-
-
-% in addition to setting up IEEEitemize, we need to remove a baselineskip space above and
-% below it because \list's \pars introduce blank lines because of the footnote struts.
-\def\@IEEEsetupcompsocitemizelist{\def\labelitemi{$\bullet$}%
-\setlength{\IEEElabelindent}{0pt}\setlength{\parskip}{0pt}%
-\setlength{\partopsep}{0pt}\setlength{\topsep}{0.5\baselineskip}\vspace{-1\baselineskip}\relax}
-
-
-% flag for fake non-compsoc \IEEEcompsocthanksitem - prevents line break on very first item
-\newif\if@IEEEbreakcompsocthanksitem \@IEEEbreakcompsocthanksitemfalse
-
-\ifCLASSOPTIONcompsoc
-% V1.7 compsoc bullet item \thanks
-% also, we need to redefine this to destroy the argument in \@IEEEdynamictitlevspace
-\long\def\IEEEcompsocitemizethanks#1{\relax\@IEEEbreakcompsocthanksitemfalse\footnotemark
- \protected@xdef\@thanks{\@thanks
- \protect\footnotetext[\the\c@footnote]{\itshape\protect\@IEEEtriggeroneshotfootnoterule
- {\let\IEEEiedlistdecl\relax\protect\begin{IEEEitemize}[\protect\@IEEEsetupcompsocitemizelist]\ignorespaces#1\relax
- \protect\end{IEEEitemize}}\protect\vspace{-1\baselineskip}}}}
-\DeclareRobustCommand*{\IEEEcompsocthanksitem}{\item}
-\else
-% non-compsoc, allow for dual compilation via rerouting to normal \thanks
-\long\def\IEEEcompsocitemizethanks#1{\thanks{#1}}
-% redirect to "pseudo-par" \hfil\break\indent after swallowing [] from \IEEEcompsocthanksitem[]
-\DeclareRobustCommand{\IEEEcompsocthanksitem}{\@ifnextchar [{\@IEEEthanksswallowoptionalarg}%
-{\@IEEEthanksswallowoptionalarg[\relax]}}
-% be sure and break only after first item, be sure and ignore spaces after optional argument
-\def\@IEEEthanksswallowoptionalarg[#1]{\relax\if@IEEEbreakcompsocthanksitem\hfil\break
-\indent\fi\@IEEEbreakcompsocthanksitemtrue\ignorespaces}
-\fi
-
-
-% V1.6b define the \IEEEpeerreviewmaketitle as needed
-\ifCLASSOPTIONpeerreview
-\def\IEEEpeerreviewmaketitle{\@IEEEcleardoublepage{empty}%
-\ifCLASSOPTIONtwocolumn
-\twocolumn[\@IEEEpeerreviewmaketitle\@IEEEdynamictitlevspace]
-\else
-\newpage\@IEEEpeerreviewmaketitle\@IEEEstatictitlevskip
-\fi
-\thispagestyle{IEEEtitlepagestyle}}
-\else
-% \IEEEpeerreviewmaketitle does nothing if peer review option has not been selected
-\def\IEEEpeerreviewmaketitle{\relax}
-\fi
-
-% peerreview formats the repeated title like the title in journal papers.
-\def\@IEEEpeerreviewmaketitle{\begin{center}\@IEEEcompsoconly{\sffamily}%
-\normalfont\normalsize\vskip0.2em{\Huge\@title\par}\vskip1.0em\par
-\end{center}}
-
-
-
-% V1.6
-% this is a static rubber spacer between the title/authors and the main text
-% used for single column text, or when the title appears in the first column
-% of two column text (technotes).
-\def\@IEEEstatictitlevskip{{\normalfont\normalsize
-% adjust spacing to next text
-% v1.6b handle peer review papers
-\ifCLASSOPTIONpeerreview
-% for peer review papers, the same value is used for both title pages
-% regardless of the other paper modes
- \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip
-\else
- \ifCLASSOPTIONconference% conference
- \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip%
- \else%
- \ifCLASSOPTIONtechnote% technote
- \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip%
- \else% journal uses more space
- \vskip 2.5\baselineskip plus 0.75\baselineskip minus 0.375\baselineskip%
- \fi
- \fi
-\fi}}
-
-
-% V1.6
-% This is a dynamically determined rigid spacer between the title/authors
-% and the main text. This is used only for single column titles over two
-% column text (most common)
-% This is bit tricky because we have to ensure that the textheight of the
-% main text is an integer multiple of \baselineskip
-% otherwise underfull vbox problems may develop in the second column of the
-% text on the titlepage
-% The possible use of \IEEEpubid must also be taken into account.
-\def\@IEEEdynamictitlevspace{{%
- % we run within a group so that all the macros can be forgotten when we are done
- \long\def\thanks##1{\relax}%don't allow \thanks to run when we evaluate the vbox height
- \long\def\IEEEcompsocitemizethanks##1{\relax}%don't allow \IEEEcompsocitemizethanks to run when we evaluate the vbox height
- \normalfont\normalsize% we declare more descriptive variable names
- \let\@IEEEmaintextheight=\@IEEEtrantmpdimenA%height of the main text columns
- \let\@IEEEINTmaintextheight=\@IEEEtrantmpdimenB%height of the main text columns with integer # lines
- % set the nominal and minimum values for the title spacer
- % the dynamic algorithm will not allow the spacer size to
- % become less than \@IEEEMINtitlevspace - instead it will be
- % lengthened
- % default to journal values
- \def\@IEEENORMtitlevspace{2.5\baselineskip}%
- \def\@IEEEMINtitlevspace{2\baselineskip}%
- % conferences and technotes need tighter spacing
- \ifCLASSOPTIONconference%conference
- \def\@IEEENORMtitlevspace{1\baselineskip}%
- \def\@IEEEMINtitlevspace{0.75\baselineskip}%
- \fi
- \ifCLASSOPTIONtechnote%technote
- \def\@IEEENORMtitlevspace{1\baselineskip}%
- \def\@IEEEMINtitlevspace{0.75\baselineskip}%
- \fi%
- % get the height that the title will take up
- \ifCLASSOPTIONpeerreview
- \settoheight{\@IEEEmaintextheight}{\vbox{\hsize\textwidth \@IEEEpeerreviewmaketitle}}%
- \else
- \settoheight{\@IEEEmaintextheight}{\vbox{\hsize\textwidth \@maketitle}}%
- \fi
- \@IEEEmaintextheight=-\@IEEEmaintextheight% title takes away from maintext, so reverse sign
- % add the height of the page textheight
- \advance\@IEEEmaintextheight by \textheight%
- % correct for title pages using pubid
- \ifCLASSOPTIONpeerreview\else
- % peerreview papers use the pubid on the cover page only.
- % And the cover page uses a static spacer.
- \if@IEEEusingpubid\advance\@IEEEmaintextheight by -\@IEEEpubidpullup\fi
- \fi%
- % subtract off the nominal value of the title bottom spacer
- \advance\@IEEEmaintextheight by -\@IEEENORMtitlevspace%
- % \topskip takes away some too
- \advance\@IEEEmaintextheight by -\topskip%
- % calculate the column height of the main text for lines
- % now we calculate the main text height as if holding
- % an integer number of \normalsize lines after the first
- % and discard any excess fractional remainder
- % we subtracted the first line, because the first line
- % is placed \topskip into the maintext, not \baselineskip like the
- % rest of the lines.
- \@IEEEINTmaintextheight=\@IEEEmaintextheight%
- \divide\@IEEEINTmaintextheight by \baselineskip%
- \multiply\@IEEEINTmaintextheight by \baselineskip%
- % now we calculate how much the title spacer height will
- % have to be reduced from nominal (\@IEEEREDUCEmaintextheight is always
- % a positive value) so that the maintext area will contain an integer
- % number of normal size lines
- % we change variable names here (to avoid confusion) as we no longer
- % need \@IEEEINTmaintextheight and can reuse its dimen register
- \let\@IEEEREDUCEmaintextheight=\@IEEEINTmaintextheight%
- \advance\@IEEEREDUCEmaintextheight by -\@IEEEmaintextheight%
- \advance\@IEEEREDUCEmaintextheight by \baselineskip%
- % this is the calculated height of the spacer
- % we change variable names here (to avoid confusion) as we no longer
- % need \@IEEEmaintextheight and can reuse its dimen register
- \let\@IEEECOMPENSATElen=\@IEEEmaintextheight%
- \@IEEECOMPENSATElen=\@IEEENORMtitlevspace% set the nominal value
- % we go with the reduced length if it is smaller than an increase
- \ifdim\@IEEEREDUCEmaintextheight < 0.5\baselineskip\relax%
- \advance\@IEEECOMPENSATElen by -\@IEEEREDUCEmaintextheight%
- % if the resulting spacer is too small back out and go with an increase instead
- \ifdim\@IEEECOMPENSATElen<\@IEEEMINtitlevspace\relax%
- \advance\@IEEECOMPENSATElen by \baselineskip%
- \fi%
- \else%
- % go with an increase because it is closer to the nominal than a decrease
- \advance\@IEEECOMPENSATElen by -\@IEEEREDUCEmaintextheight%
- \advance\@IEEECOMPENSATElen by \baselineskip%
- \fi%
- % set the calculated rigid spacer
- \vspace{\@IEEECOMPENSATElen}}}
-
-
-
-% V1.6
-% we allow the user access to the last part of the title area
-% useful in emergencies such as when a different spacing is needed
-% This text is NOT compensated for in the dynamic sizer.
-\let\@IEEEaftertitletext=\relax
-\long\def\IEEEaftertitletext#1{\def\@IEEEaftertitletext{#1}}
-
-% V1.7 provide a way for users to enter abstract and keywords
-% into the onecolumn title are. This text is compensated for
-% in the dynamic sizer.
-\let\@IEEEcompsoctitleabstractindextext=\relax
-\long\def\IEEEcompsoctitleabstractindextext#1{\def\@IEEEcompsoctitleabstractindextext{#1}}
-% V1.7 provide a way for users to get the \@IEEEcompsoctitleabstractindextext if
-% not in compsoc journal mode - this way abstract and keywords can be placed
-% in their conventional position if not in compsoc mode.
-\def\IEEEdisplaynotcompsoctitleabstractindextext{%
-\ifCLASSOPTIONcompsoc% display if compsoc conf
-\ifCLASSOPTIONconference\@IEEEcompsoctitleabstractindextext\fi
-\else% or if not compsoc
-\@IEEEcompsoctitleabstractindextext\fi}
-
-
-% command to allow alteration of baselinestretch, but only if the current
-% baselineskip is unity. Used to tweak the compsoc abstract and keywords line spacing.
-\def\@IEEEtweakunitybaselinestretch#1{{\def\baselinestretch{1}\selectfont
-\global\@tempskipa\baselineskip}\ifnum\@tempskipa=\baselineskip%
-\def\baselinestretch{#1}\selectfont\fi\relax}
-
-
-% abstract and keywords are in \small, except
-% for 9pt docs in which they are in \footnotesize
-% Because 9pt docs use an 8pt footnotesize, \small
-% becomes a rather awkward 8.5pt
-\def\@IEEEabskeysecsize{\small}
-\ifx\CLASSOPTIONpt\@IEEEptsizenine
- \def\@IEEEabskeysecsize{\footnotesize}
-\fi
-
-% compsoc journals use \footnotesize, compsoc conferences use normalsize
-\@IEEEcompsoconly{\def\@IEEEabskeysecsize{\footnotesize}}
-\@IEEEcompsocconfonly{\def\@IEEEabskeysecsize{\normalsize}}
-
-
-
-
-% V1.6 have abstract and keywords strip leading spaces, pars and newlines
-% so that spacing is more tightly controlled.
-\def\abstract{\normalfont
- \if@twocolumn
- \@IEEEabskeysecsize\bfseries\textit{\abstractname}---\relax
- \else
- \begin{center}\vspace{-1.78ex}\@IEEEabskeysecsize\textbf{\abstractname}\end{center}\quotation\@IEEEabskeysecsize
- \fi\@IEEEgobbleleadPARNLSP}
-% V1.6 IEEE wants only 1 pica from end of abstract to introduction heading when in
-% conference mode (the heading already has this much above it)
-\def\endabstract{\relax\ifCLASSOPTIONconference\vspace{0ex}\else\vspace{1.34ex}\fi\par\if@twocolumn\else\endquotation\fi
- \normalfont\normalsize}
-
-\def\IEEEkeywords{\normalfont
- \if@twocolumn
- \@IEEEabskeysecsize\bfseries\textit{\IEEEkeywordsname}---\relax
- \else
- \begin{center}\@IEEEabskeysecsize\textbf{\IEEEkeywordsname}\end{center}\quotation\@IEEEabskeysecsize
- \fi\@IEEEgobbleleadPARNLSP}
-\def\endIEEEkeywords{\relax\ifCLASSOPTIONtechnote\vspace{1.34ex}\else\vspace{0.67ex}\fi
- \par\if@twocolumn\else\endquotation\fi%
- \normalfont\normalsize}
-
-% V1.7 compsoc keywords index terms
-\ifCLASSOPTIONcompsoc
- \ifCLASSOPTIONconference% compsoc conference
-\def\abstract{\normalfont
- \begin{center}\@IEEEabskeysecsize\textbf{\large\abstractname}\end{center}\vskip 0.5\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip
- \if@twocolumn\else\quotation\fi\itshape\@IEEEabskeysecsize%
- \par\@IEEEgobbleleadPARNLSP}
-\def\IEEEkeywords{\normalfont\vskip 1.5\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip
- \begin{center}\@IEEEabskeysecsize\textbf{\large\IEEEkeywordsname}\end{center}\vskip 0.5\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip
- \if@twocolumn\else\quotation\fi\itshape\@IEEEabskeysecsize%
- \par\@IEEEgobbleleadPARNLSP}
- \else% compsoc not conference
-\def\abstract{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\sffamily
- \if@twocolumn
- \@IEEEabskeysecsize\noindent\textbf{\abstractname}---\relax
- \else
- \begin{center}\vspace{-1.78ex}\@IEEEabskeysecsize\textbf{\abstractname}\end{center}\quotation\@IEEEabskeysecsize%
- \fi\@IEEEgobbleleadPARNLSP}
-\def\IEEEkeywords{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\sffamily
- \if@twocolumn
- \@IEEEabskeysecsize\vskip 0.5\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip\noindent
- \textbf{\IEEEkeywordsname}---\relax
- \else
- \begin{center}\@IEEEabskeysecsize\textbf{\IEEEkeywordsname}\end{center}\quotation\@IEEEabskeysecsize%
- \fi\@IEEEgobbleleadPARNLSP}
- \fi
-\fi
-
-
-
-% gobbles all leading \, \\ and \par, upon finding first token that
-% is not a \ , \\ or a \par, it ceases and returns that token
-%
-% used to strip leading \, \\ and \par from the input
-% so that such things in the beginning of an environment will not
-% affect the formatting of the text
-\long\def\@IEEEgobbleleadPARNLSP#1{\let\@IEEEswallowthistoken=0%
-\let\@IEEEgobbleleadPARNLSPtoken#1%
-\let\@IEEEgobbleleadPARtoken=\par%
-\let\@IEEEgobbleleadNLtoken=\\%
-\let\@IEEEgobbleleadSPtoken=\ %
-\def\@IEEEgobbleleadSPMACRO{\ }%
-\ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadPARtoken%
-\let\@IEEEswallowthistoken=1%
-\fi%
-\ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadNLtoken%
-\let\@IEEEswallowthistoken=1%
-\fi%
-\ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadSPtoken%
-\let\@IEEEswallowthistoken=1%
-\fi%
-% a control space will come in as a macro
-% when it is the last one on a line
-\ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadSPMACRO%
-\let\@IEEEswallowthistoken=1%
-\fi%
-% if we have to swallow this token, do so and taste the next one
-% else spit it out and stop gobbling
-\ifx\@IEEEswallowthistoken 1\let\@IEEEnextgobbleleadPARNLSP=\@IEEEgobbleleadPARNLSP\else%
-\let\@IEEEnextgobbleleadPARNLSP=#1\fi%
-\@IEEEnextgobbleleadPARNLSP}%
-
-
-
-
-% TITLING OF SECTIONS
-\def\@IEEEsectpunct{:\ \,} % Punctuation after run-in section heading (headings which are
- % part of the paragraphs), need little bit more than a single space
- % spacing from section number to title
-% compsoc conferences use regular period/space punctuation
-\ifCLASSOPTIONcompsoc
-\ifCLASSOPTIONconference
-\def\@IEEEsectpunct{.\ }
-\fi\fi
-
-
-\def\@seccntformat#1{\csname the#1dis\endcsname\hskip 0.5em\relax}
-
-\ifCLASSOPTIONcompsoc
-% compsoc journals need extra spacing
-\ifCLASSOPTIONconference\else
-\def\@seccntformat#1{\csname the#1dis\endcsname\hskip 1em\relax}
-\fi\fi
-
-%v1.7 put {} after #6 to allow for some types of user font control
-%and use \@@par rather than \par
-\def\@sect#1#2#3#4#5#6[#7]#8{%
- \ifnum #2>\c@secnumdepth
- \let\@svsec\@empty
- \else
- \refstepcounter{#1}%
- % load section label and spacer into \@svsec
- \protected@edef\@svsec{\@seccntformat{#1}\relax}%
- \fi%
- \@tempskipa #5\relax
- \ifdim \@tempskipa>\z@% tempskipa determines whether is treated as a high
- \begingroup #6{\relax% or low level heading
- \noindent % subsections are NOT indented
- % print top level headings. \@svsec is label, #8 is heading title
- % IEEE does not block indent the section title text, it flows like normal
- {\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\@@par}}%
- \endgroup
- \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth\relax\else
- \protect\numberline{\csname the#1\endcsname}\fi#7}%
- \else % printout low level headings
- % svsechd seems to swallow the trailing space, protect it with \mbox{}
- % got rid of sectionmark stuff
- \def\@svsechd{#6{\hskip #3\relax\@svsec #8\@IEEEsectpunct\mbox{}}%
- \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth\relax\else
- \protect\numberline{\csname the#1\endcsname}\fi#7}}%
- \fi%skip down
- \@xsect{#5}}
-
-
-% section* handler
-%v1.7 put {} after #4 to allow for some types of user font control
-%and use \@@par rather than \par
-\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
- \ifdim \@tempskipa>\z@
- %\begingroup #4\@hangfrom{\hskip #1}{\interlinepenalty \@M #5\par}\endgroup
- % IEEE does not block indent the section title text, it flows like normal
- \begingroup \noindent #4{\relax{\hskip #1}{\interlinepenalty \@M #5\@@par}}\endgroup
- % svsechd swallows the trailing space, protect it with \mbox{}
- \else \def\@svsechd{#4{\hskip #1\relax #5\@IEEEsectpunct\mbox{}}}\fi
- \@xsect{#3}}
-
-
-%% SECTION heading spacing and font
-%%
-% arguments are: #1 - sectiontype name
-% (for \@sect) #2 - section level
-% #3 - section heading indent
-% #4 - top separation (absolute value used, neg indicates not to indent main text)
-% If negative, make stretch parts negative too!
-% #5 - (absolute value used) positive: bottom separation after heading,
-% negative: amount to indent main text after heading
-% Both #4 and #5 negative means to indent main text and use negative top separation
-% #6 - font control
-% You've got to have \normalfont\normalsize in the font specs below to prevent
-% trouble when you do something like:
-% \section{Note}{\ttfamily TT-TEXT} is known to ...
-% IEEE sometimes REALLY stretches the area before a section
-% heading by up to about 0.5in. However, it may not be a good
-% idea to let LaTeX have quite this much rubber.
-\ifCLASSOPTIONconference%
-% IEEE wants section heading spacing to decrease for conference mode
-\def\section{\@startsection{section}{1}{\z@}{1.5ex plus 1.5ex minus 0.5ex}%
-{0.7ex plus 1ex minus 0ex}{\normalfont\normalsize\centering\scshape}}%
-\def\subsection{\@startsection{subsection}{2}{\z@}{1.5ex plus 1.5ex minus 0.5ex}%
-{0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\itshape}}%
-\else % for journals
-\def\section{\@startsection{section}{1}{\z@}{3.0ex plus 1.5ex minus 1.5ex}% V1.6 3.0ex from 3.5ex
-{0.7ex plus 1ex minus 0ex}{\normalfont\normalsize\centering\scshape}}%
-\def\subsection{\@startsection{subsection}{2}{\z@}{3.5ex plus 1.5ex minus 1.5ex}%
-{0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\itshape}}%
-\fi
-
-% for both journals and conferences
-% decided to put in a little rubber above the section, might help somebody
-\def\subsubsection{\@startsection{subsubsection}{3}{\parindent}{0ex plus 0.1ex minus 0.1ex}%
-{0ex}{\normalfont\normalsize\itshape}}%
-\def\paragraph{\@startsection{paragraph}{4}{2\parindent}{0ex plus 0.1ex minus 0.1ex}%
-{0ex}{\normalfont\normalsize\itshape}}%
-
-
-% compsoc
-\ifCLASSOPTIONcompsoc
-\ifCLASSOPTIONconference
-% compsoc conference
-\def\section{\@startsection{section}{1}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}%
-{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}{\normalfont\large\bfseries}}%
-\def\subsection{\@startsection{subsection}{2}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}%
-{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}{\normalfont\sublargesize\bfseries}}%
-\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}%
-{0ex}{\normalfont\normalsize\bfseries}}%
-\def\paragraph{\@startsection{paragraph}{4}{2\parindent}{0ex plus 0.1ex minus 0.1ex}%
-{0ex}{\normalfont\normalsize}}%
-\else% compsoc journals
-% use negative top separation as compsoc journals do not indent paragraphs after section titles
-\def\section{\@startsection{section}{1}{\z@}{-3ex plus -2ex minus -1.5ex}%
-{0.7ex plus 1ex minus 0ex}{\normalfont\large\sffamily\bfseries\scshape}}%
-% Note that subsection and smaller may not be correct for the Computer Society,
-% I have to look up an example.
-\def\subsection{\@startsection{subsection}{2}{\z@}{-3.5ex plus -1.5ex minus -1.5ex}%
-{0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\sffamily\bfseries}}%
-\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.5ex plus -1ex minus -1ex}%
-{0.5ex plus 0.5ex minus 0ex}{\normalfont\normalsize\sffamily\itshape}}%
-\def\paragraph{\@startsection{paragraph}{4}{2\parindent}{-0ex plus -0.1ex minus -0.1ex}%
-{0ex}{\normalfont\normalsize}}%
-\fi\fi
-
-
-
-
-%% ENVIRONMENTS
-% "box" symbols at end of proofs
-\def\IEEEQEDclosed{\mbox{\rule[0pt]{1.3ex}{1.3ex}}} % for a filled box
-% V1.6 some journals use an open box instead that will just fit around a closed one
-\def\IEEEQEDopen{{\setlength{\fboxsep}{0pt}\setlength{\fboxrule}{0.2pt}\fbox{\rule[0pt]{0pt}{1.3ex}\rule[0pt]{1.3ex}{0pt}}}}
-\ifCLASSOPTIONcompsoc
-\def\IEEEQED{\IEEEQEDopen} % default to open for compsoc
-\else
-\def\IEEEQED{\IEEEQEDclosed} % otherwise default to closed
-\fi
-
-% v1.7 name change to avoid namespace collision with amsthm. Also add support
-% for an optional argument.
-\def\IEEEproof{\@ifnextchar[{\@IEEEproof}{\@IEEEproof[\IEEEproofname]}}
-\def\@IEEEproof[#1]{\par\noindent\hspace{2em}{\itshape #1: }}
-\def\endIEEEproof{\hspace*{\fill}~\IEEEQED\par}
-
-
-%\itemindent is set to \z@ by list, so define new temporary variable
-\newdimen\@IEEEtmpitemindent
-\def\@begintheorem#1#2{\@IEEEtmpitemindent\itemindent\topsep 0pt\rmfamily\trivlist%
- \item[\hskip \labelsep{\indent\itshape #1\ #2:}]\itemindent\@IEEEtmpitemindent}
-\def\@opargbegintheorem#1#2#3{\@IEEEtmpitemindent\itemindent\topsep 0pt\rmfamily \trivlist%
-% V1.6 IEEE is back to using () around theorem names which are also in italics
-% Thanks to Christian Peel for reporting this.
- \item[\hskip\labelsep{\indent\itshape #1\ #2\ (#3):}]\itemindent\@IEEEtmpitemindent}
-% V1.7 remove bogus \unskip that caused equations in theorems to collide with
-% lines below.
-\def\@endtheorem{\endtrivlist}
-
-% V1.6
-% display command for the section the theorem is in - so that \thesection
-% is not used as this will be in Roman numerals when we want arabic.
-% LaTeX2e uses \def\@thmcounter#1{\noexpand\arabic{#1}} for the theorem number
-% (second part) display and \def\@thmcountersep{.} as a separator.
-% V1.7 intercept calls to the section counter and reroute to \@IEEEthmcounterinsection
-% to allow \appendix(ices} to override as needed.
-%
-% special handler for sections, allows appendix(ices) to override
-\gdef\@IEEEthmcounterinsection#1{\arabic{#1}}
-% string macro
-\edef\@IEEEstringsection{section}
-
-% redefine the #1#2[#3] form of newtheorem to use a hook to \@IEEEthmcounterinsection
-% if section in_counter is used
-\def\@xnthm#1#2[#3]{%
- \expandafter\@ifdefinable\csname #1\endcsname
- {\@definecounter{#1}\@newctr{#1}[#3]%
- \edef\@IEEEstringtmp{#3}
- \ifx\@IEEEstringtmp\@IEEEstringsection
- \expandafter\xdef\csname the#1\endcsname{%
- \noexpand\@IEEEthmcounterinsection{#3}\@thmcountersep
- \@thmcounter{#1}}%
- \else
- \expandafter\xdef\csname the#1\endcsname{%
- \expandafter\noexpand\csname the#3\endcsname \@thmcountersep
- \@thmcounter{#1}}%
- \fi
- \global\@namedef{#1}{\@thm{#1}{#2}}%
- \global\@namedef{end#1}{\@endtheorem}}}
-
-
-
-%% SET UP THE DEFAULT PAGESTYLE
-\ps@headings
-\pagenumbering{arabic}
-
-% normally the page counter starts at 1
-\setcounter{page}{1}
-% however, for peerreview the cover sheet is page 0 or page -1
-% (for duplex printing)
-\ifCLASSOPTIONpeerreview
- \if@twoside
- \setcounter{page}{-1}
- \else
- \setcounter{page}{0}
- \fi
-\fi
-
-% standard book class behavior - let bottom line float up and down as
-% needed when single sided
-\ifCLASSOPTIONtwoside\else\raggedbottom\fi
-% if two column - turn on twocolumn, allow word spacings to stretch more and
-% enforce a rigid position for the last lines
-\ifCLASSOPTIONtwocolumn
-% the peer review option delays invoking twocolumn
- \ifCLASSOPTIONpeerreview\else
- \twocolumn
- \fi
-\sloppy
-\flushbottom
-\fi
-
-
-
-
-% \APPENDIX and \APPENDICES definitions
-
-% This is the \@ifmtarg command from the LaTeX ifmtarg package
-% by Peter Wilson (CUA) and Donald Arseneau
-% \@ifmtarg is used to determine if an argument to a command
-% is present or not.
-% For instance:
-% \@ifmtarg{#1}{\typeout{empty}}{\typeout{has something}}
-% \@ifmtarg is used with our redefined \section command if
-% \appendices is invoked.
-% The command \section will behave slightly differently depending
-% on whether the user specifies a title:
-% \section{My appendix title}
-% or not:
-% \section{}
-% This way, we can eliminate the blank lines where the title
-% would be, and the unneeded : after Appendix in the table of
-% contents
-\begingroup
-\catcode`\Q=3
-\long\gdef\@ifmtarg#1{\@xifmtarg#1QQ\@secondoftwo\@firstoftwo\@nil}
-\long\gdef\@xifmtarg#1#2Q#3#4#5\@nil{#4}
-\endgroup
-% end of \@ifmtarg defs
-
-
-% V1.7
-% command that allows the one time saving of the original definition
-% of section to \@IEEEappendixsavesection for \appendix or \appendices
-% we don't save \section here as it may be redefined later by other
-% packages (hyperref.sty, etc.)
-\def\@IEEEsaveoriginalsectiononce{\let\@IEEEappendixsavesection\section
-\let\@IEEEsaveoriginalsectiononce\relax}
-
-% neat trick to grab and process the argument from \section{argument}
-% we process differently if the user invoked \section{} with no
-% argument (title)
-% note we reroute the call to the old \section*
-\def\@IEEEprocessthesectionargument#1{%
-\@ifmtarg{#1}{%
-\@IEEEappendixsavesection*{\appendixname~\thesectiondis}%
-\addcontentsline{toc}{section}{\appendixname~\thesection}}{%
-\@IEEEappendixsavesection*{\appendixname~\thesectiondis \\* #1}%
-\addcontentsline{toc}{section}{\appendixname~\thesection: #1}}}
-
-% we use this if the user calls \section{} after
-% \appendix-- which has no meaning. So, we ignore the
-% command and its argument. Then, warn the user.
-\def\@IEEEdestroythesectionargument#1{\typeout{** WARNING: Ignoring useless
-\protect\section\space in Appendix (line \the\inputlineno).}}
-
-
-% remember \thesection forms will be displayed in \ref calls
-% and in the Table of Contents.
-% The \sectiondis form is used in the actual heading itself
-
-% appendix command for one single appendix
-% normally has no heading. However, if you want a
-% heading, you can do so via the optional argument:
-% \appendix[Optional Heading]
-\def\appendix{\relax}
-\renewcommand{\appendix}[1][]{\@IEEEsaveoriginalsectiononce\par
- % v1.6 keep hyperref's identifiers unique
- \gdef\theHsection{Appendix.A}%
- % v1.6 adjust hyperref's string name for the section
- \xdef\Hy@chapapp{appendix}%
- \setcounter{section}{0}%
- \setcounter{subsection}{0}%
- \setcounter{subsubsection}{0}%
- \setcounter{paragraph}{0}%
- \gdef\thesection{A}%
- \gdef\thesectiondis{}%
- \gdef\thesubsection{\Alph{subsection}}%
- \gdef\@IEEEthmcounterinsection##1{A}
- \refstepcounter{section}% update the \ref counter
- \@ifmtarg{#1}{\@IEEEappendixsavesection*{\appendixname}%
- \addcontentsline{toc}{section}{\appendixname}}{%
- \@IEEEappendixsavesection*{\appendixname~\\* #1}%
- \addcontentsline{toc}{section}{\appendixname: #1}}%
- % redefine \section command for appendix
- % leave \section* as is
- \def\section{\@ifstar{\@IEEEappendixsavesection*}{%
- \@IEEEdestroythesectionargument}}% throw out the argument
- % of the normal form
-}
-
-
-
-% appendices command for multiple appendices
-% user then calls \section with an argument (possibly empty) to
-% declare the individual appendices
-\def\appendices{\@IEEEsaveoriginalsectiononce\par
- % v1.6 keep hyperref's identifiers unique
- \gdef\theHsection{Appendix.\Alph{section}}%
- % v1.6 adjust hyperref's string name for the section
- \xdef\Hy@chapapp{appendix}%
- \setcounter{section}{-1}% we want \refstepcounter to use section 0
- \setcounter{subsection}{0}%
- \setcounter{subsubsection}{0}%
- \setcounter{paragraph}{0}%
- \ifCLASSOPTIONromanappendices%
- \gdef\thesection{\Roman{section}}%
- \gdef\thesectiondis{\Roman{section}}%
- \@IEEEcompsocconfonly{\gdef\thesectiondis{\Roman{section}.}}%
- \gdef\@IEEEthmcounterinsection##1{A\arabic{##1}}
- \else%
- \gdef\thesection{\Alph{section}}%
- \gdef\thesectiondis{\Alph{section}}%
- \@IEEEcompsocconfonly{\gdef\thesectiondis{\Alph{section}.}}%
- \gdef\@IEEEthmcounterinsection##1{\Alph{##1}}
- \fi%
- \refstepcounter{section}% update the \ref counter
- \setcounter{section}{0}% NEXT \section will be the FIRST appendix
- % redefine \section command for appendices
- % leave \section* as is
- \def\section{\@ifstar{\@IEEEappendixsavesection*}{% process the *-form
- \refstepcounter{section}% or is a new section so,
- \@IEEEprocessthesectionargument}}% process the argument
- % of the normal form
-}
-
-
-
-% \IEEEPARstart
-% Definition for the big two line drop cap letter at the beginning of the
-% first paragraph of journal papers. The first argument is the first letter
-% of the first word, the second argument is the remaining letters of the
-% first word which will be rendered in upper case.
-% In V1.6 this has been completely rewritten to:
-%
-% 1. no longer have problems when the user begins an environment
-% within the paragraph that uses \IEEEPARstart.
-% 2. auto-detect and use the current font family
-% 3. revise handling of the space at the end of the first word so that
-% interword glue will now work as normal.
-% 4. produce correctly aligned edges for the (two) indented lines.
-%
-% We generalize things via control macros - playing with these is fun too.
-%
-% V1.7 added more control macros to make it easy for IEEEtrantools.sty users
-% to change the font style.
-%
-% the number of lines that are indented to clear it
-% may need to increase if using decenders
-\def\@IEEEPARstartDROPLINES{2}
-% minimum number of lines left on a page to allow a \@IEEEPARstart
-% Does not take into consideration rubber shrink, so it tends to
-% be overly cautious
-\def\@IEEEPARstartMINPAGELINES{2}
-% V1.7 the height of the drop cap is adjusted to match the height of this text
-% in the current font (when \IEEEPARstart is called).
-\def\@IEEEPARstartHEIGHTTEXT{T}
-% the depth the letter is lowered below the baseline
-% the height (and size) of the letter is determined by the sum
-% of this value and the height of the \@IEEEPARstartHEIGHTTEXT in the current
-% font. It is a good idea to set this value in terms of the baselineskip
-% so that it can respond to changes therein.
-\def\@IEEEPARstartDROPDEPTH{1.1\baselineskip}
-% V1.7 the font the drop cap will be rendered in,
-% can take zero or one argument.
-\def\@IEEEPARstartFONTSTYLE{\bfseries}
-% V1.7 any additional, non-font related commands needed to modify
-% the drop cap letter, can take zero or one argument.
-\def\@IEEEPARstartCAPSTYLE{\MakeUppercase}
-% V1.7 the font that will be used to render the rest of the word,
-% can take zero or one argument.
-\def\@IEEEPARstartWORDFONTSTYLE{\relax}
-% V1.7 any additional, non-font related commands needed to modify
-% the rest of the word, can take zero or one argument.
-\def\@IEEEPARstartWORDCAPSTYLE{\MakeUppercase}
-% This is the horizontal separation distance from the drop letter to the main text.
-% Lengths that depend on the font (e.g., ex, em, etc.) will be referenced
-% to the font that is active when \IEEEPARstart is called.
-\def\@IEEEPARstartSEP{0.15em}
-% V1.7 horizontal offset applied to the left of the drop cap.
-\def\@IEEEPARstartHOFFSET{0em}
-% V1.7 Italic correction command applied at the end of the drop cap.
-\def\@IEEEPARstartITLCORRECT{\/}
-
-% V1.7 compoc uses nonbold drop cap and small caps word style
-\ifCLASSOPTIONcompsoc
-\def\@IEEEPARstartFONTSTYLE{\mdseries}
-\def\@IEEEPARstartWORDFONTSTYLE{\scshape}
-\def\@IEEEPARstartWORDCAPSTYLE{\relax}
-\fi
-
-% definition of \IEEEPARstart
-% THIS IS A CONTROLLED SPACING AREA, DO NOT ALLOW SPACES WITHIN THESE LINES
-%
-% The token \@IEEEPARstartfont will be globally defined after the first use
-% of \IEEEPARstart and will be a font command which creates the big letter
-% The first argument is the first letter of the first word and the second
-% argument is the rest of the first word(s).
-\def\IEEEPARstart#1#2{\par{%
-% if this page does not have enough space, break it and lets start
-% on a new one
-\@IEEEtranneedspace{\@IEEEPARstartMINPAGELINES\baselineskip}{\relax}%
-% V1.7 move this up here in case user uses \textbf for \@IEEEPARstartFONTSTYLE
-% which uses command \leavevmode which causes an unwanted \indent to be issued
-\noindent
-% calculate the desired height of the big letter
-% it extends from the top of \@IEEEPARstartHEIGHTTEXT in the current font
-% down to \@IEEEPARstartDROPDEPTH below the current baseline
-\settoheight{\@IEEEtrantmpdimenA}{\@IEEEPARstartHEIGHTTEXT}%
-\addtolength{\@IEEEtrantmpdimenA}{\@IEEEPARstartDROPDEPTH}%
-% extract the name of the current font in bold
-% and place it in \@IEEEPARstartFONTNAME
-\def\@IEEEPARstartGETFIRSTWORD##1 ##2\relax{##1}%
-{\@IEEEPARstartFONTSTYLE{\selectfont\edef\@IEEEPARstartFONTNAMESPACE{\fontname\font\space}%
-\xdef\@IEEEPARstartFONTNAME{\expandafter\@IEEEPARstartGETFIRSTWORD\@IEEEPARstartFONTNAMESPACE\relax}}}%
-% define a font based on this name with a point size equal to the desired
-% height of the drop letter
-\font\@IEEEPARstartsubfont\@IEEEPARstartFONTNAME\space at \@IEEEtrantmpdimenA\relax%
-% save this value as a counter (integer) value (sp points)
-\@IEEEtrantmpcountA=\@IEEEtrantmpdimenA%
-% now get the height of the actual letter produced by this font size
-\settoheight{\@IEEEtrantmpdimenB}{\@IEEEPARstartsubfont\@IEEEPARstartCAPSTYLE{#1}}%
-% If something bogus happens like the first argument is empty or the
-% current font is strange, do not allow a zero height.
-\ifdim\@IEEEtrantmpdimenB=0pt\relax%
-\typeout{** WARNING: IEEEPARstart drop letter has zero height! (line \the\inputlineno)}%
-\typeout{ Forcing the drop letter font size to 10pt.}%
-\@IEEEtrantmpdimenB=10pt%
-\fi%
-% and store it as a counter
-\@IEEEtrantmpcountB=\@IEEEtrantmpdimenB%
-% Since a font size doesn't exactly correspond to the height of the capital
-% letters in that font, the actual height of the letter, \@IEEEtrantmpcountB,
-% will be less than that desired, \@IEEEtrantmpcountA
-% we need to raise the font size, \@IEEEtrantmpdimenA
-% by \@IEEEtrantmpcountA / \@IEEEtrantmpcountB
-% But, TeX doesn't have floating point division, so we have to use integer
-% division. Hence the use of the counters.
-% We need to reduce the denominator so that the loss of the remainder will
-% have minimal affect on the accuracy of the result
-\divide\@IEEEtrantmpcountB by 200%
-\divide\@IEEEtrantmpcountA by \@IEEEtrantmpcountB%
-% Then reequalize things when we use TeX's ability to multiply by
-% floating point values
-\@IEEEtrantmpdimenB=0.005\@IEEEtrantmpdimenA%
-\multiply\@IEEEtrantmpdimenB by \@IEEEtrantmpcountA%
-% \@IEEEPARstartfont is globaly set to the calculated font of the big letter
-% We need to carry this out of the local calculation area to to create the
-% big letter.
-\global\font\@IEEEPARstartfont\@IEEEPARstartFONTNAME\space at \@IEEEtrantmpdimenB%
-% Now set \@IEEEtrantmpdimenA to the width of the big letter
-% We need to carry this out of the local calculation area to set the
-% hanging indent
-\settowidth{\global\@IEEEtrantmpdimenA}{\@IEEEPARstartfont
-\@IEEEPARstartCAPSTYLE{#1\@IEEEPARstartITLCORRECT}}}%
-% end of the isolated calculation environment
-% add in the extra clearance we want
-\advance\@IEEEtrantmpdimenA by \@IEEEPARstartSEP\relax%
-% add in the optional offset
-\advance\@IEEEtrantmpdimenA by \@IEEEPARstartHOFFSET\relax%
-% V1.7 don't allow negative offsets to produce negative hanging indents
-\@IEEEtrantmpdimenB\@IEEEtrantmpdimenA
-\ifnum\@IEEEtrantmpdimenB < 0 \@IEEEtrantmpdimenB 0pt\fi
-% \@IEEEtrantmpdimenA has the width of the big letter plus the
-% separation space and \@IEEEPARstartfont is the font we need to use
-% Now, we make the letter and issue the hanging indent command
-% The letter is placed in a box of zero width and height so that other
-% text won't be displaced by it.
-\hangindent\@IEEEtrantmpdimenB\hangafter=-\@IEEEPARstartDROPLINES%
-\makebox[0pt][l]{\hspace{-\@IEEEtrantmpdimenA}%
-\raisebox{-\@IEEEPARstartDROPDEPTH}[0pt][0pt]{\hspace{\@IEEEPARstartHOFFSET}%
-\@IEEEPARstartfont\@IEEEPARstartCAPSTYLE{#1\@IEEEPARstartITLCORRECT}%
-\hspace{\@IEEEPARstartSEP}}}%
-{\@IEEEPARstartWORDFONTSTYLE{\@IEEEPARstartWORDCAPSTYLE{\selectfont#2}}}}
-
-
-
-
-
-
-% determines if the space remaining on a given page is equal to or greater
-% than the specified space of argument one
-% if not, execute argument two (only if the remaining space is greater than zero)
-% and issue a \newpage
-%
-% example: \@IEEEtranneedspace{2in}{\vfill}
-%
-% Does not take into consideration rubber shrinkage, so it tends to
-% be overly cautious
-% Based on an example posted by Donald Arseneau
-% Note this macro uses \@IEEEtrantmpdimenB internally for calculations,
-% so DO NOT PASS \@IEEEtrantmpdimenB to this routine
-% if you need a dimen register, import with \@IEEEtrantmpdimenA instead
-\def\@IEEEtranneedspace#1#2{\penalty-100\begingroup%shield temp variable
-\@IEEEtrantmpdimenB\pagegoal\advance\@IEEEtrantmpdimenB-\pagetotal% space left
-\ifdim #1>\@IEEEtrantmpdimenB\relax% not enough space left
-\ifdim\@IEEEtrantmpdimenB>\z@\relax #2\fi%
-\newpage%
-\fi\endgroup}
-
-
-
-% IEEEbiography ENVIRONMENT
-% Allows user to enter biography leaving place for picture (adapts to font size)
-% As of V1.5, a new optional argument allows you to have a real graphic!
-% V1.5 and later also fixes the "colliding biographies" which could happen when a
-% biography's text was shorter than the space for the photo.
-% MDS 7/2001
-% V1.6 prevent multiple biographies from making multiple TOC entries
-\newif\if@IEEEbiographyTOCentrynotmade
-\global\@IEEEbiographyTOCentrynotmadetrue
-
-% biography counter so hyperref can jump directly to the biographies
-% and not just the previous section
-\newcounter{IEEEbiography}
-\setcounter{IEEEbiography}{0}
-
-% photo area size
-\def\@IEEEBIOphotowidth{1.0in} % width of the biography photo area
-\def\@IEEEBIOphotodepth{1.25in} % depth (height) of the biography photo area
-% area cleared for photo
-\def\@IEEEBIOhangwidth{1.14in} % width cleared for the biography photo area
-\def\@IEEEBIOhangdepth{1.25in} % depth cleared for the biography photo area
- % actual depth will be a multiple of
- % \baselineskip, rounded up
-\def\@IEEEBIOskipN{4\baselineskip}% nominal value of the vskip above the biography
-
-\newenvironment{IEEEbiography}[2][]{\normalfont\@IEEEcompsoconly{\sffamily}\footnotesize%
-\unitlength 1in\parskip=0pt\par\parindent 1em\interlinepenalty500%
-% we need enough space to support the hanging indent
-% the nominal value of the spacer
-% and one extra line for good measure
-\@IEEEtrantmpdimenA=\@IEEEBIOhangdepth%
-\advance\@IEEEtrantmpdimenA by \@IEEEBIOskipN%
-\advance\@IEEEtrantmpdimenA by 1\baselineskip%
-% if this page does not have enough space, break it and lets start
-% with a new one
-\@IEEEtranneedspace{\@IEEEtrantmpdimenA}{\relax}%
-% nominal spacer can strech, not shrink use 1fil so user can out stretch with \vfill
-\vskip \@IEEEBIOskipN plus 1fil minus 0\baselineskip%
-% the default box for where the photo goes
-\def\@IEEEtempbiographybox{{\setlength{\fboxsep}{0pt}\framebox{%
-\begin{minipage}[b][\@IEEEBIOphotodepth][c]{\@IEEEBIOphotowidth}\centering PLACE\\ PHOTO\\ HERE \end{minipage}}}}%
-%
-% detect if the optional argument was supplied, this requires the
-% \@ifmtarg command as defined in the appendix section above
-% and if so, override the default box with what they want
-\@ifmtarg{#1}{\relax}{\def\@IEEEtempbiographybox{\mbox{\begin{minipage}[b][\@IEEEBIOphotodepth][c]{\@IEEEBIOphotowidth}%
-\centering%
-#1%
-\end{minipage}}}}% end if optional argument supplied
-% Make an entry into the table of contents only if we have not done so before
-\if@IEEEbiographyTOCentrynotmade%
-% link labels to the biography counter so hyperref will jump
-% to the biography, not the previous section
-\setcounter{IEEEbiography}{-1}%
-\refstepcounter{IEEEbiography}%
-\addcontentsline{toc}{section}{Biographies}%
-\global\@IEEEbiographyTOCentrynotmadefalse%
-\fi%
-% one more biography
-\refstepcounter{IEEEbiography}%
-% Make an entry for this name into the table of contents
-\addcontentsline{toc}{subsection}{#2}%
-% V1.6 properly handle if a new paragraph should occur while the
-% hanging indent is still active. Do this by redefining \par so
-% that it will not start a new paragraph. (But it will appear to the
-% user as if it did.) Also, strip any leading pars, newlines, or spaces.
-\let\@IEEEBIOORGparCMD=\par% save the original \par command
-\edef\par{\hfil\break\indent}% the new \par will not be a "real" \par
-\settoheight{\@IEEEtrantmpdimenA}{\@IEEEtempbiographybox}% get height of biography box
-\@IEEEtrantmpdimenB=\@IEEEBIOhangdepth%
-\@IEEEtrantmpcountA=\@IEEEtrantmpdimenB% countA has the hang depth
-\divide\@IEEEtrantmpcountA by \baselineskip% calculates lines needed to produce the hang depth
-\advance\@IEEEtrantmpcountA by 1% ensure we overestimate
-% set the hanging indent
-\hangindent\@IEEEBIOhangwidth%
-\hangafter-\@IEEEtrantmpcountA%
-% reference the top of the photo area to the top of a capital T
-\settoheight{\@IEEEtrantmpdimenB}{\mbox{T}}%
-% set the photo box, give it zero width and height so as not to disturb anything
-\noindent\makebox[0pt][l]{\hspace{-\@IEEEBIOhangwidth}\raisebox{\@IEEEtrantmpdimenB}[0pt][0pt]{%
-\raisebox{-\@IEEEBIOphotodepth}[0pt][0pt]{\@IEEEtempbiographybox}}}%
-% now place the author name and begin the bio text
-\noindent\textbf{#2\ }\@IEEEgobbleleadPARNLSP}{\relax\let\par=\@IEEEBIOORGparCMD\par%
-% 7/2001 V1.5 detect when the biography text is shorter than the photo area
-% and pad the unused area - preventing a collision from the next biography entry
-% MDS
-\ifnum \prevgraf <\@IEEEtrantmpcountA\relax% detect when the biography text is shorter than the photo
- \advance\@IEEEtrantmpcountA by -\prevgraf% calculate how many lines we need to pad
- \advance\@IEEEtrantmpcountA by -1\relax% we compensate for the fact that we indented an extra line
- \@IEEEtrantmpdimenA=\baselineskip% calculate the length of the padding
- \multiply\@IEEEtrantmpdimenA by \@IEEEtrantmpcountA%
- \noindent\rule{0pt}{\@IEEEtrantmpdimenA}% insert an invisible support strut
-\fi%
-\par\normalfont}
-
-
-
-% V1.6
-% added biography without a photo environment
-\newenvironment{IEEEbiographynophoto}[1]{%
-% Make an entry into the table of contents only if we have not done so before
-\if@IEEEbiographyTOCentrynotmade%
-% link labels to the biography counter so hyperref will jump
-% to the biography, not the previous section
-\setcounter{IEEEbiography}{-1}%
-\refstepcounter{IEEEbiography}%
-\addcontentsline{toc}{section}{Biographies}%
-\global\@IEEEbiographyTOCentrynotmadefalse%
-\fi%
-% one more biography
-\refstepcounter{IEEEbiography}%
-% Make an entry for this name into the table of contents
-\addcontentsline{toc}{subsection}{#1}%
-\normalfont\@IEEEcompsoconly{\sffamily}\footnotesize\interlinepenalty500%
-\vskip 4\baselineskip plus 1fil minus 0\baselineskip%
-\parskip=0pt\par%
-\noindent\textbf{#1\ }\@IEEEgobbleleadPARNLSP}{\relax\par\normalfont}
-
-
-% provide the user with some old font commands
-% got this from article.cls
-\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
-\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
-\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
-\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
-\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
-\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
-\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
-\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
-\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
-
-
-% SPECIAL PAPER NOTICE COMMANDS
-%
-% holds the special notice text
-\def\@IEEEspecialpapernotice{\relax}
-
-% for special papers, like invited papers, the user can do:
-% \IEEEspecialpapernotice{(Invited Paper)} before \maketitle
-\def\IEEEspecialpapernotice#1{\ifCLASSOPTIONconference%
-\def\@IEEEspecialpapernotice{{\sublargesize\textit{#1}\vspace*{1em}}}%
-\else%
-\def\@IEEEspecialpapernotice{{\\*[1.5ex]\sublargesize\textit{#1}}\vspace*{-2ex}}%
-\fi}
-
-
-
-
-% PUBLISHER ID COMMANDS
-% to insert a publisher's ID footer
-% V1.6 \IEEEpubid has been changed so that the change in page size and style
-% occurs in \maketitle. \IEEEpubid must now be issued prior to \maketitle
-% use \IEEEpubidadjcol as before - in the second column of the title page
-% These changes allow \maketitle to take the reduced page height into
-% consideration when dynamically setting the space between the author
-% names and the maintext.
-%
-% the amount the main text is pulled up to make room for the
-% publisher's ID footer
-% IEEE uses about 1.3\baselineskip for journals,
-% dynamic title spacing will clean up the fraction
-\def\@IEEEpubidpullup{1.3\baselineskip}
-\ifCLASSOPTIONtechnote
-% for technotes it must be an integer of baselineskip as there can be no
-% dynamic title spacing for two column mode technotes (the title is in the
-% in first column) and we should maintain an integer number of lines in the
-% second column
-% There are some examples (such as older issues of "Transactions on
-% Information Theory") in which IEEE really pulls the text off the ID for
-% technotes - about 0.55in (or 4\baselineskip). We'll use 2\baselineskip
-% and call it even.
-\def\@IEEEpubidpullup{2\baselineskip}
-\fi
-
-% V1.7 compsoc does not use a pullup
-\ifCLASSOPTIONcompsoc
-\def\@IEEEpubidpullup{0pt}
-\fi
-
-% holds the ID text
-\def\@IEEEpubid{\relax}
-
-% flag so \maketitle can tell if \IEEEpubid was called
-\newif\if@IEEEusingpubid
-\global\@IEEEusingpubidfalse
-% issue this command in the page to have the ID at the bottom
-% V1.6 use before \maketitle
-\def\IEEEpubid#1{\def\@IEEEpubid{#1}\global\@IEEEusingpubidtrue}
-
-
-% command which will pull up (shorten) the column it is executed in
-% to make room for the publisher ID. Place in the second column of
-% the title page when using \IEEEpubid
-% Is smart enough not to do anything when in single column text or
-% if the user hasn't called \IEEEpubid
-% currently needed in for the second column of a page with the
-% publisher ID. If not needed in future releases, please provide this
-% command and define it as \relax for backward compatibility
-% v1.6b do not allow command to operate if the peer review option has been
-% selected because \IEEEpubidadjcol will not be on the cover page.
-% V1.7 do nothing if compsoc
-\def\IEEEpubidadjcol{\ifCLASSOPTIONcompsoc\else\ifCLASSOPTIONpeerreview\else
-\if@twocolumn\if@IEEEusingpubid\enlargethispage{-\@IEEEpubidpullup}\fi\fi\fi\fi}
-
-% Special thanks to Peter Wilson, Daniel Luecking, and the other
-% gurus at comp.text.tex, for helping me to understand how best to
-% implement the IEEEpubid command in LaTeX.
-
-
-
-%% Lockout some commands under various conditions
-
-% general purpose bit bucket
-\newsavebox{\@IEEEtranrubishbin}
-
-% flags to prevent multiple warning messages
-\newif\if@IEEEWARNthanks
-\newif\if@IEEEWARNIEEEPARstart
-\newif\if@IEEEWARNIEEEbiography
-\newif\if@IEEEWARNIEEEbiographynophoto
-\newif\if@IEEEWARNIEEEpubid
-\newif\if@IEEEWARNIEEEpubidadjcol
-\newif\if@IEEEWARNIEEEmembership
-\newif\if@IEEEWARNIEEEaftertitletext
-\@IEEEWARNthankstrue
-\@IEEEWARNIEEEPARstarttrue
-\@IEEEWARNIEEEbiographytrue
-\@IEEEWARNIEEEbiographynophototrue
-\@IEEEWARNIEEEpubidtrue
-\@IEEEWARNIEEEpubidadjcoltrue
-\@IEEEWARNIEEEmembershiptrue
-\@IEEEWARNIEEEaftertitletexttrue
-
-
-%% Lockout some commands when in various modes, but allow them to be restored if needed
-%%
-% save commands which might be locked out
-% so that the user can later restore them if needed
-\let\@IEEESAVECMDthanks\thanks
-\let\@IEEESAVECMDIEEEPARstart\IEEEPARstart
-\let\@IEEESAVECMDIEEEbiography\IEEEbiography
-\let\@IEEESAVECMDendIEEEbiography\endIEEEbiography
-\let\@IEEESAVECMDIEEEbiographynophoto\IEEEbiographynophoto
-\let\@IEEESAVECMDendIEEEbiographynophoto\endIEEEbiographynophoto
-\let\@IEEESAVECMDIEEEpubid\IEEEpubid
-\let\@IEEESAVECMDIEEEpubidadjcol\IEEEpubidadjcol
-\let\@IEEESAVECMDIEEEmembership\IEEEmembership
-\let\@IEEESAVECMDIEEEaftertitletext\IEEEaftertitletext
-
-
-% disable \IEEEPARstart when in draft mode
-% This may have originally been done because the pre-V1.6 drop letter
-% algorithm had problems with a non-unity baselinestretch
-% At any rate, it seems too formal to have a drop letter in a draft
-% paper.
-\ifCLASSOPTIONdraftcls
-\def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** ATTENTION: \noexpand\IEEEPARstart
- is disabled in draft mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse}
-\fi
-% and for technotes
-\ifCLASSOPTIONtechnote
-\def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** WARNING: \noexpand\IEEEPARstart
- is locked out for technotes (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse}
-\fi
-
-
-% lockout unneeded commands when in conference mode
-\ifCLASSOPTIONconference
-% when locked out, \thanks, \IEEEbiography, \IEEEbiographynophoto, \IEEEpubid,
-% \IEEEmembership and \IEEEaftertitletext will all swallow their given text.
-% \IEEEPARstart will output a normal character instead
-% warn the user about these commands only once to prevent the console screen
-% from filling up with redundant messages
-\def\thanks#1{\if@IEEEWARNthanks\typeout{** WARNING: \noexpand\thanks
- is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNthanksfalse}
-\def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** WARNING: \noexpand\IEEEPARstart
- is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse}
-
-
-% LaTeX treats environments and commands with optional arguments differently.
-% the actual ("internal") command is stored as \\commandname
-% (accessed via \csname\string\commandname\endcsname )
-% the "external" command \commandname is a macro with code to determine
-% whether or not the optional argument is presented and to provide the
-% default if it is absent. So, in order to save and restore such a command
-% we would have to save and restore \\commandname as well. But, if LaTeX
-% ever changes the way it names the internal names, the trick would break.
-% Instead let us just define a new environment so that the internal
-% name can be left undisturbed.
-\newenvironment{@IEEEbogusbiography}[2][]{\if@IEEEWARNIEEEbiography\typeout{** WARNING: \noexpand\IEEEbiography
- is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEbiographyfalse%
-\setbox\@IEEEtranrubishbin\vbox\bgroup}{\egroup\relax}
-% and make biography point to our bogus biography
-\let\IEEEbiography=\@IEEEbogusbiography
-\let\endIEEEbiography=\end@IEEEbogusbiography
-
-\renewenvironment{IEEEbiographynophoto}[1]{\if@IEEEWARNIEEEbiographynophoto\typeout{** WARNING: \noexpand\IEEEbiographynophoto
- is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEbiographynophotofalse%
-\setbox\@IEEEtranrubishbin\vbox\bgroup}{\egroup\relax}
-
-\def\IEEEpubid#1{\if@IEEEWARNIEEEpubid\typeout{** WARNING: \noexpand\IEEEpubid
- is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEpubidfalse}
-\def\IEEEpubidadjcol{\if@IEEEWARNIEEEpubidadjcol\typeout{** WARNING: \noexpand\IEEEpubidadjcol
- is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEpubidadjcolfalse}
-\def\IEEEmembership#1{\if@IEEEWARNIEEEmembership\typeout{** WARNING: \noexpand\IEEEmembership
- is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEmembershipfalse}
-\def\IEEEaftertitletext#1{\if@IEEEWARNIEEEaftertitletext\typeout{** WARNING: \noexpand\IEEEaftertitletext
- is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEaftertitletextfalse}
-\fi
-
-
-% provide a way to restore the commands that are locked out
-\def\IEEEoverridecommandlockouts{%
-\typeout{** ATTENTION: Overriding command lockouts (line \the\inputlineno).}%
-\let\thanks\@IEEESAVECMDthanks%
-\let\IEEEPARstart\@IEEESAVECMDIEEEPARstart%
-\let\IEEEbiography\@IEEESAVECMDIEEEbiography%
-\let\endIEEEbiography\@IEEESAVECMDendIEEEbiography%
-\let\IEEEbiographynophoto\@IEEESAVECMDIEEEbiographynophoto%
-\let\endIEEEbiographynophoto\@IEEESAVECMDendIEEEbiographynophoto%
-\let\IEEEpubid\@IEEESAVECMDIEEEpubid%
-\let\IEEEpubidadjcol\@IEEESAVECMDIEEEpubidadjcol%
-\let\IEEEmembership\@IEEESAVECMDIEEEmembership%
-\let\IEEEaftertitletext\@IEEESAVECMDIEEEaftertitletext}
-
-
-
-% need a backslash character for typeout output
-{\catcode`\|=0 \catcode`\\=12
-|xdef|@IEEEbackslash{\}}
-
-
-% hook to allow easy disabling of all legacy warnings
-\def\@IEEElegacywarn#1#2{\typeout{** ATTENTION: \@IEEEbackslash #1 is deprecated (line \the\inputlineno).
-Use \@IEEEbackslash #2 instead.}}
-
-
-% provide for legacy commands
-\def\authorblockA{\@IEEElegacywarn{authorblockA}{IEEEauthorblockA}\IEEEauthorblockA}
-\def\authorblockN{\@IEEElegacywarn{authorblockN}{IEEEauthorblockN}\IEEEauthorblockN}
-\def\authorrefmark{\@IEEElegacywarn{authorrefmark}{IEEEauthorrefmark}\IEEEauthorrefmark}
-\def\PARstart{\@IEEElegacywarn{PARstart}{IEEEPARstart}\IEEEPARstart}
-\def\pubid{\@IEEElegacywarn{pubid}{IEEEpubid}\IEEEpubid}
-\def\pubidadjcol{\@IEEElegacywarn{pubidadjcol}{IEEEpubidadjcol}\IEEEpubidadjcol}
-\def\QED{\@IEEElegacywarn{QED}{IEEEQED}\IEEEQED}
-\def\QEDclosed{\@IEEElegacywarn{QEDclosed}{IEEEQEDclosed}\IEEEQEDclosed}
-\def\QEDopen{\@IEEElegacywarn{QEDopen}{IEEEQEDopen}\IEEEQEDopen}
-\def\specialpapernotice{\@IEEElegacywarn{specialpapernotice}{IEEEspecialpapernotice}\IEEEspecialpapernotice}
-
-
-
-% provide for legacy environments
-\def\biography{\@IEEElegacywarn{biography}{IEEEbiography}\IEEEbiography}
-\def\biographynophoto{\@IEEElegacywarn{biographynophoto}{IEEEbiographynophoto}\IEEEbiographynophoto}
-\def\keywords{\@IEEElegacywarn{keywords}{IEEEkeywords}\IEEEkeywords}
-\def\endbiography{\endIEEEbiography}
-\def\endbiographynophoto{\endIEEEbiographynophoto}
-\def\endkeywords{\endIEEEkeywords}
-
-
-% provide for legacy IED commands/lengths when possible
-\let\labelindent\IEEElabelindent
-\def\calcleftmargin{\@IEEElegacywarn{calcleftmargin}{IEEEcalcleftmargin}\IEEEcalcleftmargin}
-\def\setlabelwidth{\@IEEElegacywarn{setlabelwidth}{IEEEsetlabelwidth}\IEEEsetlabelwidth}
-\def\usemathlabelsep{\@IEEElegacywarn{usemathlabelsep}{IEEEusemathlabelsep}\IEEEusemathlabelsep}
-\def\iedlabeljustifyc{\@IEEElegacywarn{iedlabeljustifyc}{IEEEiedlabeljustifyc}\IEEEiedlabeljustifyc}
-\def\iedlabeljustifyl{\@IEEElegacywarn{iedlabeljustifyl}{IEEEiedlabeljustifyl}\IEEEiedlabeljustifyl}
-\def\iedlabeljustifyr{\@IEEElegacywarn{iedlabeljustifyr}{IEEEiedlabeljustifyr}\IEEEiedlabeljustifyr}
-
-
-
-% let \proof use the IEEEtran version even after amsthm is loaded
-% \proof is now deprecated in favor of \IEEEproof
-\AtBeginDocument{\def\proof{\@IEEElegacywarn{proof}{IEEEproof}\IEEEproof}\def\endproof{\endIEEEproof}}
-
-% V1.7 \overrideIEEEmargins is no longer supported.
-\def\overrideIEEEmargins{%
-\typeout{** WARNING: \string\overrideIEEEmargins \space no longer supported (line \the\inputlineno).}%
-\typeout{** Use the \string\CLASSINPUTinnersidemargin, \string\CLASSINPUToutersidemargin \space controls instead.}}
-
-
-\endinput
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End of IEEEtran.cls %%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% That's all folks!
-
diff --git a/relazioni/wireless/bare_adv.tex b/relazioni/wireless/bare_adv.tex
deleted file mode 100644
index de97ffa..0000000
--- a/relazioni/wireless/bare_adv.tex
+++ /dev/null
@@ -1,1100 +0,0 @@
-
-%% bare_adv.tex
-%% V1.3
-%% 2007/01/11
-%% by Michael Shell
-%% See:
-%% http://www.michaelshell.org/
-%% for current contact information.
-%%
-%% This is a skeleton file demonstrating the advanced use of IEEEtran.cls
-%% (requires IEEEtran.cls version 1.7 or later) with an IEEE Computer
-%% Society journal paper.
-%%
-%% Support sites:
-%% http://www.michaelshell.org/tex/ieeetran/
-%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
-%% and
-%% http://www.ieee.org/
-
-%%*************************************************************************
-%% Legal Notice:
-%% This code is offered as-is without any warranty either expressed or
-%% implied; without even the implied warranty of MERCHANTABILITY or
-%% FITNESS FOR A PARTICULAR PURPOSE!
-%% User assumes all risk.
-%% In no event shall IEEE or any contributor to this code be liable for
-%% any damages or losses, including, but not limited to, incidental,
-%% consequential, or any other damages, resulting from the use or misuse
-%% of any information contained here.
-%%
-%% All comments are the opinions of their respective authors and are not
-%% necessarily endorsed by the IEEE.
-%%
-%% This work is distributed under the LaTeX Project Public License (LPPL)
-%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
-%% distributed and modified. A copy of the LPPL, version 1.3, is included
-%% in the base LaTeX documentation of all distributions of LaTeX released
-%% 2003/12/01 or later.
-%% Retain all contribution notices and credits.
-%% ** Modified files should be clearly indicated as such, including **
-%% ** renaming them and changing author support contact information. **
-%%
-%% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex,
-%% bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex
-%%*************************************************************************
-
-% *** Authors should verify (and, if needed, correct) their LaTeX system ***
-% *** with the testflow diagnostic prior to trusting their LaTeX platform ***
-% *** with production work. IEEE's font choices can trigger bugs that do ***
-% *** not appear when using other class files. ***
-% The testflow support page is at:
-% http://www.michaelshell.org/tex/testflow/
-
-
-
-% IEEEtran V1.7 and later provides for these CLASSINPUT macros to allow the
-% user to reprogram some IEEEtran.cls defaults if needed. These settings
-% override the internal defaults of IEEEtran.cls regardless of which class
-% options are used. Do not use these unless you have good reason to do so as
-% they can result in nonIEEE compliant documents. User beware. ;)
-%
-%\newcommand{\CLASSINPUTbaselinestretch}{1.0} % baselinestretch
-%\newcommand{\CLASSINPUTinnersidemargin}{1in} % inner side margin
-%\newcommand{\CLASSINPUToutersidemargin}{1in} % outer side margin
-%\newcommand{\CLASSINPUTtoptextmargin}{1in} % top text margin
-%\newcommand{\CLASSINPUTbottomtextmargin}{1in}% bottom text margin
-
-
-
-% Note that the a4paper option is mainly intended so that authors in
-% countries using A4 can easily print to A4 and see how their papers will
-% look in print - the typesetting of the document will not typically be
-% affected with changes in paper size (but the bottom and side margins will).
-% Use the testflow package mentioned above to verify correct handling of
-% both paper sizes by the user's LaTeX system.
-%
-% Also note that the "draftcls" or "draftclsnofoot", not "draft", option
-% should be used if it is desired that the figures are to be displayed in
-% draft mode.
-%
-\documentclass[12pt,journal,compsoc]{IEEEtran}
-% The Computer Society requires 12pt.
-% If IEEEtran.cls has not been installed into the LaTeX system files,
-% manually specify the path to it like:
-% \documentclass[10pt,journal,compsoc]{../sty/IEEEtran}
-
-
-% For Computer Society journals, IEEEtran defaults to the use of
-% Palatino/Palladio as is done in IEEE Computer Society journals.
-% To go back to Times Roman, you can use this code:
-%\renewcommand{\rmdefault}{ptm}\selectfont
-
-
-
-
-
-% Some very useful LaTeX packages include:
-% (uncomment the ones you want to load)
-
-
-
-% *** MISC UTILITY PACKAGES ***
-%
-%\usepackage{ifpdf}
-% Heiko Oberdiek's ifpdf.sty is very useful if you need conditional
-% compilation based on whether the output is pdf or dvi.
-% usage:
-% \ifpdf
-% % pdf code
-% \else
-% % dvi code
-% \fi
-% The latest version of ifpdf.sty can be obtained from:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/
-% Also, note that IEEEtran.cls V1.7 and later provides a builtin
-% \ifCLASSINFOpdf conditional that works the same way.
-% When switching from latex to pdflatex and vice-versa, the compiler may
-% have to be run twice to clear warning/error messages.
-
-
-
-
-
-
-% *** CITATION PACKAGES ***
-%
-\ifCLASSOPTIONcompsoc
- % IEEE Computer Society needs nocompress option
- % requires cite.sty v4.0 or later (November 2003)
- % \usepackage[nocompress]{cite}
-\else
- % normal IEEE
- % \usepackage{cite}
-\fi
-% cite.sty was written by Donald Arseneau
-% V1.6 and later of IEEEtran pre-defines the format of the cite.sty package
-% \cite{} output to follow that of IEEE. Loading the cite package will
-% result in citation numbers being automatically sorted and properly
-% "compressed/ranged". e.g., [1], [9], [2], [7], [5], [6] without using
-% cite.sty will become [1], [2], [5]--[7], [9] using cite.sty. cite.sty's
-% \cite will automatically add leading space, if needed. Use cite.sty's
-% noadjust option (cite.sty V3.8 and later) if you want to turn this off.
-% cite.sty is already installed on most LaTeX systems. Be sure and use
-% version 4.0 (2003-05-27) and later if using hyperref.sty. cite.sty does
-% not currently provide for hyperlinked citations.
-% The latest version can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/cite/
-% The documentation is contained in the cite.sty file itself.
-%
-% Note that some packages require special options to format as the Computer
-% Society requires. In particular, Computer Society papers do not use
-% compressed citation ranges as is done in typical IEEE papers
-% (e.g., [1]-[4]). Instead, they list every citation separately in order
-% (e.g., [1], [2], [3], [4]). To get the latter we need to load the cite
-% package with the nocompress option which is supported by cite.sty v4.0
-% and later. Note also the use of a CLASSOPTION conditional provided by
-% IEEEtran.cls V1.7 and later.
-
-
-
-
-
-% *** GRAPHICS RELATED PACKAGES ***
-%
-\ifCLASSINFOpdf
- % \usepackage[pdftex]{graphicx}
- % declare the path(s) where your graphic files are
- % \graphicspath{{../pdf/}{../jpeg/}}
- % and their extensions so you won't have to specify these with
- % every instance of \includegraphics
- % \DeclareGraphicsExtensions{.pdf,.jpeg,.png}
-\else
- % or other class option (dvipsone, dvipdf, if not using dvips). graphicx
- % will default to the driver specified in the system graphics.cfg if no
- % driver is specified.
- % \usepackage[dvips]{graphicx}
- % declare the path(s) where your graphic files are
- % \graphicspath{{../eps/}}
- % and their extensions so you won't have to specify these with
- % every instance of \includegraphics
- % \DeclareGraphicsExtensions{.eps}
-\fi
-% graphicx was written by David Carlisle and Sebastian Rahtz. It is
-% required if you want graphics, photos, etc. graphicx.sty is already
-% installed on most LaTeX systems. The latest version and documentation can
-% be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/graphics/
-% Another good source of documentation is "Using Imported Graphics in
-% LaTeX2e" by Keith Reckdahl which can be found as epslatex.ps or
-% epslatex.pdf at: http://www.ctan.org/tex-archive/info/
-%
-% latex, and pdflatex in dvi mode, support graphics in encapsulated
-% postscript (.eps) format. pdflatex in pdf mode supports graphics
-% in .pdf, .jpeg, .png and .mps (metapost) formats. Users should ensure
-% that all non-photo figures use a vector format (.eps, .pdf, .mps) and
-% not a bitmapped formats (.jpeg, .png). IEEE frowns on bitmapped formats
-% which can result in "jaggedy"/blurry rendering of lines and letters as
-% well as large increases in file sizes.
-%
-% You can find documentation about the pdfTeX application at:
-% http://www.tug.org/applications/pdftex
-
-
-
-%\usepackage{ps4pdf}
-% dvi->ps workflow is required to use such packages as psfrag.sty and
-% pstricks.sty. However, Rolf Niepraschk's ps4pdf.sty provides a way to
-% apply psfrag/pstricks effects to .eps figures and then get the resultant
-% figures in .pdf form. Thus, providing an easier way for migrating from
-% .eps to .pdf figures. After ps4pdf.sty loads, if:
-% 1. producing .dvi output: the output file will consist ONLY of the
-% figures (or other constructs encased within \PSforPDF commands)
-% 2. producing .pdf output: pdflatex will look in the filename-pics.pdf
-% file, where filename is the basename of the tex document, for the
-% graphics (or other constructs encased within \PSforPDF commands).
-% NOTE: If you ever change your figures, you must remember to remake
-% the filename-pics.pdf file.
-%
-% This way you can do a:
-%
-% latex filename
-% dvips -Ppdf -o filename-pics.ps filename.dvi
-% ps2pdf filename-pics.ps filename-pics.pdf
-%
-% to produce a filename-pics.pdf graphics container that contains
-% .pdf versions of the graphics with psfrag, pstricks, etc. features.
-% Note that you will not typically be able to view the figures in
-% filename-pics.ps because of an offset. However, you will be able to
-% view them in filename-pics.pdf. Also, note that when ps4pdf is in effect
-% with .dvi output, you may get harmless over/under full box warnings -
-% ignore them.
-% Then, run pdflatex:
-%
-% pdflatex filename
-%
-% to use pdflatex to make PDF output, automatically using the figures in
-% filename-pics.pdf. Alternatively, you could use dvips -i option to
-% obtain separate .pdf files for each figure:
-%
-% dvips -Ppdf -i -E -o fig filename
-%
-% then convert each figure to pdf via a command such as epstopdf and then
-% use pdflatex with these pdf figures and then to dispense with ps4pdf.
-%
-% Remember to rerun through latex/dvips/ps2pdf if you ever change your
-% figures so that filename-pics.pdf gets updated.
-% ps4pdf requires David Kastrup's preview-latex and a recent LaTeX system
-% (circa 2001 or later). The ps4pdf package and documentation can be
-% obtained at: http://www.ctan.org/tex-archive/macros/latex/contrib/ps4pdf/
-% The preview-latex package and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/preview/
-%
-% provide a bogus \PSforPDF, even when not loading pd4pdf. This way we can
-% stop loading ps4pdf.sty if we choose to make separate .pdf versions of
-% each of our figures.
-\providecommand{\PSforPDF}[1]{#1}
-% Note that in order for ps4pdf to work, all commands related to psfrag,
-% pstricks, etc. must be called within the PSforPDF command. This applies
-% even when *loading* via \usepackage psfrag.sty, etc.
-
-
-%\PSforPDF{\usepackage{psfrag}}
-% psfrag.sty was written by Craig Barratt, Michael C. Grant, and
-% David Carlisle. It allows you to substitute LaTeX commands for text in
-% imported EPS graphic files. In this way, LaTeX symbols can be placed into
-% graphics that have been generated by other applications. You must use
-% latex->dvips->ps2pdf workflow (not direct pdf output from pdflatex) if
-% you wish to use this capability because it works via some PostScript
-% tricks. Alternatively, the graphics could be processed as separate files
-% via psfrag and dvips, then converted to PDF for inclusion in the main file
-% which uses pdflatex. ps4pdf.sty (above) provides a way of doing this all
-% at once within the main file.
-% Docs are in "The PSfrag System" by Michael C. Grant and David Carlisle.
-% There is also some information about using psfrag in "Using Imported
-% Graphics in LaTeX2e" by Keith Reckdahl which documents the graphicx
-% package (see above). The psfrag package and documentation can be obtained
-% at: http://www.ctan.org/tex-archive/macros/latex/contrib/psfrag/
-%
-% Note that the current version of psfrag does not "turn itself off" when
-% running under pdf output. This will result in a harmless warning
-% about a non-PDF \special. However, to silence this, a bogus psfrag
-% command can be provided instead of loading psfrag.sty when PDF output
-% is being used. Thus, a more complex alternative conditional loading scheme
-% can be employed instead of the straightforword way above:
-%
-%\ifCLASSINFOpdf
-% if outputting PDF, do not use or load psfrag.sty as current versions
-% output a non-PDF special that generates a harmless, but annoying warning.
-% Instead, we provide a bogus \psfrag command that does nothing with
-% its arguments. This is a tad tricky because \psfrag can have up to six
-% arguments four of which are optional: \psfrag{}[][][][]{}
-% Code based on that in psfrag.sty
-%\makeatletter
-%\def\psfrag{\@ifstar{\@BOGUSpsfraga}{\@BOGUSpsfraga}}
-%\def\@BOGUSpsfraga{\begingroup
-% \@makeother\"\@makeother\*\@makeother\!\@makeother\~%
-% \@makeother\:\@makeother\\\@makeother\%\@makeother\#%
-% \@makeother\ \@BOGUSpsfragb}
-%\def\@BOGUSpsfragb#1{\endgroup
-% \@ifnextchar [{\@BOGUSpsfragc}%
-% {\@BOGUSpsfrag}}
-%\def\@BOGUSpsfragc[#1]{\@ifnextchar [{\@BOGUSpsfragd}%
-% {\@BOGUSpsfrag}}
-%\def\@BOGUSpsfragd[#1]{\@ifnextchar [{\@BOGUSpsfrage}%
-% {\@BOGUSpsfrag}}
-%\def\@BOGUSpsfrage[#1]{\@ifnextchar [{\@BOGUSpsfragf}%
-% {\@BOGUSpsfrag}}
-%\def\@BOGUSpsfragf[#1]{\@BOGUSpsfrag}
-%\def\@BOGUSpsfrag#1{\ignorespaces}
-%\makeatother
-%\else
-% using dvi output, load psfrag, but funnel it through PSforPDF
-% as required by ps4pdf.sty
-%\PSforPDF{\usepackage{psfrag}}
-%\fi
-
-
-
-
-
-% *** MATH PACKAGES ***
-%
-%\usepackage[cmex10]{amsmath}
-% A popular package from the American Mathematical Society that provides
-% many useful and powerful commands for dealing with mathematics. If using
-% it, be sure to load this package with the cmex10 option to ensure that
-% only type 1 fonts will utilized at all point sizes. Without this option,
-% it is possible that some math symbols, particularly those within
-% footnotes, will be rendered in bitmap form which will result in a
-% document that can not be IEEE Xplore compliant!
-%
-% Also, note that the amsmath package sets \interdisplaylinepenalty to 10000
-% thus preventing page breaks from occurring within multiline equations. Use:
-%\interdisplaylinepenalty=2500
-% after loading amsmath to restore such page breaks as IEEEtran.cls normally
-% does. amsmath.sty is already installed on most LaTeX systems. The latest
-% version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/amslatex/math/
-
-
-
-
-
-% *** SPECIALIZED LIST PACKAGES ***
-%\usepackage{acronym}
-% acronym.sty was written by Tobias Oetiker. This package provides tools for
-% managing documents with large numbers of acronyms. (You don't *have* to
-% use this package - unless you have a lot of acronyms, you may feel that
-% such package management of them is bit of an overkill.)
-% Do note that the acronym environment (which lists acronyms) will have a
-% problem when used under IEEEtran.cls because acronym.sty relies on the
-% description list environment - which IEEEtran.cls has customized for
-% producing IEEE style lists. A workaround is to declared the longest
-% label width via the IEEEtran.cls \IEEEiedlistdecl global control:
-%
-% \renewcommand{\IEEEiedlistdecl}{\IEEEsetlabelwidth{SONET}}
-% \begin{acronym}
-%
-% \end{acronym}
-% \renewcommand{\IEEEiedlistdecl}{\relax}% remember to reset \IEEEiedlistdecl
-%
-% instead of using the acronym environment's optional argument.
-% The latest version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/acronym/
-
-
-%\usepackage{algorithmic}
-% algorithmic.sty was written by Peter Williams and Rogerio Brito.
-% This package provides an algorithmic environment fo describing algorithms.
-% You can use the algorithmic environment in-text or within a figure
-% environment to provide for a floating algorithm. Do NOT use the algorithm
-% floating environment provided by algorithm.sty (by the same authors) or
-% algorithm2e.sty (by Christophe Fiorio) as IEEE does not use dedicated
-% algorithm float types and packages that provide these will not provide
-% correct IEEE style captions. The latest version and documentation of
-% algorithmic.sty can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithms/
-% There is also a support site at:
-% http://algorithms.berlios.de/index.html
-% Also of interest may be the (relatively newer and more customizable)
-% algorithmicx.sty package by Szasz Janos:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithmicx/
-
-
-
-
-% *** ALIGNMENT PACKAGES ***
-%
-%\usepackage{array}
-% Frank Mittelbach's and David Carlisle's array.sty patches and improves
-% the standard LaTeX2e array and tabular environments to provide better
-% appearance and additional user controls. As the default LaTeX2e table
-% generation code is lacking to the point of almost being broken with
-% respect to the quality of the end results, all users are strongly
-% advised to use an enhanced (at the very least that provided by array.sty)
-% set of table tools. array.sty is already installed on most systems. The
-% latest version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/tools/
-
-
-%\usepackage{mdwmath}
-%\usepackage{mdwtab}
-% Also highly recommended is Mark Wooding's extremely powerful MDW tools,
-% especially mdwmath.sty and mdwtab.sty which are used to format equations
-% and tables, respectively. The MDWtools set is already installed on most
-% LaTeX systems. The lastest version and documentation is available at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/mdwtools/
-
-
-% IEEEtran contains the IEEEeqnarray family of commands that can be used to
-% generate multiline equations as well as matrices, tables, etc., of high
-% quality.
-
-
-%\usepackage{eqparbox}
-% Also of notable interest is Scott Pakin's eqparbox package for creating
-% (automatically sized) equal width boxes - aka "natural width parboxes".
-% Available at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/eqparbox/
-
-
-
-
-
-% *** SUBFIGURE PACKAGES ***
-%\ifCLASSOPTIONcompsoc
-%\usepackage[tight,normalsize,sf,SF]{subfigure}
-%\else
-%\usepackage[tight,footnotesize]{subfigure}
-%\fi
-% subfigure.sty was written by Steven Douglas Cochran. This package makes it
-% easy to put subfigures in your figures. e.g., "Figure 1a and 1b". For IEEE
-% work, it is a good idea to load it with the tight package option to reduce
-% the amount of white space around the subfigures. Computer Society papers
-% use a larger font and \sffamily font for their captions, hence the
-% additional options needed under compsoc mode. subfigure.sty is already
-% installed on most LaTeX systems. The latest version and documentation can
-% be obtained at:
-% http://www.ctan.org/tex-archive/obsolete/macros/latex/contrib/subfigure/
-% subfigure.sty has been superceeded by subfig.sty.
-
-
-%\ifCLASSOPTIONcompsoc
-% \usepackage[caption=false]{caption}
-% \usepackage[font=normalsize,labelfont=sf,textfont=sf]{subfig}
-%\else
-% \usepackage[caption=false]{caption}
-% \usepackage[font=footnotesize]{subfig}
-%\fi
-% subfig.sty, also written by Steven Douglas Cochran, is the modern
-% replacement for subfigure.sty. However, subfig.sty requires and
-% automatically loads Axel Sommerfeldt's caption.sty which will override
-% IEEEtran.cls handling of captions and this will result in nonIEEE style
-% figure/table captions. To prevent this problem, be sure and preload
-% caption.sty with its "caption=false" package option. This is will preserve
-% IEEEtran.cls handing of captions. Version 1.3 (2005/06/28) and later
-% (recommended due to many improvements over 1.2) of subfig.sty supports
-% the caption=false option directly:
-%\ifCLASSOPTIONcompsoc
-% \usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig}
-%\else
-% \usepackage[caption=false,font=footnotesize]{subfig}
-%\fi
-%
-% The latest version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/
-% The latest version and documentation of caption.sty can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/caption/
-
-
-
-
-% *** FLOAT PACKAGES ***
-%
-%\usepackage{fixltx2e}
-% fixltx2e, the successor to the earlier fix2col.sty, was written by
-% Frank Mittelbach and David Carlisle. This package corrects a few problems
-% in the LaTeX2e kernel, the most notable of which is that in current
-% LaTeX2e releases, the ordering of single and double column floats is not
-% guaranteed to be preserved. Thus, an unpatched LaTeX2e can allow a
-% single column figure to be placed prior to an earlier double column
-% figure. The latest version and documentation can be found at:
-% http://www.ctan.org/tex-archive/macros/latex/base/
-
-
-%\usepackage{stfloats}
-% stfloats.sty was written by Sigitas Tolusis. This package gives LaTeX2e
-% the ability to do double column floats at the bottom of the page as well
-% as the top. (e.g., "\begin{figure*}[!b]" is not normally possible in
-% LaTeX2e). It also provides a command:
-%\fnbelowfloat
-% to enable the placement of footnotes below bottom floats (the standard
-% LaTeX2e kernel puts them above bottom floats). This is an invasive package
-% which rewrites many portions of the LaTeX2e float routines. It may not work
-% with other packages that modify the LaTeX2e float routines. The latest
-% version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/sttools/
-% Documentation is contained in the stfloats.sty comments as well as in the
-% presfull.pdf file. Do not use the stfloats baselinefloat ability as IEEE
-% does not allow \baselineskip to stretch. Authors submitting work to the
-% IEEE should note that IEEE rarely uses double column equations and
-% that authors should try to avoid such use. Do not be tempted to use the
-% cuted.sty or midfloat.sty packages (also by Sigitas Tolusis) as IEEE does
-% not format its papers in such ways.
-
-
-%\ifCLASSOPTIONcaptionsoff
-% \usepackage[nomarkers]{endfloat}
-% \let\MYoriglatexcaption\caption
-% \renewcommand{\caption}[2][\relax]{\MYoriglatexcaption[#2]{#2}}
-%\fi
-% endfloat.sty was written by James Darrell McCauley and Jeff Goldberg.
-% This package may be useful when used in conjunction with IEEEtran.cls'
-% captionsoff option. Some IEEE journals/societies require that submissions
-% have lists of figures/tables at the end of the paper and that
-% figures/tables without any captions are placed on a page by themselves at
-% the end of the document. If needed, the draftcls IEEEtran class option or
-% \CLASSINPUTbaselinestretch interface can be used to increase the line
-% spacing as well. Be sure and use the nomarkers option of endfloat to
-% prevent endfloat from "marking" where the figures would have been placed
-% in the text. The two hack lines of code above are a slight modification of
-% that suggested by in the endfloat docs (section 8.3.1) to ensure that
-% the full captions always appear in the list of figures/tables - even if
-% the user used the short optional argument of \caption[]{}.
-% IEEE papers do not typically make use of \caption[]'s optional argument,
-% so this should not be an issue. A similar trick can be used to disable
-% captions of packages such as subfig.sty that lack options to turn off
-% the subcaptions:
-% For subfig.sty:
-% \let\MYorigsubfloat\subfloat
-% \renewcommand{\subfloat}[2][\relax]{\MYorigsubfloat[]{#2}}
-% For subfigure.sty:
-% \let\MYorigsubfigure\subfigure
-% \renewcommand{\subfigure}[2][\relax]{\MYorigsubfigure[]{#2}}
-% However, the above trick will not work if both optional arguments of
-% the \subfloat/subfig command are used. Furthermore, there needs to be a
-% description of each subfigure *somewhere* and endfloat does not add
-% subfigure captions to its list of figures. Thus, the best approach is to
-% avoid the use of subfigure captions (many IEEE journals avoid them anyway)
-% and instead reference/explain all the subfigures within the main caption.
-% The latest version of endfloat.sty and its documentation can obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/endfloat/
-%
-% The IEEEtran \ifCLASSOPTIONcaptionsoff conditional can also be used
-% later in the document, say, to conditionally put the References on a
-% page by themselves.
-
-
-
-
-
-% *** PDF, URL AND HYPERLINK PACKAGES ***
-%
-%\usepackage{url}
-% url.sty was written by Donald Arseneau. It provides better support for
-% handling and breaking URLs. url.sty is already installed on most LaTeX
-% systems. The latest version can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/misc/
-% Read the url.sty source comments for usage information. Basically,
-% \url{my_url_here}.
-
-
-% NOTE: PDF thumbnail features are not required in IEEE papers
-% and their use requires extra complexity and work.
-%\ifCLASSINFOpdf
-% \usepackage[pdftex]{thumbpdf}
-%\else
-% \usepackage[dvips]{thumbpdf}
-%\fi
-% thumbpdf.sty and its companion Perl utility were written by Heiko Oberdiek.
-% It allows the user a way to produce PDF documents that contain fancy
-% thumbnail images of each of the pages (which tools like acrobat reader can
-% utilize). This is possible even when using dvi->ps->pdf workflow if the
-% correct thumbpdf driver options are used. thumbpdf.sty incorporates the
-% file containing the PDF thumbnail information (filename.tpm is used with
-% dvips, filename.tpt is used with pdftex, where filename is the base name of
-% your tex document) into the final ps or pdf output document. An external
-% utility, the thumbpdf *Perl script* is needed to make these .tpm or .tpt
-% thumbnail files from a .ps or .pdf version of the document (which obviously
-% does not yet contain pdf thumbnails). Thus, one does a:
-%
-% thumbpdf filename.pdf
-%
-% to make a filename.tpt, and:
-%
-% thumbpdf --mode dvips filename.ps
-%
-% to make a filename.tpm which will then be loaded into the document by
-% thumbpdf.sty the NEXT time the document is compiled (by pdflatex or
-% latex->dvips->ps2pdf). Users must be careful to regenerate the .tpt and/or
-% .tpm files if the main document changes and then to recompile the
-% document to incorporate the revised thumbnails to ensure that thumbnails
-% match the actual pages. It is easy to forget to do this!
-%
-% Unix systems come with a Perl interpreter. However, MS Windows users
-% will usually have to install a Perl interpreter so that the thumbpdf
-% script can be run. The Ghostscript PS/PDF interpreter is also required.
-% See the thumbpdf docs for details. The latest version and documentation
-% can be obtained at.
-% http://www.ctan.org/tex-archive/support/thumbpdf/
-% Be sure and use only version 3.8 (2005/07/06) or later of thumbpdf as
-% earlier versions will not work properly with recent versions of pdfTeX
-% (1.20a and later).
-
-
-% NOTE: PDF hyperlink and bookmark features are not required in IEEE
-% papers and their use requires extra complexity and work.
-% *** IF USING HYPERREF BE SURE AND CHANGE THE EXAMPLE PDF ***
-% *** TITLE/SUBJECT/AUTHOR/KEYWORDS INFO BELOW!! ***
-\newcommand\MYhyperrefoptions{bookmarks=true,bookmarksnumbered=true,
-pdfpagemode={UseOutlines},plainpages=false,pdfpagelabels=true,
-colorlinks=true,linkcolor={black},citecolor={black},pagecolor={black},
-urlcolor={black},
-pdftitle={Bare Demo of IEEEtran.cls for Computer Society Journals},%<!CHANGE!
-pdfsubject={Typesetting},%<!CHANGE!
-pdfauthor={Michael D. Shell},%<!CHANGE!
-pdfkeywords={Computer Society, IEEEtran, journal, LaTeX, paper,
- template}}%<^!CHANGE!
-%\ifCLASSINFOpdf
-%\usepackage[\MYhyperrefoptions,pdftex]{hyperref}
-%\else
-%\usepackage[\MYhyperrefoptions,breaklinks=true,dvips]{hyperref}
-%\usepackage{breakurl}
-%\fi
-% One significant drawback of using hyperref under DVI output is that the
-% LaTeX compiler cannot break URLs across lines or pages as can be done
-% under pdfLaTeX's PDF output via the hyperref pdftex driver. This is
-% probably the single most important capability distinction between the
-% DVI and PDF output. Perhaps surprisingly, all the other PDF features
-% (PDF bookmarks, thumbnails, etc.) can be preserved in
-% .tex->.dvi->.ps->.pdf workflow if the respective packages/scripts are
-% loaded/invoked with the correct driver options (dvips, etc.).
-% As most IEEE papers use URLs sparingly (mainly in the references), this
-% may not be as big an issue as with other publications.
-%
-% That said, recently Vilar Camara Neto introduced his breakurl.sty
-% package which permits hyperref to easily break URLs even in dvi
-% mode. Note that breakurl, unlike most other packages, must be loaded
-% AFTER hyperref. The latest version of breakurl and its documentation can
-% be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/breakurl/
-% breakurl.sty is not for use under pdflatex pdf mode. Versions 1.10
-% (September 23, 2005) and later are recommened to avoid bugs in earlier
-% releases.
-%
-% The advanced features offer by hyperref.sty are not required for IEEE
-% submission, so users should weigh these features against the added
-% complexity of use. Users who wish to use hyperref *must* ensure that
-% their hyperref version is 6.72u or later *and* IEEEtran.cls is version
-% 1.6b or later.
-% The package options above demonstrate how to enable PDF bookmarks
-% (a type of table of contents viewable in Acrobat Reader) as well as
-% PDF document information (title, subject, author and keywords) that is
-% viewable in Acrobat reader's Document_Properties menu. PDF document
-% information is also used extensively to automate the cataloging of PDF
-% documents. The above set of options ensures that hyperlinks will not be
-% colored in the text and thus will not be visible in the printed page,
-% but will be active on "mouse over". USING COLORS OR OTHER HIGHLIGHTING
-% OF HYPERLINKS CAN RESULT IN DOCUMENT REJECTION BY THE IEEE, especially if
-% these appear on the "printed" page. IF IN DOUBT, ASK THE RELEVANT
-% SUBMISSION EDITOR. You may need to add the option hypertexnames=false if
-% you used duplicate equation numbers, etc., but this should not be needed
-% in normal IEEE work.
-% The latest version of hyperref and its documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/
-
-
-
-
-
-% *** Do not adjust lengths that control margins, column widths, etc. ***
-% *** Do not use packages that alter fonts (such as pslatex). ***
-% There should be no need to do such things with IEEEtran.cls V1.6 and later.
-% (Unless specifically asked to do so by the journal or conference you plan
-% to submit to, of course. )
-
-
-% correct bad hyphenation here
-\hyphenation{op-tical net-works semi-conduc-tor}
-
-
-\begin{document}
-%
-% paper title
-% can use linebreaks \\ within to get better formatting as desired
-\title{Bare Advanced Demo of IEEEtran.cls\\ for Computer Society Journals}
-%
-%
-% author names and IEEE memberships
-% note positions of commas and nonbreaking spaces ( ~ ) LaTeX will not break
-% a structure at a ~ so this keeps an author's name from being broken across
-% two lines.
-% use \thanks{} to gain access to the first footnote area
-% a separate \thanks must be used for each paragraph as LaTeX2e's \thanks
-% was not built to handle multiple paragraphs
-%
-%
-%\IEEEcompsocitemizethanks is a special \thanks that produces the bulleted
-% lists the Computer Society journals use for "first footnote" author
-% affiliations. Use \IEEEcompsocthanksitem which works much like \item
-% for each affiliation group. When not in compsoc mode,
-% \IEEEcompsocitemizethanks becomes like \thanks and
-% \IEEEcompsocthanksitem becomes a line break with idention. This
-% facilitates dual compilation, although admittedly the differences in the
-% desired content of \author between the different types of papers makes a
-% one-size-fits-all approach a daunting prospect. For instance, compsoc
-% journal papers have the author affiliations above the "Manuscript
-% received ..." text while in non-compsoc journals this is reversed. Sigh.
-
-\author{Michael~Shell,~\IEEEmembership{Member,~IEEE,}
- John~Doe,~\IEEEmembership{Fellow,~OSA,}
- and~Jane~Doe,~\IEEEmembership{Life~Fellow,~IEEE}% <-this % stops a space
-\IEEEcompsocitemizethanks{\IEEEcompsocthanksitem M. Shell is with the Department
-of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta,
-GA, 30332.\protect\\
-% note need leading \protect in front of \\ to get a newline within \thanks as
-% \\ is fragile and will error, could use \hfil\break instead.
-E-mail: see http://www.michaelshell.org/contact.html
-\IEEEcompsocthanksitem J. Doe and J. Doe are with Anonymous University.}% <-this % stops a space
-\thanks{Manuscript received April 19, 2005; revised January 11, 2007.}}
-
-% note the % following the last \IEEEmembership and also \thanks -
-% these prevent an unwanted space from occurring between the last author name
-% and the end of the author line. i.e., if you had this:
-%
-% \author{....lastname \thanks{...} \thanks{...} }
-% ^------------^------------^----Do not want these spaces!
-%
-% a space would be appended to the last name and could cause every name on that
-% line to be shifted left slightly. This is one of those "LaTeX things". For
-% instance, "\textbf{A} \textbf{B}" will typeset as "A B" not "AB". To get
-% "AB" then you have to do: "\textbf{A}\textbf{B}"
-% \thanks is no different in this regard, so shield the last } of each \thanks
-% that ends a line with a % and do not let a space in before the next \thanks.
-% Spaces after \IEEEmembership other than the last one are OK (and needed) as
-% you are supposed to have spaces between the names. For what it is worth,
-% this is a minor point as most people would not even notice if the said evil
-% space somehow managed to creep in.
-
-
-
-% The paper headers
-\markboth{Journal of \LaTeX\ Class Files,~Vol.~6, No.~1, January~2007}%
-{Shell \MakeLowercase{\textit{et al.}}: Bare Advanced Demo of IEEEtran.cls for Journals}
-% The only time the second header will appear is for the odd numbered pages
-% after the title page when using the twoside option.
-%
-% *** Note that you probably will NOT want to include the author's ***
-% *** name in the headers of peer review papers. ***
-% You can use \ifCLASSOPTIONpeerreview for conditional compilation here if
-% you desire.
-
-
-
-% The publisher's ID mark at the bottom of the page is less important with
-% Computer Society journal papers as those publications place the marks
-% outside of the main text columns and, therefore, unlike regular IEEE
-% journals, the available text space is not reduced by their presence.
-% If you want to put a publisher's ID mark on the page you can do it like
-% this:
-%\IEEEpubid{0000--0000/00\$00.00~\copyright~2007 IEEE}
-% or like this to get the Computer Society new two part style.
-%\IEEEpubid{\makebox[\columnwidth]{\hfill 0000--0000/00/\$00.00~\copyright~2007 IEEE}%
-%\hspace{\columnsep}\makebox[\columnwidth]{Published by the IEEE Computer Society\hfill}}
-% Remember, if you use this you must call \IEEEpubidadjcol in the second
-% column for its text to clear the IEEEpubid mark (Computer Society jorunal
-% papers don't need this extra clearance.)
-
-
-
-% use for special paper notices
-%\IEEEspecialpapernotice{(Invited Paper)}
-
-
-
-% for Computer Society papers, we must declare the abstract and index terms
-% PRIOR to the title within the \IEEEcompsoctitleabstractindextext IEEEtran
-% command as these need to go into the title area created by \maketitle.
-\IEEEcompsoctitleabstractindextext{%
-\begin{abstract}
-%\boldmath
-The abstract goes here.
-\end{abstract}
-% IEEEtran.cls defaults to using nonbold math in the Abstract.
-% This preserves the distinction between vectors and scalars. However,
-% if the journal you are submitting to favors bold math in the abstract,
-% then you can use LaTeX's standard command \boldmath at the very start
-% of the abstract to achieve this. Many IEEE journals frown on math
-% in the abstract anyway. In particular, the Computer Society does
-% not want either math or citations to appear in the abstract.
-
-% Note that keywords are not normally used for peerreview papers.
-\begin{IEEEkeywords}
-Computer Society, IEEEtran, journal, \LaTeX, paper, template.
-\end{IEEEkeywords}}
-
-
-% make the title area
-\maketitle
-
-
-% To allow for easy dual compilation without having to reenter the
-% abstract/keywords data, the \IEEEcompsoctitleabstractindextext text will
-% not be used in maketitle, but will appear (i.e., to be "transported")
-% here as \IEEEdisplaynotcompsoctitleabstractindextext when compsoc mode
-% is not selected <OR> if conference mode is selected - because compsoc
-% conference papers position the abstract like regular (non-compsoc)
-% papers do!
-\IEEEdisplaynotcompsoctitleabstractindextext
-% \IEEEdisplaynotcompsoctitleabstractindextext has no effect when using
-% compsoc under a non-conference mode.
-
-
-% For peer review papers, you can put extra information on the cover
-% page as needed:
-% \ifCLASSOPTIONpeerreview
-% \begin{center} \bfseries EDICS Category: 3-BBND \end{center}
-% \fi
-%
-% For peerreview papers, this IEEEtran command inserts a page break and
-% creates the second title. It will be ignored for other modes.
-\IEEEpeerreviewmaketitle
-
-
-
-\section{Introduction}
-% Computer Society journal papers do something a tad strange with the very
-% first section heading (almost always called "Introduction"). They place it
-% ABOVE the main text! IEEEtran.cls currently does not do this for you.
-% However, You can achieve this effect by making LaTeX jump through some
-% hoops via something like:
-%
-%\ifCLASSOPTIONcompsoc
-% \noindent\raisebox{2\baselineskip}[0pt][0pt]%
-% {\parbox{\columnwidth}{\section{Introduction}\label{sec:introduction}%
-% \global\everypar=\everypar}}%
-% \vspace{-1\baselineskip}\vspace{-\parskip}\par
-%\else
-% \section{Introduction}\label{sec:introduction}\par
-%\fi
-%
-% Admittedly, this is a hack and may well be fragile, but seems to do the
-% trick for me. Note the need to keep any \label that may be used right
-% after \section in the above as the hack puts \section within a raised box.
-
-
-
-% The very first letter is a 2 line initial drop letter followed
-% by the rest of the first word in caps (small caps for compsoc).
-%
-% form to use if the first word consists of a single letter:
-% \IEEEPARstart{A}{demo} file is ....
-%
-% form to use if you need the single drop letter followed by
-% normal text (unknown if ever used by IEEE):
-% \IEEEPARstart{A}{}demo file is ....
-%
-% Some journals put the first two words in caps:
-% \IEEEPARstart{T}{his demo} file is ....
-%
-% Here we have the typical use of a "T" for an initial drop letter
-% and "HIS" in caps to complete the first word.
-\IEEEPARstart{T}{his} demo file is intended to serve as a ``starter file''
-for IEEE Computer Society journal papers produced under \LaTeX\ using
-IEEEtran.cls version 1.7 and later.
-% You must have at least 2 lines in the paragraph with the drop letter
-% (should never be an issue)
-I wish you the best of success.
-
-\hfill mds
-
-\hfill January 11, 2007
-
-\subsection{Subsection Heading Here}
-Subsection text here.
-
-% needed in second column of first page if using \IEEEpubid
-%\IEEEpubidadjcol
-
-\subsubsection{Subsubsection Heading Here}
-Subsubsection text here.
-
-
-% An example of a floating figure using the graphicx package.
-% Note that \label must occur AFTER (or within) \caption.
-% For figures, \caption should occur after the \includegraphics.
-% Note that IEEEtran v1.7 and later has special internal code that
-% is designed to preserve the operation of \label within \caption
-% even when the captionsoff option is in effect. However, because
-% of issues like this, it may be the safest practice to put all your
-% \label just after \caption rather than within \caption{}.
-%
-% Reminder: the "draftcls" or "draftclsnofoot", not "draft", class
-% option should be used if it is desired that the figures are to be
-% displayed while in draft mode.
-%
-%\begin{figure}[!t]
-%\centering
-%\includegraphics[width=2.5in]{myfigure}
-% where an .eps filename suffix will be assumed under latex,
-% and a .pdf suffix will be assumed for pdflatex; or what has been declared
-% via \DeclareGraphicsExtensions.
-%\caption{Simulation Results}
-%\label{fig_sim}
-%\end{figure}
-
-% Note that IEEE typically puts floats only at the top, even when this
-% results in a large percentage of a column being occupied by floats.
-% However, the Computer Society has been known to put floats at the bottom.
-
-
-% An example of a double column floating figure using two subfigures.
-% (The subfig.sty package must be loaded for this to work.)
-% The subfigure \label commands are set within each subfloat command, the
-% \label for the overall figure must come after \caption.
-% \hfil must be used as a separator to get equal spacing.
-% The subfigure.sty package works much the same way, except \subfigure is
-% used instead of \subfloat.
-%
-%\begin{figure*}[!t]
-%\centerline{\subfloat[Case I]\includegraphics[width=2.5in]{subfigcase1}%
-%\label{fig_first_case}}
-%\hfil
-%\subfloat[Case II]{\includegraphics[width=2.5in]{subfigcase2}%
-%\label{fig_second_case}}}
-%\caption{Simulation results}
-%\label{fig_sim}
-%\end{figure*}
-%
-% Note that often IEEE papers with subfigures do not employ subfigure
-% captions (using the optional argument to \subfloat), but instead will
-% reference/describe all of them (a), (b), etc., within the main caption.
-
-
-% An example of a floating table. Note that, for IEEE style tables, the
-% \caption command should come BEFORE the table. Table text will default to
-% \footnotesize as IEEE normally uses this smaller font for tables.
-% The \label must come after \caption as always.
-%
-%\begin{table}[!t]
-%% increase table row spacing, adjust to taste
-%\renewcommand{\arraystretch}{1.3}
-% if using array.sty, it might be a good idea to tweak the value of
-% \extrarowheight as needed to properly center the text within the cells
-%\caption{An Example of a Table}
-%\label{table_example}
-%\centering
-%% Some packages, such as MDW tools, offer better commands for making tables
-%% than the plain LaTeX2e tabular which is used here.
-%\begin{tabular}{|c||c|}
-%\hline
-%One & Two\\
-%\hline
-%Three & Four\\
-%\hline
-%\end{tabular}
-%\end{table}
-
-
-% Note that IEEE does not put floats in the very first column - or typically
-% anywhere on the first page for that matter. Also, in-text middle ("here")
-% positioning is not used. Most IEEE journals use top floats exclusively.
-% However, Computer Society journals sometimes do use bottom floats - bear
-% this in mind when choosing appropriate optional arguments for the
-% figure/table environments.
-% Note that, LaTeX2e, unlike IEEE journals, places footnotes above bottom
-% floats. This can be corrected via the \fnbelowfloat command of the
-% stfloats package.
-
-
-
-\section{Conclusion}
-The conclusion goes here.
-
-
-
-
-
-% if have a single appendix:
-%\appendix[Proof of the Zonklar Equations]
-% or
-%\appendix % for no appendix heading
-% do not use \section anymore after \appendix, only \section*
-% is possibly needed
-
-% use appendices with more than one appendix
-% then use \section to start each appendix
-% you must declare a \section before using any
-% \subsection or using \label (\appendices by itself
-% starts a section numbered zero.)
-%
-
-
-\appendices
-\section{Proof of the First Zonklar Equation}
-Appendix one text goes here.
-
-% you can choose not to have a title for an appendix
-% if you want by leaving the argument blank
-\section{}
-Appendix two text goes here.
-
-
-% use section* for acknowledgement
-\ifCLASSOPTIONcompsoc
- % The Computer Society usually uses the plural form
- \section*{Acknowledgments}
-\else
- % regular IEEE prefers the singular form
- \section*{Acknowledgment}
-\fi
-
-
-The authors would like to thank...
-
-
-% Can use something like this to put references on a page
-% by themselves when using endfloat and the captionsoff option.
-\ifCLASSOPTIONcaptionsoff
- \newpage
-\fi
-
-
-
-% trigger a \newpage just before the given reference
-% number - used to balance the columns on the last page
-% adjust value as needed - may need to be readjusted if
-% the document is modified later
-%\IEEEtriggeratref{8}
-% The "triggered" command can be changed if desired:
-%\IEEEtriggercmd{\enlargethispage{-5in}}
-
-% references section
-
-% can use a bibliography generated by BibTeX as a .bbl file
-% BibTeX documentation can be easily obtained at:
-% http://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/
-% The IEEEtran BibTeX style support page is at:
-% http://www.michaelshell.org/tex/ieeetran/bibtex/
-%\bibliographystyle{IEEEtran}
-% argument is your BibTeX string definitions and bibliography database(s)
-%\bibliography{IEEEabrv,../bib/paper}
-%
-% <OR> manually copy in the resultant .bbl file
-% set second argument of \begin to the number of references
-% (used to reserve space for the reference number labels box)
-\begin{thebibliography}{1}
-
-\bibitem{IEEEhowto:kopka}
-H.~Kopka and P.~W. Daly, \emph{A Guide to {\LaTeX}}, 3rd~ed.\hskip 1em plus
- 0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
-
-\end{thebibliography}
-
-% biography section
-%
-% If you have an EPS/PDF photo (graphicx package needed) extra braces are
-% needed around the contents of the optional argument to biography to prevent
-% the LaTeX parser from getting confused when it sees the complicated
-% \includegraphics command within an optional argument. (You could create
-% your own custom macro containing the \includegraphics command to make things
-% simpler here.)
-%\begin{biography}[{\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{mshell}}]{Michael Shell}
-% or if you just want to reserve a space for a photo:
-
-\begin{IEEEbiography}{Michael Shell}
-Biography text here.
-\end{IEEEbiography}
-
-% if you will not have a photo at all:
-\begin{IEEEbiographynophoto}{John Doe}
-Biography text here.
-\end{IEEEbiographynophoto}
-
-% insert where needed to balance the two columns on the last page with
-% biographies
-%\newpage
-
-\begin{IEEEbiographynophoto}{Jane Doe}
-Biography text here.
-\end{IEEEbiographynophoto}
-
-% You can push biographies down or up by placing
-% a \vfill before or after them. The appropriate
-% use of \vfill depends on what kind of text is
-% on the last page and whether or not the columns
-% are being equalized.
-
-%\vfill
-
-% Can be used to pull up biographies so that the bottom of the last one
-% is flush with the other column.
-%\enlargethispage{-5in}
-
-
-
-% that's all folks
-\end{document}
-
-
diff --git a/relazioni/wireless/bare_jrnl.tex b/relazioni/wireless/bare_jrnl.tex
deleted file mode 100644
index 09c2560..0000000
--- a/relazioni/wireless/bare_jrnl.tex
+++ /dev/null
@@ -1,745 +0,0 @@
-
-%% bare_jrnl.tex
-%% V1.3
-%% 2007/01/11
-%% by Michael Shell
-%% see http://www.michaelshell.org/
-%% for current contact information.
-%%
-%% This is a skeleton file demonstrating the use of IEEEtran.cls
-%% (requires IEEEtran.cls version 1.7 or later) with an IEEE journal paper.
-%%
-%% Support sites:
-%% http://www.michaelshell.org/tex/ieeetran/
-%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
-%% and
-%% http://www.ieee.org/
-
-
-
-% *** Authors should verify (and, if needed, correct) their LaTeX system ***
-% *** with the testflow diagnostic prior to trusting their LaTeX platform ***
-% *** with production work. IEEE's font choices can trigger bugs that do ***
-% *** not appear when using other class files. ***
-% The testflow support page is at:
-% http://www.michaelshell.org/tex/testflow/
-
-
-%%*************************************************************************
-%% Legal Notice:
-%% This code is offered as-is without any warranty either expressed or
-%% implied; without even the implied warranty of MERCHANTABILITY or
-%% FITNESS FOR A PARTICULAR PURPOSE!
-%% User assumes all risk.
-%% In no event shall IEEE or any contributor to this code be liable for
-%% any damages or losses, including, but not limited to, incidental,
-%% consequential, or any other damages, resulting from the use or misuse
-%% of any information contained here.
-%%
-%% All comments are the opinions of their respective authors and are not
-%% necessarily endorsed by the IEEE.
-%%
-%% This work is distributed under the LaTeX Project Public License (LPPL)
-%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
-%% distributed and modified. A copy of the LPPL, version 1.3, is included
-%% in the base LaTeX documentation of all distributions of LaTeX released
-%% 2003/12/01 or later.
-%% Retain all contribution notices and credits.
-%% ** Modified files should be clearly indicated as such, including **
-%% ** renaming them and changing author support contact information. **
-%%
-%% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex,
-%% bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex
-%%*************************************************************************
-
-% Note that the a4paper option is mainly intended so that authors in
-% countries using A4 can easily print to A4 and see how their papers will
-% look in print - the typesetting of the document will not typically be
-% affected with changes in paper size (but the bottom and side margins will).
-% Use the testflow package mentioned above to verify correct handling of
-% both paper sizes by the user's LaTeX system.
-%
-% Also note that the "draftcls" or "draftclsnofoot", not "draft", option
-% should be used if it is desired that the figures are to be displayed in
-% draft mode.
-%
-\documentclass[journal]{IEEEtran}
-%
-% If IEEEtran.cls has not been installed into the LaTeX system files,
-% manually specify the path to it like:
-% \documentclass[journal]{../sty/IEEEtran}
-
-
-
-
-
-% Some very useful LaTeX packages include:
-% (uncomment the ones you want to load)
-
-
-% *** MISC UTILITY PACKAGES ***
-%
-%\usepackage{ifpdf}
-% Heiko Oberdiek's ifpdf.sty is very useful if you need conditional
-% compilation based on whether the output is pdf or dvi.
-% usage:
-% \ifpdf
-% % pdf code
-% \else
-% % dvi code
-% \fi
-% The latest version of ifpdf.sty can be obtained from:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/
-% Also, note that IEEEtran.cls V1.7 and later provides a builtin
-% \ifCLASSINFOpdf conditional that works the same way.
-% When switching from latex to pdflatex and vice-versa, the compiler may
-% have to be run twice to clear warning/error messages.
-
-
-
-
-
-
-% *** CITATION PACKAGES ***
-%
-%\usepackage{cite}
-% cite.sty was written by Donald Arseneau
-% V1.6 and later of IEEEtran pre-defines the format of the cite.sty package
-% \cite{} output to follow that of IEEE. Loading the cite package will
-% result in citation numbers being automatically sorted and properly
-% "compressed/ranged". e.g., [1], [9], [2], [7], [5], [6] without using
-% cite.sty will become [1], [2], [5]--[7], [9] using cite.sty. cite.sty's
-% \cite will automatically add leading space, if needed. Use cite.sty's
-% noadjust option (cite.sty V3.8 and later) if you want to turn this off.
-% cite.sty is already installed on most LaTeX systems. Be sure and use
-% version 4.0 (2003-05-27) and later if using hyperref.sty. cite.sty does
-% not currently provide for hyperlinked citations.
-% The latest version can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/cite/
-% The documentation is contained in the cite.sty file itself.
-
-
-
-
-
-
-% *** GRAPHICS RELATED PACKAGES ***
-%
-\ifCLASSINFOpdf
- % \usepackage[pdftex]{graphicx}
- % declare the path(s) where your graphic files are
- % \graphicspath{{../pdf/}{../jpeg/}}
- % and their extensions so you won't have to specify these with
- % every instance of \includegraphics
- % \DeclareGraphicsExtensions{.pdf,.jpeg,.png}
-\else
- % or other class option (dvipsone, dvipdf, if not using dvips). graphicx
- % will default to the driver specified in the system graphics.cfg if no
- % driver is specified.
- % \usepackage[dvips]{graphicx}
- % declare the path(s) where your graphic files are
- % \graphicspath{{../eps/}}
- % and their extensions so you won't have to specify these with
- % every instance of \includegraphics
- % \DeclareGraphicsExtensions{.eps}
-\fi
-% graphicx was written by David Carlisle and Sebastian Rahtz. It is
-% required if you want graphics, photos, etc. graphicx.sty is already
-% installed on most LaTeX systems. The latest version and documentation can
-% be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/graphics/
-% Another good source of documentation is "Using Imported Graphics in
-% LaTeX2e" by Keith Reckdahl which can be found as epslatex.ps or
-% epslatex.pdf at: http://www.ctan.org/tex-archive/info/
-%
-% latex, and pdflatex in dvi mode, support graphics in encapsulated
-% postscript (.eps) format. pdflatex in pdf mode supports graphics
-% in .pdf, .jpeg, .png and .mps (metapost) formats. Users should ensure
-% that all non-photo figures use a vector format (.eps, .pdf, .mps) and
-% not a bitmapped formats (.jpeg, .png). IEEE frowns on bitmapped formats
-% which can result in "jaggedy"/blurry rendering of lines and letters as
-% well as large increases in file sizes.
-%
-% You can find documentation about the pdfTeX application at:
-% http://www.tug.org/applications/pdftex
-
-
-
-
-
-% *** MATH PACKAGES ***
-%
-%\usepackage[cmex10]{amsmath}
-% A popular package from the American Mathematical Society that provides
-% many useful and powerful commands for dealing with mathematics. If using
-% it, be sure to load this package with the cmex10 option to ensure that
-% only type 1 fonts will utilized at all point sizes. Without this option,
-% it is possible that some math symbols, particularly those within
-% footnotes, will be rendered in bitmap form which will result in a
-% document that can not be IEEE Xplore compliant!
-%
-% Also, note that the amsmath package sets \interdisplaylinepenalty to 10000
-% thus preventing page breaks from occurring within multiline equations. Use:
-%\interdisplaylinepenalty=2500
-% after loading amsmath to restore such page breaks as IEEEtran.cls normally
-% does. amsmath.sty is already installed on most LaTeX systems. The latest
-% version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/amslatex/math/
-
-
-
-
-
-% *** SPECIALIZED LIST PACKAGES ***
-%
-%\usepackage{algorithmic}
-% algorithmic.sty was written by Peter Williams and Rogerio Brito.
-% This package provides an algorithmic environment fo describing algorithms.
-% You can use the algorithmic environment in-text or within a figure
-% environment to provide for a floating algorithm. Do NOT use the algorithm
-% floating environment provided by algorithm.sty (by the same authors) or
-% algorithm2e.sty (by Christophe Fiorio) as IEEE does not use dedicated
-% algorithm float types and packages that provide these will not provide
-% correct IEEE style captions. The latest version and documentation of
-% algorithmic.sty can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithms/
-% There is also a support site at:
-% http://algorithms.berlios.de/index.html
-% Also of interest may be the (relatively newer and more customizable)
-% algorithmicx.sty package by Szasz Janos:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithmicx/
-
-
-
-
-% *** ALIGNMENT PACKAGES ***
-%
-%\usepackage{array}
-% Frank Mittelbach's and David Carlisle's array.sty patches and improves
-% the standard LaTeX2e array and tabular environments to provide better
-% appearance and additional user controls. As the default LaTeX2e table
-% generation code is lacking to the point of almost being broken with
-% respect to the quality of the end results, all users are strongly
-% advised to use an enhanced (at the very least that provided by array.sty)
-% set of table tools. array.sty is already installed on most systems. The
-% latest version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/tools/
-
-
-%\usepackage{mdwmath}
-%\usepackage{mdwtab}
-% Also highly recommended is Mark Wooding's extremely powerful MDW tools,
-% especially mdwmath.sty and mdwtab.sty which are used to format equations
-% and tables, respectively. The MDWtools set is already installed on most
-% LaTeX systems. The lastest version and documentation is available at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/mdwtools/
-
-
-% IEEEtran contains the IEEEeqnarray family of commands that can be used to
-% generate multiline equations as well as matrices, tables, etc., of high
-% quality.
-
-
-%\usepackage{eqparbox}
-% Also of notable interest is Scott Pakin's eqparbox package for creating
-% (automatically sized) equal width boxes - aka "natural width parboxes".
-% Available at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/eqparbox/
-
-
-
-
-
-% *** SUBFIGURE PACKAGES ***
-%\usepackage[tight,footnotesize]{subfigure}
-% subfigure.sty was written by Steven Douglas Cochran. This package makes it
-% easy to put subfigures in your figures. e.g., "Figure 1a and 1b". For IEEE
-% work, it is a good idea to load it with the tight package option to reduce
-% the amount of white space around the subfigures. subfigure.sty is already
-% installed on most LaTeX systems. The latest version and documentation can
-% be obtained at:
-% http://www.ctan.org/tex-archive/obsolete/macros/latex/contrib/subfigure/
-% subfigure.sty has been superceeded by subfig.sty.
-
-
-
-%\usepackage[caption=false]{caption}
-%\usepackage[font=footnotesize]{subfig}
-% subfig.sty, also written by Steven Douglas Cochran, is the modern
-% replacement for subfigure.sty. However, subfig.sty requires and
-% automatically loads Axel Sommerfeldt's caption.sty which will override
-% IEEEtran.cls handling of captions and this will result in nonIEEE style
-% figure/table captions. To prevent this problem, be sure and preload
-% caption.sty with its "caption=false" package option. This is will preserve
-% IEEEtran.cls handing of captions. Version 1.3 (2005/06/28) and later
-% (recommended due to many improvements over 1.2) of subfig.sty supports
-% the caption=false option directly:
-%\usepackage[caption=false,font=footnotesize]{subfig}
-%
-% The latest version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/
-% The latest version and documentation of caption.sty can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/caption/
-
-
-
-
-% *** FLOAT PACKAGES ***
-%
-%\usepackage{fixltx2e}
-% fixltx2e, the successor to the earlier fix2col.sty, was written by
-% Frank Mittelbach and David Carlisle. This package corrects a few problems
-% in the LaTeX2e kernel, the most notable of which is that in current
-% LaTeX2e releases, the ordering of single and double column floats is not
-% guaranteed to be preserved. Thus, an unpatched LaTeX2e can allow a
-% single column figure to be placed prior to an earlier double column
-% figure. The latest version and documentation can be found at:
-% http://www.ctan.org/tex-archive/macros/latex/base/
-
-
-
-%\usepackage{stfloats}
-% stfloats.sty was written by Sigitas Tolusis. This package gives LaTeX2e
-% the ability to do double column floats at the bottom of the page as well
-% as the top. (e.g., "\begin{figure*}[!b]" is not normally possible in
-% LaTeX2e). It also provides a command:
-%\fnbelowfloat
-% to enable the placement of footnotes below bottom floats (the standard
-% LaTeX2e kernel puts them above bottom floats). This is an invasive package
-% which rewrites many portions of the LaTeX2e float routines. It may not work
-% with other packages that modify the LaTeX2e float routines. The latest
-% version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/sttools/
-% Documentation is contained in the stfloats.sty comments as well as in the
-% presfull.pdf file. Do not use the stfloats baselinefloat ability as IEEE
-% does not allow \baselineskip to stretch. Authors submitting work to the
-% IEEE should note that IEEE rarely uses double column equations and
-% that authors should try to avoid such use. Do not be tempted to use the
-% cuted.sty or midfloat.sty packages (also by Sigitas Tolusis) as IEEE does
-% not format its papers in such ways.
-
-
-%\ifCLASSOPTIONcaptionsoff
-% \usepackage[nomarkers]{endfloat}
-% \let\MYoriglatexcaption\caption
-% \renewcommand{\caption}[2][\relax]{\MYoriglatexcaption[#2]{#2}}
-%\fi
-% endfloat.sty was written by James Darrell McCauley and Jeff Goldberg.
-% This package may be useful when used in conjunction with IEEEtran.cls'
-% captionsoff option. Some IEEE journals/societies require that submissions
-% have lists of figures/tables at the end of the paper and that
-% figures/tables without any captions are placed on a page by themselves at
-% the end of the document. If needed, the draftcls IEEEtran class option or
-% \CLASSINPUTbaselinestretch interface can be used to increase the line
-% spacing as well. Be sure and use the nomarkers option of endfloat to
-% prevent endfloat from "marking" where the figures would have been placed
-% in the text. The two hack lines of code above are a slight modification of
-% that suggested by in the endfloat docs (section 8.3.1) to ensure that
-% the full captions always appear in the list of figures/tables - even if
-% the user used the short optional argument of \caption[]{}.
-% IEEE papers do not typically make use of \caption[]'s optional argument,
-% so this should not be an issue. A similar trick can be used to disable
-% captions of packages such as subfig.sty that lack options to turn off
-% the subcaptions:
-% For subfig.sty:
-% \let\MYorigsubfloat\subfloat
-% \renewcommand{\subfloat}[2][\relax]{\MYorigsubfloat[]{#2}}
-% For subfigure.sty:
-% \let\MYorigsubfigure\subfigure
-% \renewcommand{\subfigure}[2][\relax]{\MYorigsubfigure[]{#2}}
-% However, the above trick will not work if both optional arguments of
-% the \subfloat/subfig command are used. Furthermore, there needs to be a
-% description of each subfigure *somewhere* and endfloat does not add
-% subfigure captions to its list of figures. Thus, the best approach is to
-% avoid the use of subfigure captions (many IEEE journals avoid them anyway)
-% and instead reference/explain all the subfigures within the main caption.
-% The latest version of endfloat.sty and its documentation can obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/endfloat/
-%
-% The IEEEtran \ifCLASSOPTIONcaptionsoff conditional can also be used
-% later in the document, say, to conditionally put the References on a
-% page by themselves.
-
-
-
-
-
-% *** PDF, URL AND HYPERLINK PACKAGES ***
-%
-%\usepackage{url}
-% url.sty was written by Donald Arseneau. It provides better support for
-% handling and breaking URLs. url.sty is already installed on most LaTeX
-% systems. The latest version can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/misc/
-% Read the url.sty source comments for usage information. Basically,
-% \url{my_url_here}.
-
-
-
-
-
-% *** Do not adjust lengths that control margins, column widths, etc. ***
-% *** Do not use packages that alter fonts (such as pslatex). ***
-% There should be no need to do such things with IEEEtran.cls V1.6 and later.
-% (Unless specifically asked to do so by the journal or conference you plan
-% to submit to, of course. )
-
-
-% correct bad hyphenation here
-\hyphenation{op-tical net-works semi-conduc-tor}
-
-
-\begin{document}
-%
-% paper title
-% can use linebreaks \\ within to get better formatting as desired
-\title{Bare Demo of IEEEtran.cls for Journals}
-%
-%
-% author names and IEEE memberships
-% note positions of commas and nonbreaking spaces ( ~ ) LaTeX will not break
-% a structure at a ~ so this keeps an author's name from being broken across
-% two lines.
-% use \thanks{} to gain access to the first footnote area
-% a separate \thanks must be used for each paragraph as LaTeX2e's \thanks
-% was not built to handle multiple paragraphs
-%
-
-\author{Michael~Shell,~\IEEEmembership{Member,~IEEE,}
- John~Doe,~\IEEEmembership{Fellow,~OSA,}
- and~Jane~Doe,~\IEEEmembership{Life~Fellow,~IEEE}% <-this % stops a space
-\thanks{M. Shell is with the Department
-of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta,
-GA, 30332 USA e-mail: (see http://www.michaelshell.org/contact.html).}% <-this % stops a space
-\thanks{J. Doe and J. Doe are with Anonymous University.}% <-this % stops a space
-\thanks{Manuscript received April 19, 2005; revised January 11, 2007.}}
-
-% note the % following the last \IEEEmembership and also \thanks -
-% these prevent an unwanted space from occurring between the last author name
-% and the end of the author line. i.e., if you had this:
-%
-% \author{....lastname \thanks{...} \thanks{...} }
-% ^------------^------------^----Do not want these spaces!
-%
-% a space would be appended to the last name and could cause every name on that
-% line to be shifted left slightly. This is one of those "LaTeX things". For
-% instance, "\textbf{A} \textbf{B}" will typeset as "A B" not "AB". To get
-% "AB" then you have to do: "\textbf{A}\textbf{B}"
-% \thanks is no different in this regard, so shield the last } of each \thanks
-% that ends a line with a % and do not let a space in before the next \thanks.
-% Spaces after \IEEEmembership other than the last one are OK (and needed) as
-% you are supposed to have spaces between the names. For what it is worth,
-% this is a minor point as most people would not even notice if the said evil
-% space somehow managed to creep in.
-
-
-
-% The paper headers
-\markboth{Journal of \LaTeX\ Class Files,~Vol.~6, No.~1, January~2007}%
-{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for Journals}
-% The only time the second header will appear is for the odd numbered pages
-% after the title page when using the twoside option.
-%
-% *** Note that you probably will NOT want to include the author's ***
-% *** name in the headers of peer review papers. ***
-% You can use \ifCLASSOPTIONpeerreview for conditional compilation here if
-% you desire.
-
-
-
-
-% If you want to put a publisher's ID mark on the page you can do it like
-% this:
-%\IEEEpubid{0000--0000/00\$00.00~\copyright~2007 IEEE}
-% Remember, if you use this you must call \IEEEpubidadjcol in the second
-% column for its text to clear the IEEEpubid mark.
-
-
-
-% use for special paper notices
-%\IEEEspecialpapernotice{(Invited Paper)}
-
-
-
-
-% make the title area
-\maketitle
-
-
-\begin{abstract}
-%\boldmath
-The abstract goes here.
-\end{abstract}
-% IEEEtran.cls defaults to using nonbold math in the Abstract.
-% This preserves the distinction between vectors and scalars. However,
-% if the journal you are submitting to favors bold math in the abstract,
-% then you can use LaTeX's standard command \boldmath at the very start
-% of the abstract to achieve this. Many IEEE journals frown on math
-% in the abstract anyway.
-
-% Note that keywords are not normally used for peerreview papers.
-\begin{IEEEkeywords}
-IEEEtran, journal, \LaTeX, paper, template.
-\end{IEEEkeywords}
-
-
-
-
-
-
-% For peer review papers, you can put extra information on the cover
-% page as needed:
-% \ifCLASSOPTIONpeerreview
-% \begin{center} \bfseries EDICS Category: 3-BBND \end{center}
-% \fi
-%
-% For peerreview papers, this IEEEtran command inserts a page break and
-% creates the second title. It will be ignored for other modes.
-\IEEEpeerreviewmaketitle
-
-
-
-\section{Introduction}
-% The very first letter is a 2 line initial drop letter followed
-% by the rest of the first word in caps.
-%
-% form to use if the first word consists of a single letter:
-% \IEEEPARstart{A}{demo} file is ....
-%
-% form to use if you need the single drop letter followed by
-% normal text (unknown if ever used by IEEE):
-% \IEEEPARstart{A}{}demo file is ....
-%
-% Some journals put the first two words in caps:
-% \IEEEPARstart{T}{his demo} file is ....
-%
-% Here we have the typical use of a "T" for an initial drop letter
-% and "HIS" in caps to complete the first word.
-\IEEEPARstart{T}{his} demo file is intended to serve as a ``starter file''
-for IEEE journal papers produced under \LaTeX\ using
-IEEEtran.cls version 1.7 and later.
-% You must have at least 2 lines in the paragraph with the drop letter
-% (should never be an issue)
-I wish you the best of success.
-
-\hfill mds
-
-\hfill January 11, 2007
-
-\subsection{Subsection Heading Here}
-Subsection text here.
-
-% needed in second column of first page if using \IEEEpubid
-%\IEEEpubidadjcol
-
-\subsubsection{Subsubsection Heading Here}
-Subsubsection text here.
-
-
-% An example of a floating figure using the graphicx package.
-% Note that \label must occur AFTER (or within) \caption.
-% For figures, \caption should occur after the \includegraphics.
-% Note that IEEEtran v1.7 and later has special internal code that
-% is designed to preserve the operation of \label within \caption
-% even when the captionsoff option is in effect. However, because
-% of issues like this, it may be the safest practice to put all your
-% \label just after \caption rather than within \caption{}.
-%
-% Reminder: the "draftcls" or "draftclsnofoot", not "draft", class
-% option should be used if it is desired that the figures are to be
-% displayed while in draft mode.
-%
-%\begin{figure}[!t]
-%\centering
-%\includegraphics[width=2.5in]{myfigure}
-% where an .eps filename suffix will be assumed under latex,
-% and a .pdf suffix will be assumed for pdflatex; or what has been declared
-% via \DeclareGraphicsExtensions.
-%\caption{Simulation Results}
-%\label{fig_sim}
-%\end{figure}
-
-% Note that IEEE typically puts floats only at the top, even when this
-% results in a large percentage of a column being occupied by floats.
-
-
-% An example of a double column floating figure using two subfigures.
-% (The subfig.sty package must be loaded for this to work.)
-% The subfigure \label commands are set within each subfloat command, the
-% \label for the overall figure must come after \caption.
-% \hfil must be used as a separator to get equal spacing.
-% The subfigure.sty package works much the same way, except \subfigure is
-% used instead of \subfloat.
-%
-%\begin{figure*}[!t]
-%\centerline{\subfloat[Case I]\includegraphics[width=2.5in]{subfigcase1}%
-%\label{fig_first_case}}
-%\hfil
-%\subfloat[Case II]{\includegraphics[width=2.5in]{subfigcase2}%
-%\label{fig_second_case}}}
-%\caption{Simulation results}
-%\label{fig_sim}
-%\end{figure*}
-%
-% Note that often IEEE papers with subfigures do not employ subfigure
-% captions (using the optional argument to \subfloat), but instead will
-% reference/describe all of them (a), (b), etc., within the main caption.
-
-
-% An example of a floating table. Note that, for IEEE style tables, the
-% \caption command should come BEFORE the table. Table text will default to
-% \footnotesize as IEEE normally uses this smaller font for tables.
-% The \label must come after \caption as always.
-%
-%\begin{table}[!t]
-%% increase table row spacing, adjust to taste
-%\renewcommand{\arraystretch}{1.3}
-% if using array.sty, it might be a good idea to tweak the value of
-% \extrarowheight as needed to properly center the text within the cells
-%\caption{An Example of a Table}
-%\label{table_example}
-%\centering
-%% Some packages, such as MDW tools, offer better commands for making tables
-%% than the plain LaTeX2e tabular which is used here.
-%\begin{tabular}{|c||c|}
-%\hline
-%One & Two\\
-%\hline
-%Three & Four\\
-%\hline
-%\end{tabular}
-%\end{table}
-
-
-% Note that IEEE does not put floats in the very first column - or typically
-% anywhere on the first page for that matter. Also, in-text middle ("here")
-% positioning is not used. Most IEEE journals use top floats exclusively.
-% Note that, LaTeX2e, unlike IEEE journals, places footnotes above bottom
-% floats. This can be corrected via the \fnbelowfloat command of the
-% stfloats package.
-
-
-
-\section{Conclusion}
-The conclusion goes here.
-
-
-
-
-
-% if have a single appendix:
-%\appendix[Proof of the Zonklar Equations]
-% or
-%\appendix % for no appendix heading
-% do not use \section anymore after \appendix, only \section*
-% is possibly needed
-
-% use appendices with more than one appendix
-% then use \section to start each appendix
-% you must declare a \section before using any
-% \subsection or using \label (\appendices by itself
-% starts a section numbered zero.)
-%
-
-
-\appendices
-\section{Proof of the First Zonklar Equation}
-Appendix one text goes here.
-
-% you can choose not to have a title for an appendix
-% if you want by leaving the argument blank
-\section{}
-Appendix two text goes here.
-
-
-% use section* for acknowledgement
-\section*{Acknowledgment}
-
-
-The authors would like to thank...
-
-
-% Can use something like this to put references on a page
-% by themselves when using endfloat and the captionsoff option.
-\ifCLASSOPTIONcaptionsoff
- \newpage
-\fi
-
-
-
-% trigger a \newpage just before the given reference
-% number - used to balance the columns on the last page
-% adjust value as needed - may need to be readjusted if
-% the document is modified later
-%\IEEEtriggeratref{8}
-% The "triggered" command can be changed if desired:
-%\IEEEtriggercmd{\enlargethispage{-5in}}
-
-% references section
-
-% can use a bibliography generated by BibTeX as a .bbl file
-% BibTeX documentation can be easily obtained at:
-% http://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/
-% The IEEEtran BibTeX style support page is at:
-% http://www.michaelshell.org/tex/ieeetran/bibtex/
-%\bibliographystyle{IEEEtran}
-% argument is your BibTeX string definitions and bibliography database(s)
-%\bibliography{IEEEabrv,../bib/paper}
-%
-% <OR> manually copy in the resultant .bbl file
-% set second argument of \begin to the number of references
-% (used to reserve space for the reference number labels box)
-\begin{thebibliography}{1}
-
-\bibitem{IEEEhowto:kopka}
-H.~Kopka and P.~W. Daly, \emph{A Guide to \LaTeX}, 3rd~ed.\hskip 1em plus
- 0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
-
-\end{thebibliography}
-
-% biography section
-%
-% If you have an EPS/PDF photo (graphicx package needed) extra braces are
-% needed around the contents of the optional argument to biography to prevent
-% the LaTeX parser from getting confused when it sees the complicated
-% \includegraphics command within an optional argument. (You could create
-% your own custom macro containing the \includegraphics command to make things
-% simpler here.)
-%\begin{biography}[{\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{mshell}}]{Michael Shell}
-% or if you just want to reserve a space for a photo:
-
-\begin{IEEEbiography}{Michael Shell}
-Biography text here.
-\end{IEEEbiography}
-
-% if you will not have a photo at all:
-\begin{IEEEbiographynophoto}{John Doe}
-Biography text here.
-\end{IEEEbiographynophoto}
-
-% insert where needed to balance the two columns on the last page with
-% biographies
-%\newpage
-
-\begin{IEEEbiographynophoto}{Jane Doe}
-Biography text here.
-\end{IEEEbiographynophoto}
-
-% You can push biographies down or up by placing
-% a \vfill before or after them. The appropriate
-% use of \vfill depends on what kind of text is
-% on the last page and whether or not the columns
-% are being equalized.
-
-%\vfill
-
-% Can be used to pull up biographies so that the bottom of the last one
-% is flush with the other column.
-%\enlargethispage{-5in}
-
-
-
-% that's all folks
-\end{document}
-
-
diff --git a/relazioni/wireless/bare_jrnl_compsoc.tex b/relazioni/wireless/bare_jrnl_compsoc.tex
deleted file mode 100644
index 8418862..0000000
--- a/relazioni/wireless/bare_jrnl_compsoc.tex
+++ /dev/null
@@ -1,844 +0,0 @@
-
-%% bare_jrnl_compsoc.tex
-%% V1.3
-%% 2007/01/11
-%% by Michael Shell
-%% See:
-%% http://www.michaelshell.org/
-%% for current contact information.
-%%
-%% This is a skeleton file demonstrating the use of IEEEtran.cls
-%% (requires IEEEtran.cls version 1.7 or later) with an IEEE Computer
-%% Society journal paper.
-%%
-%% Support sites:
-%% http://www.michaelshell.org/tex/ieeetran/
-%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
-%% and
-%% http://www.ieee.org/
-
-%%*************************************************************************
-%% Legal Notice:
-%% This code is offered as-is without any warranty either expressed or
-%% implied; without even the implied warranty of MERCHANTABILITY or
-%% FITNESS FOR A PARTICULAR PURPOSE!
-%% User assumes all risk.
-%% In no event shall IEEE or any contributor to this code be liable for
-%% any damages or losses, including, but not limited to, incidental,
-%% consequential, or any other damages, resulting from the use or misuse
-%% of any information contained here.
-%%
-%% All comments are the opinions of their respective authors and are not
-%% necessarily endorsed by the IEEE.
-%%
-%% This work is distributed under the LaTeX Project Public License (LPPL)
-%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
-%% distributed and modified. A copy of the LPPL, version 1.3, is included
-%% in the base LaTeX documentation of all distributions of LaTeX released
-%% 2003/12/01 or later.
-%% Retain all contribution notices and credits.
-%% ** Modified files should be clearly indicated as such, including **
-%% ** renaming them and changing author support contact information. **
-%%
-%% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex,
-%% bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex
-%%*************************************************************************
-
-% *** Authors should verify (and, if needed, correct) their LaTeX system ***
-% *** with the testflow diagnostic prior to trusting their LaTeX platform ***
-% *** with production work. IEEE's font choices can trigger bugs that do ***
-% *** not appear when using other class files. ***
-% The testflow support page is at:
-% http://www.michaelshell.org/tex/testflow/
-
-
-
-
-% Note that the a4paper option is mainly intended so that authors in
-% countries using A4 can easily print to A4 and see how their papers will
-% look in print - the typesetting of the document will not typically be
-% affected with changes in paper size (but the bottom and side margins will).
-% Use the testflow package mentioned above to verify correct handling of
-% both paper sizes by the user's LaTeX system.
-%
-% Also note that the "draftcls" or "draftclsnofoot", not "draft", option
-% should be used if it is desired that the figures are to be displayed in
-% draft mode.
-%
-% The Computer Society usually requires 12pt for submissions.
-%
-\documentclass[12pt,journal,compsoc]{IEEEtran}
-%
-% If IEEEtran.cls has not been installed into the LaTeX system files,
-% manually specify the path to it like:
-% \documentclass[12pt,journal,compsoc]{../sty/IEEEtran}
-
-
-
-
-
-% Some very useful LaTeX packages include:
-% (uncomment the ones you want to load)
-
-
-% *** MISC UTILITY PACKAGES ***
-%
-%\usepackage{ifpdf}
-% Heiko Oberdiek's ifpdf.sty is very useful if you need conditional
-% compilation based on whether the output is pdf or dvi.
-% usage:
-% \ifpdf
-% % pdf code
-% \else
-% % dvi code
-% \fi
-% The latest version of ifpdf.sty can be obtained from:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/
-% Also, note that IEEEtran.cls V1.7 and later provides a builtin
-% \ifCLASSINFOpdf conditional that works the same way.
-% When switching from latex to pdflatex and vice-versa, the compiler may
-% have to be run twice to clear warning/error messages.
-
-
-
-
-
-
-% *** CITATION PACKAGES ***
-%
-\ifCLASSOPTIONcompsoc
- % IEEE Computer Society needs nocompress option
- % requires cite.sty v4.0 or later (November 2003)
- % \usepackage[nocompress]{cite}
-\else
- % normal IEEE
- % \usepackage{cite}
-\fi
-% cite.sty was written by Donald Arseneau
-% V1.6 and later of IEEEtran pre-defines the format of the cite.sty package
-% \cite{} output to follow that of IEEE. Loading the cite package will
-% result in citation numbers being automatically sorted and properly
-% "compressed/ranged". e.g., [1], [9], [2], [7], [5], [6] without using
-% cite.sty will become [1], [2], [5]--[7], [9] using cite.sty. cite.sty's
-% \cite will automatically add leading space, if needed. Use cite.sty's
-% noadjust option (cite.sty V3.8 and later) if you want to turn this off.
-% cite.sty is already installed on most LaTeX systems. Be sure and use
-% version 4.0 (2003-05-27) and later if using hyperref.sty. cite.sty does
-% not currently provide for hyperlinked citations.
-% The latest version can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/cite/
-% The documentation is contained in the cite.sty file itself.
-%
-% Note that some packages require special options to format as the Computer
-% Society requires. In particular, Computer Society papers do not use
-% compressed citation ranges as is done in typical IEEE papers
-% (e.g., [1]-[4]). Instead, they list every citation separately in order
-% (e.g., [1], [2], [3], [4]). To get the latter we need to load the cite
-% package with the nocompress option which is supported by cite.sty v4.0
-% and later. Note also the use of a CLASSOPTION conditional provided by
-% IEEEtran.cls V1.7 and later.
-
-
-
-
-
-% *** GRAPHICS RELATED PACKAGES ***
-%
-\ifCLASSINFOpdf
- % \usepackage[pdftex]{graphicx}
- % declare the path(s) where your graphic files are
- % \graphicspath{{../pdf/}{../jpeg/}}
- % and their extensions so you won't have to specify these with
- % every instance of \includegraphics
- % \DeclareGraphicsExtensions{.pdf,.jpeg,.png}
-\else
- % or other class option (dvipsone, dvipdf, if not using dvips). graphicx
- % will default to the driver specified in the system graphics.cfg if no
- % driver is specified.
- % \usepackage[dvips]{graphicx}
- % declare the path(s) where your graphic files are
- % \graphicspath{{../eps/}}
- % and their extensions so you won't have to specify these with
- % every instance of \includegraphics
- % \DeclareGraphicsExtensions{.eps}
-\fi
-% graphicx was written by David Carlisle and Sebastian Rahtz. It is
-% required if you want graphics, photos, etc. graphicx.sty is already
-% installed on most LaTeX systems. The latest version and documentation can
-% be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/graphics/
-% Another good source of documentation is "Using Imported Graphics in
-% LaTeX2e" by Keith Reckdahl which can be found as epslatex.ps or
-% epslatex.pdf at: http://www.ctan.org/tex-archive/info/
-%
-% latex, and pdflatex in dvi mode, support graphics in encapsulated
-% postscript (.eps) format. pdflatex in pdf mode supports graphics
-% in .pdf, .jpeg, .png and .mps (metapost) formats. Users should ensure
-% that all non-photo figures use a vector format (.eps, .pdf, .mps) and
-% not a bitmapped formats (.jpeg, .png). IEEE frowns on bitmapped formats
-% which can result in "jaggedy"/blurry rendering of lines and letters as
-% well as large increases in file sizes.
-%
-% You can find documentation about the pdfTeX application at:
-% http://www.tug.org/applications/pdftex
-
-
-
-
-
-% *** MATH PACKAGES ***
-%
-%\usepackage[cmex10]{amsmath}
-% A popular package from the American Mathematical Society that provides
-% many useful and powerful commands for dealing with mathematics. If using
-% it, be sure to load this package with the cmex10 option to ensure that
-% only type 1 fonts will utilized at all point sizes. Without this option,
-% it is possible that some math symbols, particularly those within
-% footnotes, will be rendered in bitmap form which will result in a
-% document that can not be IEEE Xplore compliant!
-%
-% Also, note that the amsmath package sets \interdisplaylinepenalty to 10000
-% thus preventing page breaks from occurring within multiline equations. Use:
-%\interdisplaylinepenalty=2500
-% after loading amsmath to restore such page breaks as IEEEtran.cls normally
-% does. amsmath.sty is already installed on most LaTeX systems. The latest
-% version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/amslatex/math/
-
-
-
-
-
-% *** SPECIALIZED LIST PACKAGES ***
-%
-%\usepackage{algorithmic}
-% algorithmic.sty was written by Peter Williams and Rogerio Brito.
-% This package provides an algorithmic environment fo describing algorithms.
-% You can use the algorithmic environment in-text or within a figure
-% environment to provide for a floating algorithm. Do NOT use the algorithm
-% floating environment provided by algorithm.sty (by the same authors) or
-% algorithm2e.sty (by Christophe Fiorio) as IEEE does not use dedicated
-% algorithm float types and packages that provide these will not provide
-% correct IEEE style captions. The latest version and documentation of
-% algorithmic.sty can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithms/
-% There is also a support site at:
-% http://algorithms.berlios.de/index.html
-% Also of interest may be the (relatively newer and more customizable)
-% algorithmicx.sty package by Szasz Janos:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithmicx/
-
-
-
-
-% *** ALIGNMENT PACKAGES ***
-%
-%\usepackage{array}
-% Frank Mittelbach's and David Carlisle's array.sty patches and improves
-% the standard LaTeX2e array and tabular environments to provide better
-% appearance and additional user controls. As the default LaTeX2e table
-% generation code is lacking to the point of almost being broken with
-% respect to the quality of the end results, all users are strongly
-% advised to use an enhanced (at the very least that provided by array.sty)
-% set of table tools. array.sty is already installed on most systems. The
-% latest version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/required/tools/
-
-
-%\usepackage{mdwmath}
-%\usepackage{mdwtab}
-% Also highly recommended is Mark Wooding's extremely powerful MDW tools,
-% especially mdwmath.sty and mdwtab.sty which are used to format equations
-% and tables, respectively. The MDWtools set is already installed on most
-% LaTeX systems. The lastest version and documentation is available at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/mdwtools/
-
-
-% IEEEtran contains the IEEEeqnarray family of commands that can be used to
-% generate multiline equations as well as matrices, tables, etc., of high
-% quality.
-
-
-%\usepackage{eqparbox}
-% Also of notable interest is Scott Pakin's eqparbox package for creating
-% (automatically sized) equal width boxes - aka "natural width parboxes".
-% Available at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/eqparbox/
-
-
-
-
-
-% *** SUBFIGURE PACKAGES ***
-%\ifCLASSOPTIONcompsoc
-%\usepackage[tight,normalsize,sf,SF]{subfigure}
-%\else
-%\usepackage[tight,footnotesize]{subfigure}
-%\fi
-% subfigure.sty was written by Steven Douglas Cochran. This package makes it
-% easy to put subfigures in your figures. e.g., "Figure 1a and 1b". For IEEE
-% work, it is a good idea to load it with the tight package option to reduce
-% the amount of white space around the subfigures. Computer Society papers
-% use a larger font and \sffamily font for their captions, hence the
-% additional options needed under compsoc mode. subfigure.sty is already
-% installed on most LaTeX systems. The latest version and documentation can
-% be obtained at:
-% http://www.ctan.org/tex-archive/obsolete/macros/latex/contrib/subfigure/
-% subfigure.sty has been superceeded by subfig.sty.
-
-
-%\ifCLASSOPTIONcompsoc
-% \usepackage[caption=false]{caption}
-% \usepackage[font=normalsize,labelfont=sf,textfont=sf]{subfig}
-%\else
-% \usepackage[caption=false]{caption}
-% \usepackage[font=footnotesize]{subfig}
-%\fi
-% subfig.sty, also written by Steven Douglas Cochran, is the modern
-% replacement for subfigure.sty. However, subfig.sty requires and
-% automatically loads Axel Sommerfeldt's caption.sty which will override
-% IEEEtran.cls handling of captions and this will result in nonIEEE style
-% figure/table captions. To prevent this problem, be sure and preload
-% caption.sty with its "caption=false" package option. This is will preserve
-% IEEEtran.cls handing of captions. Version 1.3 (2005/06/28) and later
-% (recommended due to many improvements over 1.2) of subfig.sty supports
-% the caption=false option directly:
-%\ifCLASSOPTIONcompsoc
-% \usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig}
-%\else
-% \usepackage[caption=false,font=footnotesize]{subfig}
-%\fi
-%
-% The latest version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/
-% The latest version and documentation of caption.sty can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/caption/
-
-
-
-
-% *** FLOAT PACKAGES ***
-%
-%\usepackage{fixltx2e}
-% fixltx2e, the successor to the earlier fix2col.sty, was written by
-% Frank Mittelbach and David Carlisle. This package corrects a few problems
-% in the LaTeX2e kernel, the most notable of which is that in current
-% LaTeX2e releases, the ordering of single and double column floats is not
-% guaranteed to be preserved. Thus, an unpatched LaTeX2e can allow a
-% single column figure to be placed prior to an earlier double column
-% figure. The latest version and documentation can be found at:
-% http://www.ctan.org/tex-archive/macros/latex/base/
-
-
-
-%\usepackage{stfloats}
-% stfloats.sty was written by Sigitas Tolusis. This package gives LaTeX2e
-% the ability to do double column floats at the bottom of the page as well
-% as the top. (e.g., "\begin{figure*}[!b]" is not normally possible in
-% LaTeX2e). It also provides a command:
-%\fnbelowfloat
-% to enable the placement of footnotes below bottom floats (the standard
-% LaTeX2e kernel puts them above bottom floats). This is an invasive package
-% which rewrites many portions of the LaTeX2e float routines. It may not work
-% with other packages that modify the LaTeX2e float routines. The latest
-% version and documentation can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/sttools/
-% Documentation is contained in the stfloats.sty comments as well as in the
-% presfull.pdf file. Do not use the stfloats baselinefloat ability as IEEE
-% does not allow \baselineskip to stretch. Authors submitting work to the
-% IEEE should note that IEEE rarely uses double column equations and
-% that authors should try to avoid such use. Do not be tempted to use the
-% cuted.sty or midfloat.sty packages (also by Sigitas Tolusis) as IEEE does
-% not format its papers in such ways.
-
-
-
-
-%\ifCLASSOPTIONcaptionsoff
-% \usepackage[nomarkers]{endfloat}
-% \let\MYoriglatexcaption\caption
-% \renewcommand{\caption}[2][\relax]{\MYoriglatexcaption[#2]{#2}}
-%\fi
-% endfloat.sty was written by James Darrell McCauley and Jeff Goldberg.
-% This package may be useful when used in conjunction with IEEEtran.cls'
-% captionsoff option. Some IEEE journals/societies require that submissions
-% have lists of figures/tables at the end of the paper and that
-% figures/tables without any captions are placed on a page by themselves at
-% the end of the document. If needed, the draftcls IEEEtran class option or
-% \CLASSINPUTbaselinestretch interface can be used to increase the line
-% spacing as well. Be sure and use the nomarkers option of endfloat to
-% prevent endfloat from "marking" where the figures would have been placed
-% in the text. The two hack lines of code above are a slight modification of
-% that suggested by in the endfloat docs (section 8.3.1) to ensure that
-% the full captions always appear in the list of figures/tables - even if
-% the user used the short optional argument of \caption[]{}.
-% IEEE papers do not typically make use of \caption[]'s optional argument,
-% so this should not be an issue. A similar trick can be used to disable
-% captions of packages such as subfig.sty that lack options to turn off
-% the subcaptions:
-% For subfig.sty:
-% \let\MYorigsubfloat\subfloat
-% \renewcommand{\subfloat}[2][\relax]{\MYorigsubfloat[]{#2}}
-% For subfigure.sty:
-% \let\MYorigsubfigure\subfigure
-% \renewcommand{\subfigure}[2][\relax]{\MYorigsubfigure[]{#2}}
-% However, the above trick will not work if both optional arguments of
-% the \subfloat/subfig command are used. Furthermore, there needs to be a
-% description of each subfigure *somewhere* and endfloat does not add
-% subfigure captions to its list of figures. Thus, the best approach is to
-% avoid the use of subfigure captions (many IEEE journals avoid them anyway)
-% and instead reference/explain all the subfigures within the main caption.
-% The latest version of endfloat.sty and its documentation can obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/endfloat/
-%
-% The IEEEtran \ifCLASSOPTIONcaptionsoff conditional can also be used
-% later in the document, say, to conditionally put the References on a
-% page by themselves.
-
-
-
-
-% *** PDF, URL AND HYPERLINK PACKAGES ***
-%
-%\usepackage{url}
-% url.sty was written by Donald Arseneau. It provides better support for
-% handling and breaking URLs. url.sty is already installed on most LaTeX
-% systems. The latest version can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/misc/
-% Read the url.sty source comments for usage information. Basically,
-% \url{my_url_here}.
-
-
-
-
-
-% *** Do not adjust lengths that control margins, column widths, etc. ***
-% *** Do not use packages that alter fonts (such as pslatex). ***
-% There should be no need to do such things with IEEEtran.cls V1.6 and later.
-% (Unless specifically asked to do so by the journal or conference you plan
-% to submit to, of course. )
-
-
-% correct bad hyphenation here
-\hyphenation{op-tical net-works semi-conduc-tor}
-
-
-\begin{document}
-%
-% paper title
-% can use linebreaks \\ within to get better formatting as desired
-\title{Bare Demo of IEEEtran.cls\\ for Computer Society Journals}
-%
-%
-% author names and IEEE memberships
-% note positions of commas and nonbreaking spaces ( ~ ) LaTeX will not break
-% a structure at a ~ so this keeps an author's name from being broken across
-% two lines.
-% use \thanks{} to gain access to the first footnote area
-% a separate \thanks must be used for each paragraph as LaTeX2e's \thanks
-% was not built to handle multiple paragraphs
-%
-%
-%\IEEEcompsocitemizethanks is a special \thanks that produces the bulleted
-% lists the Computer Society journals use for "first footnote" author
-% affiliations. Use \IEEEcompsocthanksitem which works much like \item
-% for each affiliation group. When not in compsoc mode,
-% \IEEEcompsocitemizethanks becomes like \thanks and
-% \IEEEcompsocthanksitem becomes a line break with idention. This
-% facilitates dual compilation, although admittedly the differences in the
-% desired content of \author between the different types of papers makes a
-% one-size-fits-all approach a daunting prospect. For instance, compsoc
-% journal papers have the author affiliations above the "Manuscript
-% received ..." text while in non-compsoc journals this is reversed. Sigh.
-
-\author{Michael~Shell,~\IEEEmembership{Member,~IEEE,}
- John~Doe,~\IEEEmembership{Fellow,~OSA,}
- and~Jane~Doe,~\IEEEmembership{Life~Fellow,~IEEE}% <-this % stops a space
-\IEEEcompsocitemizethanks{\IEEEcompsocthanksitem M. Shell is with the Department
-of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta,
-GA, 30332.\protect\\
-% note need leading \protect in front of \\ to get a newline within \thanks as
-% \\ is fragile and will error, could use \hfil\break instead.
-E-mail: see http://www.michaelshell.org/contact.html
-\IEEEcompsocthanksitem J. Doe and J. Doe are with Anonymous University.}% <-this % stops a space
-\thanks{Manuscript received April 19, 2005; revised January 11, 2007.}}
-
-% note the % following the last \IEEEmembership and also \thanks -
-% these prevent an unwanted space from occurring between the last author name
-% and the end of the author line. i.e., if you had this:
-%
-% \author{....lastname \thanks{...} \thanks{...} }
-% ^------------^------------^----Do not want these spaces!
-%
-% a space would be appended to the last name and could cause every name on that
-% line to be shifted left slightly. This is one of those "LaTeX things". For
-% instance, "\textbf{A} \textbf{B}" will typeset as "A B" not "AB". To get
-% "AB" then you have to do: "\textbf{A}\textbf{B}"
-% \thanks is no different in this regard, so shield the last } of each \thanks
-% that ends a line with a % and do not let a space in before the next \thanks.
-% Spaces after \IEEEmembership other than the last one are OK (and needed) as
-% you are supposed to have spaces between the names. For what it is worth,
-% this is a minor point as most people would not even notice if the said evil
-% space somehow managed to creep in.
-
-
-
-% The paper headers
-\markboth{Journal of \LaTeX\ Class Files,~Vol.~6, No.~1, January~2007}%
-{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for Computer Society Journals}
-% The only time the second header will appear is for the odd numbered pages
-% after the title page when using the twoside option.
-%
-% *** Note that you probably will NOT want to include the author's ***
-% *** name in the headers of peer review papers. ***
-% You can use \ifCLASSOPTIONpeerreview for conditional compilation here if
-% you desire.
-
-
-
-% The publisher's ID mark at the bottom of the page is less important with
-% Computer Society journal papers as those publications place the marks
-% outside of the main text columns and, therefore, unlike regular IEEE
-% journals, the available text space is not reduced by their presence.
-% If you want to put a publisher's ID mark on the page you can do it like
-% this:
-%\IEEEpubid{0000--0000/00\$00.00~\copyright~2007 IEEE}
-% or like this to get the Computer Society new two part style.
-%\IEEEpubid{\makebox[\columnwidth]{\hfill 0000--0000/00/\$00.00~\copyright~2007 IEEE}%
-%\hspace{\columnsep}\makebox[\columnwidth]{Published by the IEEE Computer Society\hfill}}
-% Remember, if you use this you must call \IEEEpubidadjcol in the second
-% column for its text to clear the IEEEpubid mark (Computer Society jorunal
-% papers don't need this extra clearance.)
-
-
-
-% use for special paper notices
-%\IEEEspecialpapernotice{(Invited Paper)}
-
-
-
-% for Computer Society papers, we must declare the abstract and index terms
-% PRIOR to the title within the \IEEEcompsoctitleabstractindextext IEEEtran
-% command as these need to go into the title area created by \maketitle.
-\IEEEcompsoctitleabstractindextext{%
-\begin{abstract}
-%\boldmath
-The abstract goes here.
-\end{abstract}
-% IEEEtran.cls defaults to using nonbold math in the Abstract.
-% This preserves the distinction between vectors and scalars. However,
-% if the journal you are submitting to favors bold math in the abstract,
-% then you can use LaTeX's standard command \boldmath at the very start
-% of the abstract to achieve this. Many IEEE journals frown on math
-% in the abstract anyway. In particular, the Computer Society does
-% not want either math or citations to appear in the abstract.
-
-% Note that keywords are not normally used for peerreview papers.
-\begin{IEEEkeywords}
-Computer Society, IEEEtran, journal, \LaTeX, paper, template.
-\end{IEEEkeywords}}
-
-
-% make the title area
-\maketitle
-
-
-% To allow for easy dual compilation without having to reenter the
-% abstract/keywords data, the \IEEEcompsoctitleabstractindextext text will
-% not be used in maketitle, but will appear (i.e., to be "transported")
-% here as \IEEEdisplaynotcompsoctitleabstractindextext when compsoc mode
-% is not selected <OR> if conference mode is selected - because compsoc
-% conference papers position the abstract like regular (non-compsoc)
-% papers do!
-\IEEEdisplaynotcompsoctitleabstractindextext
-% \IEEEdisplaynotcompsoctitleabstractindextext has no effect when using
-% compsoc under a non-conference mode.
-
-
-% For peer review papers, you can put extra information on the cover
-% page as needed:
-% \ifCLASSOPTIONpeerreview
-% \begin{center} \bfseries EDICS Category: 3-BBND \end{center}
-% \fi
-%
-% For peerreview papers, this IEEEtran command inserts a page break and
-% creates the second title. It will be ignored for other modes.
-\IEEEpeerreviewmaketitle
-
-
-
-\section{Introduction}
-% Computer Society journal papers do something a tad strange with the very
-% first section heading (almost always called "Introduction"). They place it
-% ABOVE the main text! IEEEtran.cls currently does not do this for you.
-% However, You can achieve this effect by making LaTeX jump through some
-% hoops via something like:
-%
-%\ifCLASSOPTIONcompsoc
-% \noindent\raisebox{2\baselineskip}[0pt][0pt]%
-% {\parbox{\columnwidth}{\section{Introduction}\label{sec:introduction}%
-% \global\everypar=\everypar}}%
-% \vspace{-1\baselineskip}\vspace{-\parskip}\par
-%\else
-% \section{Introduction}\label{sec:introduction}\par
-%\fi
-%
-% Admittedly, this is a hack and may well be fragile, but seems to do the
-% trick for me. Note the need to keep any \label that may be used right
-% after \section in the above as the hack puts \section within a raised box.
-
-
-
-% The very first letter is a 2 line initial drop letter followed
-% by the rest of the first word in caps (small caps for compsoc).
-%
-% form to use if the first word consists of a single letter:
-% \IEEEPARstart{A}{demo} file is ....
-%
-% form to use if you need the single drop letter followed by
-% normal text (unknown if ever used by IEEE):
-% \IEEEPARstart{A}{}demo file is ....
-%
-% Some journals put the first two words in caps:
-% \IEEEPARstart{T}{his demo} file is ....
-%
-% Here we have the typical use of a "T" for an initial drop letter
-% and "HIS" in caps to complete the first word.
-\IEEEPARstart{T}{his} demo file is intended to serve as a ``starter file''
-for IEEE Computer Society journal papers produced under \LaTeX\ using
-IEEEtran.cls version 1.7 and later.
-% You must have at least 2 lines in the paragraph with the drop letter
-% (should never be an issue)
-I wish you the best of success.
-
-\hfill mds
-
-\hfill January 11, 2007
-
-\subsection{Subsection Heading Here}
-Subsection text here.
-
-% needed in second column of first page if using \IEEEpubid
-%\IEEEpubidadjcol
-
-\subsubsection{Subsubsection Heading Here}
-Subsubsection text here.
-
-
-% An example of a floating figure using the graphicx package.
-% Note that \label must occur AFTER (or within) \caption.
-% For figures, \caption should occur after the \includegraphics.
-% Note that IEEEtran v1.7 and later has special internal code that
-% is designed to preserve the operation of \label within \caption
-% even when the captionsoff option is in effect. However, because
-% of issues like this, it may be the safest practice to put all your
-% \label just after \caption rather than within \caption{}.
-%
-% Reminder: the "draftcls" or "draftclsnofoot", not "draft", class
-% option should be used if it is desired that the figures are to be
-% displayed while in draft mode.
-%
-%\begin{figure}[!t]
-%\centering
-%\includegraphics[width=2.5in]{myfigure}
-% where an .eps filename suffix will be assumed under latex,
-% and a .pdf suffix will be assumed for pdflatex; or what has been declared
-% via \DeclareGraphicsExtensions.
-%\caption{Simulation Results}
-%\label{fig_sim}
-%\end{figure}
-
-% Note that IEEE typically puts floats only at the top, even when this
-% results in a large percentage of a column being occupied by floats.
-% However, the Computer Society has been known to put floats at the bottom.
-
-
-% An example of a double column floating figure using two subfigures.
-% (The subfig.sty package must be loaded for this to work.)
-% The subfigure \label commands are set within each subfloat command, the
-% \label for the overall figure must come after \caption.
-% \hfil must be used as a separator to get equal spacing.
-% The subfigure.sty package works much the same way, except \subfigure is
-% used instead of \subfloat.
-%
-%\begin{figure*}[!t]
-%\centerline{\subfloat[Case I]\includegraphics[width=2.5in]{subfigcase1}%
-%\label{fig_first_case}}
-%\hfil
-%\subfloat[Case II]{\includegraphics[width=2.5in]{subfigcase2}%
-%\label{fig_second_case}}}
-%\caption{Simulation results}
-%\label{fig_sim}
-%\end{figure*}
-%
-% Note that often IEEE papers with subfigures do not employ subfigure
-% captions (using the optional argument to \subfloat), but instead will
-% reference/describe all of them (a), (b), etc., within the main caption.
-
-
-% An example of a floating table. Note that, for IEEE style tables, the
-% \caption command should come BEFORE the table. Table text will default to
-% \footnotesize as IEEE normally uses this smaller font for tables.
-% The \label must come after \caption as always.
-%
-%\begin{table}[!t]
-%% increase table row spacing, adjust to taste
-%\renewcommand{\arraystretch}{1.3}
-% if using array.sty, it might be a good idea to tweak the value of
-% \extrarowheight as needed to properly center the text within the cells
-%\caption{An Example of a Table}
-%\label{table_example}
-%\centering
-%% Some packages, such as MDW tools, offer better commands for making tables
-%% than the plain LaTeX2e tabular which is used here.
-%\begin{tabular}{|c||c|}
-%\hline
-%One & Two\\
-%\hline
-%Three & Four\\
-%\hline
-%\end{tabular}
-%\end{table}
-
-
-% Note that IEEE does not put floats in the very first column - or typically
-% anywhere on the first page for that matter. Also, in-text middle ("here")
-% positioning is not used. Most IEEE journals use top floats exclusively.
-% However, Computer Society journals sometimes do use bottom floats - bear
-% this in mind when choosing appropriate optional arguments for the
-% figure/table environments.
-% Note that, LaTeX2e, unlike IEEE journals, places footnotes above bottom
-% floats. This can be corrected via the \fnbelowfloat command of the
-% stfloats package.
-
-
-
-\section{Conclusion}
-The conclusion goes here.
-
-
-
-
-
-% if have a single appendix:
-%\appendix[Proof of the Zonklar Equations]
-% or
-%\appendix % for no appendix heading
-% do not use \section anymore after \appendix, only \section*
-% is possibly needed
-
-% use appendices with more than one appendix
-% then use \section to start each appendix
-% you must declare a \section before using any
-% \subsection or using \label (\appendices by itself
-% starts a section numbered zero.)
-%
-
-
-\appendices
-\section{Proof of the First Zonklar Equation}
-Appendix one text goes here.
-
-% you can choose not to have a title for an appendix
-% if you want by leaving the argument blank
-\section{}
-Appendix two text goes here.
-
-
-% use section* for acknowledgement
-\ifCLASSOPTIONcompsoc
- % The Computer Society usually uses the plural form
- \section*{Acknowledgments}
-\else
- % regular IEEE prefers the singular form
- \section*{Acknowledgment}
-\fi
-
-
-The authors would like to thank...
-
-
-% Can use something like this to put references on a page
-% by themselves when using endfloat and the captionsoff option.
-\ifCLASSOPTIONcaptionsoff
- \newpage
-\fi
-
-
-
-% trigger a \newpage just before the given reference
-% number - used to balance the columns on the last page
-% adjust value as needed - may need to be readjusted if
-% the document is modified later
-%\IEEEtriggeratref{8}
-% The "triggered" command can be changed if desired:
-%\IEEEtriggercmd{\enlargethispage{-5in}}
-
-% references section
-
-% can use a bibliography generated by BibTeX as a .bbl file
-% BibTeX documentation can be easily obtained at:
-% http://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/
-% The IEEEtran BibTeX style support page is at:
-% http://www.michaelshell.org/tex/ieeetran/bibtex/
-%\bibliographystyle{IEEEtran}
-% argument is your BibTeX string definitions and bibliography database(s)
-%\bibliography{IEEEabrv,../bib/paper}
-%
-% <OR> manually copy in the resultant .bbl file
-% set second argument of \begin to the number of references
-% (used to reserve space for the reference number labels box)
-\begin{thebibliography}{1}
-
-\bibitem{IEEEhowto:kopka}
-H.~Kopka and P.~W. Daly, \emph{A Guide to \LaTeX}, 3rd~ed.\hskip 1em plus
- 0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
-
-\end{thebibliography}
-
-% biography section
-%
-% If you have an EPS/PDF photo (graphicx package needed) extra braces are
-% needed around the contents of the optional argument to biography to prevent
-% the LaTeX parser from getting confused when it sees the complicated
-% \includegraphics command within an optional argument. (You could create
-% your own custom macro containing the \includegraphics command to make things
-% simpler here.)
-%\begin{biography}[{\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{mshell}}]{Michael Shell}
-% or if you just want to reserve a space for a photo:
-
-\begin{IEEEbiography}{Michael Shell}
-Biography text here.
-\end{IEEEbiography}
-
-% if you will not have a photo at all:
-\begin{IEEEbiographynophoto}{John Doe}
-Biography text here.
-\end{IEEEbiographynophoto}
-
-% insert where needed to balance the two columns on the last page with
-% biographies
-%\newpage
-
-\begin{IEEEbiographynophoto}{Jane Doe}
-Biography text here.
-\end{IEEEbiographynophoto}
-
-% You can push biographies down or up by placing
-% a \vfill before or after them. The appropriate
-% use of \vfill depends on what kind of text is
-% on the last page and whether or not the columns
-% are being equalized.
-
-%\vfill
-
-% Can be used to pull up biographies so that the bottom of the last one
-% is flush with the other column.
-%\enlargethispage{-5in}
-
-
-
-% that's all folks
-\end{document}
-
-
diff --git a/relazioni/wireless/paper.tex b/relazioni/wireless/paper.tex
deleted file mode 100644
index 289017d..0000000
--- a/relazioni/wireless/paper.tex
+++ /dev/null
@@ -1,575 +0,0 @@
-\documentclass[conference, 11pt]{IEEEtran}
-\usepackage{graphicx}
-\usepackage[utf8x]{inputenc}
-\usepackage{longtable}
-\usepackage[T1]{fontenc}
-\usepackage{amsmath}
-\usepackage{color}
-\usepackage{caption}
-\definecolor{dkgreen}{rgb}{0,0.6,0}
-\definecolor{gray}{rgb}{0.5,0.5,0.5}
-\definecolor{mauve}{rgb}{0.58,0,0.82}
-\DeclareCaptionFont{white}{\color{white}}
-\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\linewidth}{#1#2#3}}}
-\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
-\usepackage{listings}
-\lstset{ %
- basicstyle=\footnotesize, % the size of the fonts that are used for the code
- numbers=left, % where to put the line-numbers
- numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers
- stepnumber=1, % the step between two line-numbers. If it's 1, each line
- % will be numbered
- numbersep=5pt, % how far the line-numbers are from the code
- backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
- showspaces=false, % show spaces adding particular underscores
- showstringspaces=false, % underline spaces within strings
- showtabs=false, % show tabs within strings adding particular underscores
- %frame=single, % adds a frame around the code
- rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
- tabsize=2, % sets default tabsize to 2 spaces
- captionpos=t, % sets the caption-position to bottom
- breaklines=true, % sets automatic line breaking
- breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
- title=\lstname, % show the filename of files included with \lstinputlisting;
- % also try caption instead of title
- keywordstyle=\color{blue}, % keyword style
- commentstyle=\color{dkgreen}, % comment style
- stringstyle=\color{mauve}, % string literal style
- escapeinside={\%*}{*)}, % if you want to add a comment within your code
- morekeywords={*,...} % if you want to add more keywords to the set
-}
-
-
-
-\begin{document}
-
-\title{SecureIt: home security\\
-via Android application}
-
-\author{
-\IEEEauthorblockN{Luca Bonato, Marco Ziccardi}
-\IEEEauthorblockA{Corso di studi in Informatica\\
-Università degli Studi di Padova\\
-Email: \{lohathe,marco.ziccard\}@gmail.com}
-}
-
-
-\maketitle
-
-
-\begin{abstract}
-Nowadays different applications offer a mechanism to monitor your home in order to detect any intrusion. Nevertheless none of these solutions completely exploits phone functionalities to find intruders: accelerometer, camera or microphone are often mutually exclusive. Moreover none of these applications tracks phone's position after an intrusion has been identified. The proposed application aims to collect different solution for motion/presence detection and to track phone's position using any kind of connectivity.
-\end{abstract}
-
-\IEEEpeerreviewmaketitle
-
-\section{\textbf{Introduction}}
-Traditional surveillance systems rely on ad hoc and proprietary solutions and have weaknesses like poor mobility, high costs and low flexibility. Current smartphones spread makes possible to exploit these devices to protect our homes.\\
-
-The developed application exploits phone's hardware in order to offer a traditional survellance system services.\\
-
-The aim of the application development was not only the creation of a home security system but also the discovery of phone capabilities.
-
-\section{\textbf{Application overview}}
-Operations performed by the application are complex and really resource needful:
-\begin{itemize}
- \item Accelerometer to detect orientation and shake
- \item Camera to detect motion processing frames
- \item Microphone to detect environmental sound level
- \item Wifi or 3G connectivity to upload images and audio
- \item GPS to get current location
- \item Bluetooth to upload location in absence of connectivity
- \item In app encryption in order to securely authenticate the user
-\end{itemize}
-
-To the mobile application is associated a back-end where the application itself uploads images and audio got at the instant of the intrusion detection.\\
-
-In order to allow the end user to select the type of monitoring and the type of alerting according to his needs about security, CPU and power consumption, a configuration panel (shown in figure \ref{img:config}) is presented at each start of the application.\\
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.3]{resources/config.png}}
-\caption{Configuration view}
-\label{img:config}
-\end{center}
-\end{figure}
-
-\begin{enumerate}
- \item Asks the application to use the accelerometer, shown only if the accelerometer is available on the phone
- \item Asks the application to use the camera, allows to choose which camera to use and to start the flash
- \item Asks the application to use the microphone
- \item Asks the application to send an SMS to the specified phone number to alert an intrusion
- \item Asks the application to authenticate and send images, audio and location to the back-end (images are sent only if camera has been activated). A username and a password have to be specified
- \item Allows to set the unlock code. Application can be closed only by writing that code
-\end{enumerate}
-
-\section{\textbf{Architecture}}
-
-In figure \ref{img:architecture} is presented the developed application.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.45]{resources/architecture.pdf}}
-\caption{High level architecture diagram}
-\label{img:architecture}
-\end{center}
-\end{figure}
-
-Three parts can be identified which realize the monitoring tasks of the application. Each of that parts can be diveded in components:
-\begin{itemize}
- \item \texttt{Motion Detection}:
- \begin{itemize}
- \item \texttt{CameraFragment}: active view component displayed by the Android \texttt{SDK}
- \item \texttt{Preview}: links camera hardware to the Java application
- \item \texttt{MonitorAsyncTask}: processes frames in order to detect motion
- \item \texttt{LuminanceMotionDetector}, \texttt{ImageCodec}: utility classes used by \texttt{MotionAsyncTask}
- \end{itemize}
- \item \texttt{Noise Detection}:
- \begin{itemize}
- \item \texttt{MicrophoneFragment}: active view component displayed by the Android \texttt{SDK}
- \item \texttt{MicVolumePicker}: passive view showing noise level
- \item \texttt{MicSamplerTask}: periodically samples audio data using \texttt{AudioCodec}
- \item \texttt{AudioCodec}: samples microphone on demand
- \end{itemize}
- \item \texttt{Motion Detection}:
- \begin{itemize}
- \item \texttt{AccelerometerFragment}: active view component displayed by the Android \texttt{SDK}
- \item \texttt{secureit.opengl}: package of view utilities to display 3D animations
- \end{itemize}
-\end{itemize}
-
-\texttt{UploadService} is activated by an alert coming from one of the framents presented before. It uses the following tasks to perform the data upload:
-\begin{itemize}
- \item \texttt{ImageUploaderTask}: uploads the captured images
- \item \texttt{AudioRecorderTask}: records the audio and uploads it
- \item \texttt{PeriodicPositionUploaderTask}: periodically sends phone position to the back-end using \texttt{WIFI} or \texttt{3G} network
- \item \texttt{Bluetooth\allowbreak Periodic\allowbreak Position\allowbreak Uploader\allowbreak Task}: periodically sends phone position using opportunistic bluetooth connectivity, activated only if no \texttt{WIFI} or \texttt{3G} network is active
- \item \texttt{BluetoothServerTask}: task responding to bluetooth messages requesting delegated position upload
- \item \texttt{DelegatedPositionUploaderTask}: sends delegated phone position
-\end{itemize}
-
-Bluetooth message exchange is done using the following modules:
-
-\begin{itemize}
- \item \texttt{ObjectBluetoothSocket}: object oriented socket for message delivery
- \item \texttt{secureit.messages}: package containing bluetooth messages
-\end{itemize}
-
-
-\section{\textbf{Intrusion detection}}
-Intrusion detection is performed through three complementary ways:
-\begin{itemize}
- \item \textbf{Accelerometer}
- \item \textbf{Camera}
- \item \textbf{Microphone}
-\end{itemize}
-
-\subsection{\textbf{Accelerometer}}
-The accelerometer is used to detect motion of the phone itself. Different sensitivity can be set in order to detect different kinds of motions.\\
-The accelerometer returns a \textit{triple} of three acceleration values on the three axes (\textit{X}, \textit{Y} and \textit{Z}).
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.6]{resources/accelerometer.png}}
-\caption{Values and signs of detected acceleration}
-\end{center}
-\end{figure}
-
-Those values allow to detect every orientation taken by the phone except for phone rotations on the \textit{Z} axis when the phone is vertical (this is obvious according to the fact that in such a position the phone is not subject to acceleration variations on that axis).\\
-Those acceleration values are used to move a 3D animation made in OpenGL ES (running on the GPU) that simply uses them to show phone's orientation, see figure \ref{img:opengl}.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.3]{resources/opengl.png}}
-\caption{OpenGL ES 3D animation to show phone orientation}
-\label{img:opengl}
-\end{center}
-\end{figure}
-
-
-Acceleration triple is also used to detect any variation in the phone acceleration. Acceleration variation gives an idea of intensity of phone's \textit{shake} and it is computed as in equation \ref{eq:accel_variation}.
-
-\begin{equation}
-variation = \frac{(\Delta accelX)+(\Delta accelY)+(\Delta accelZ)}{\Delta t}
-\label{eq:accel_variation}
-\end{equation}\\
-Three levels of sensitivity are defined:
-\begin{itemize}
- \item \texttt{LOW}: \texttt{SHAKE\_THRESHOLD = 3100}
- \item \texttt{MEDUM}: \texttt{SHAKE\_THRESHOLD = 2700}
- \item \texttt{HIGH}: \texttt{SHAKE\_THRESHOLD = 2300}
-\end{itemize}
-
-If $variation>\texttt{SHAKE\_THRESHOLD}$ the application starts to send alerts according to the specified options.
-
-\subsection{\textbf{Camera}}
-The camera is used to detect motion in the surrounding environment. The frames captured by the camera are processed to detect if any variation has occurred since the previous captured frame.\\
-A callback is activated at every captured frame; processing each captured frame would be too expensive for the phone in terms of CPU usage and battery consumption, processing is therefore reduced at one frame per second.\\
-\subsubsection{\textbf{Motion detection}}
-As said motion detection on the frame matrix is very expensive so the frames are scaled as soon as capture to a size of \texttt{640x480}. In order to detect any variation between two frames only the gray-scale image is needed.\\
-A movement is considered to be a difference in number of pixels between two gray-scale frames bigger than a certain threshold.\\
-Also in that case we have three types of sensitivity, the sensitivity type defines not only the threshold in the number of different pixels (\texttt{NUMBER\_THRESHOLD}) but also the threshold needed to consider different two pixels (\texttt{VALUE\_THRESHOLD}):
-
-\begin{itemize}
- \item \texttt{LOW}:
- \begin{itemize}
- \item \texttt{VALUE\_THRESHOLD = 60}
- \item \texttt{NUMBER\_THRESHOLD = 20000}
- \end{itemize}
- \item \texttt{MEDUM}:
- \begin{itemize}
- \item \texttt{VALUE\_THRESHOLD = 50}
- \item \texttt{NUMBER\_THRESHOLD = 10000}
- \end{itemize}
- \item \texttt{HIGH}:
- \begin{itemize}
- \item \texttt{VALUE\_THRESHOLD = 40}
- \item \texttt{NUMBER\_THRESHOLD = 9000}
- \end{itemize}
-\end{itemize}
-
-Supposing to represent the two frames to compare with two linearized arrays of integer representing each pixel value the pseudo-code used form motion detection is straightforward:
-
-\begin{lstlisting}[language=Java, caption=Pseudocode for motion detection]
-detectMotion(int[] oldImage,int[] newImage,int width,int height)
-begin
- List differentPixels
- for (int i = 0, ij=0; i < height; i++){
- for (int j = 0; j < width; j++, ij++){
- int newPixelValue = newImage[ij]
- int oldPixelValue = oldImage[ij]
- if (|newPixelValue-oldPixelValue|>=VALUE_THRESHOLD){
- differentPixels.add(ij);
- }
- }
- }
- return differentPixels
-end
-\end{lstlisting}
-
-The detection identifies the list of mutated pixels according to the sensitivity specified.\\
-
-\subsubsection{\textbf{Data representation}}
-In order to make the user understand what the application is doing a view is presented showing: the surface currently being captured by the camera, the last frame considered by motion detection and the current considered frame; pixel identified as changed are marked in red in the current frame. This view is shown in figure \ref{img:camera}.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.3]{resources/camera.png}}
-\caption{Camera view to show motion detected}
-\label{img:camera}
-\end{center}
-\end{figure}
-
-\subsection{\textbf{Microphone}}
-The microphone is used to detect an excessive noise level in the environment. In that case too three levels of sensitivity are defined each of one refers to a different value of decibels.
-
-\begin{itemize}
- \item \texttt{LOW}: \texttt{NOISE\_THRESHOLD = 60}
- \item \texttt{MEDUM}: \texttt{NOISE\_THRESHOLD = 50}
- \item \texttt{HIGH}: \texttt{NOISE\_THRESHOLD = 30}
-\end{itemize}~
-
-\subsubsection{\textbf{Sampling}}
-The application keeps sampling a buffer of \texttt{512} values of \texttt{16 BIT PCM}. Those values present the environment noise.\\ Scientific literature is plenty of tables showing for each common noise the corresponding decibel value, such as the one in figure \ref{img:decibels}.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.5]{resources/decibels.jpeg}}
-\caption{A decibel scale}
-\label{img:decibels}
-\end{center}
-\end{figure}
-
-In order to exploit those tables and the user-friendliness of decibel \texttt{PCM} values are used to get \texttt{dB} values.\\
-Referring to a measure of amplitude we can express the ratio of the squares between current value $V_i$ and a reference value $V_o$ in decibels as:
-
-\begin{equation}
-dB_i = 20log_{10} \left(\frac{V_i}{V_o}\right)
-\end{equation}
-
-To convert \texttt{PCM} values to \texttt{dB} we can suppose that each sampled value is different from \texttt{0} if the microphone samples something audible, so as a reference value to compute noise intensity from \texttt{PCM} the integer \texttt{1}, can be used.\\
-
-Given the sample as an array (called \texttt{signal}) of \texttt{512 short integers} the following pseudo-code can be used to compute average \texttt{dB} intensity:
-
-\begin{lstlisting}[language=Java, caption=Pseudocode for computing dB from PCM samples]
-int total = 0
-int count = 0
-for (short peak : signal) {
- if (peak != 0) {
- total=total+|peak|
- count=count+1
- }
-}
-int average = 0
-if (count > 0) average = total/count
-
-double averageDB = 0.0
-if (average!=0) {
- averageDB = 20*log10((average)/1)
-}
-\end{lstlisting}
-
-\subsubsection{\textbf{Data representation}}
-
-To make the end user aware of the ongoing process a view shows the decibels sampled by the microphones. The values are represented using a two channel volume indicator (in case of stereo microphones owned by some devices). Two levels are highlighted in the indicator: the first one is the threshold over which an alert is fired while the second one is an arbitrary noise threshold.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.3]{resources/microphone.png}}
-\caption{Microphone view to show sampled audio level}
-\label{img:microphone}
-\end{center}
-\end{figure}
-
-\section{\textbf{Alert communication}}
-If a user is logged in, different ways of alert communication have been implemented depending on the connectivity currently available:
-\begin{itemize}
- \item \texttt{WIFI CONNECTIVITY}: a set of 10 captured images and 10 seconds of audio are sent
- \item \texttt{3G CONNECTIVITY}: a subset of 5 captured images and 10 seconds of audio are sent
- \item \texttt{BLUETOOTH CONNECTIVITY}: no images or audio are sent but bluetooth is used to opportunistically and periodically request other devices to send phone's position
-\end{itemize}
-
-In both cases of \texttt{WIFI} or \texttt{3G CONNECTIVITY} a periodic task is used to send phone's location to the back-end.
-
-\subsection{\textbf{Connectivity identification}}
-In order to identify what kind of connectivity is available on the device the Android \texttt{APIs} are used. Those \texttt{APIs} allow to define whether the phone is connected or connecting. Confirmed that the phone is connected, the kind of connectivity is inspected via the following code:
-
-\begin{lstlisting}[language=Java, caption=Java code to define connectivity type]
-ConnectivityManager cm = (ConnectivityManager)
- getSystemService(Context.CONNECTIVITY_SERVICE);
-boolean isConnected = false;
-boolean isWifi = false;
-NetworkInfo activeNetwork =
- cm.getActiveNetworkInfo();
-if (activeNetwork != null) {
- isConnected =
- activeNetwork.isConnectedOrConnecting();
- isWifi =
- activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;
-}
-\end{lstlisting}
-
-\subsection{\textbf{Authentication}}
-A phone connected to \texttt{WIFI} or \texttt{3G} sends directly his data to the back-end, so it needs for sure an \texttt{access\_token}. Moreover a phone needs another type of token (for security purposes) in order to delegate via bluetooth other devices to send to the back-end his location. Such a token is called \texttt{delegated\_access\_token} and can be used by other devices to be authorized to post a location for the delegating phone.\\
-A \texttt{REST API} (\texttt{[POST] /users/accesstoken}) can be used to get those tokens given username and password. The tokens are returned in the response body as \texttt{JSON}:
-
-\begin{lstlisting}[language=Java, caption=Response body containing tokens]
-{"access_token": "BASE64_TOKEN",
- "delegated_access_token": "BASE64_DELEGATED_TOKEN"}
-\end{lstlisting}
-
-\subsection{\textbf{Data upload}}
-Images and audio are uploaded to the backend in a similar way. A \texttt{MULTIPART POST} request is sent to some \texttt{REST API} offered by the back-end, respectively:
-
-\begin{lstlisting}[caption=REST API to upload images and audio]
-[POST] /api/phones/:phoneId/images
-[POST] /api/phones/:phoneId/audio
-\end{lstlisting}
-
-For authentication purposes a request header field named \texttt{access\_token} is added.
-
-\subsection{\textbf{Direct location upload}}
-In case of \texttt{WIFI} or \texttt{3G CONNECTIVITY} location is directly uploaded by the phone. The \texttt{API} used is simply \texttt{[POST] /api/phones/:phoneid/positions} and the authentications still uses an \texttt{access\_token} header field.\\
-Location data can be retrieved in two ways according to the phone capabilities:
-
-\begin{itemize}
- \item \texttt{GPS}
- \item \texttt{NETWORK}
-\end{itemize}
-
-\section{\textbf{Bluetooth communication}}
-As said when only bluetooth is active the phone asks other devices to upload his location. Two key features have been realized:
-
-\begin{itemize}
- \item The communication is opportunistic, no need to pair devices
- \item Only authorized data is accepted
-\end{itemize}
-
-\subsection{\textbf{No pairing}}
-Android offers two ways for creating a bluetooth server socket: \texttt{listen\allowbreak Using\allowbreak Rfcomm\allowbreak WithServiceRecord} and \texttt{listen\allowbreak Using\allowbreak Insecure\allowbreak RfcommWithServiceRecord}. The first method creates a server socket listening for incoming connections created via \texttt{create\allowbreak Rfcomm\allowbreak SocketToServiceRecord} and needs an explicit pairing of two devices with user acceptance. The second method instead allows to manage incoming connections that do not require pairing with user acceptance (created with \texttt{create\allowbreak Insecure\allowbreak Rfcomm\allowbreak SocketToServiceRecord}).\\
-
-\subsection{\textbf{Delegated authorization}}
-In the authentication phase a \texttt{delegated\allowbreak\_access\allowbreak\_token} is retrieved in order to not use the same token for both direct and delegated authentication. However such a token should not be shared with other devices and in order to do so a little protocol has been developed.\\
-The protocol in figure \ref{img:bluetooth} is slightly inspired by Kerberos (\texttt{[1]}) and is based on three messages:\\
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.4]{resources/bluetooth.png}}
-\caption{Bluetooth communication scheme}
-\label{img:bluetooth}
-\end{center}
-\end{figure}
-
-Each application running on a device with active bluetooth offers an insecure \texttt{RFCOMM} server socket able to accept insecure requests for a specified \texttt{UIID}.\\
-
-When on any device running the application an intrusion is detected and no connectivity is available the bluetooth alert workflow starts:\\
-\begin{enumerate}
- \item A bluetooth discovery is started
- \item A listener is registered to the process of discovery and each new device identified is stored
- \item As soon as discovery finishes the application tries to create a connection for each device, if it fails the device is discarded, otherwise a messaging workflow is started:
- \begin{enumerate}
-
- %Hello message
- \item An \texttt{HelloMessage} is sent. It contains a timestamp and the phone's identifier. \texttt{phoneId} is used by the delegated device to know who is requesting delegation, and where to upload location
- %Key request
- \item A \texttt{KeyRequest} is received. It is sent from the delegated device and contains latitude, longitude and a timestamp intended to be sent to the back-end
- %authorization_key creation
- \item An \texttt{authorization\_key} is computed via \texttt{AES} password encryption, using as password the value \texttt{delegated\_access\_token} and encrypting the \texttt{JSON} string reported in listing \ref{delegatedaccesstoken}.
-
-\begin{lstlisting}[float, language=Java, caption=JSON encrypted with AES, label=delegatedaccesstoken]
-{"lat": "latitude",
- "long": "longitude",
- "timestamp": "timestamp"}
-\end{lstlisting}
-
-
- The code in listing \ref{encrypt} shows how to compute \texttt{AES} password encryption of the string in Java
-
-\begin{lstlisting}[float, language=Java, caption=AES password encryption, label=encrypt]
-SecretKeySpec key = new SecretKeySpec(password.getBytes(), "AES");
-AlgorithmParameterSpec paramSpec = new IvParameterSpec(password.substring(0, 16).getBytes());
-Cipher cipher;
-cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
-cipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
-byte[] ecrypted = cipher.doFinal(accessKey.getBytes());
-accessKey = Base64.encodeToString(ecrypted, Base64.DEFAULT);
-\end{lstlisting}
- %Key response
- \item A \texttt{KeyResponse} is sent. It contains the \texttt{authorization\_key} that can be computed only by the requesting client since \texttt{delegated\_access\_token} is never shared
- %Data upload
- \item The delegated phone sends latitude, longitude, timestamp and \texttt{authorization\_key} to the \texttt{REST API [POST] /api\allowbreak/phones\allowbreak/:phoneid\allowbreak/position/delegated}
- %Authorization
- \item The back-end is able to decrypt \texttt{authorization\_key} using \texttt{delegated\_access\_token} of the requesting phone (\texttt{phoneId}) and verify that the owner has authorized the upload of latitude and longitude
- \end{enumerate}
- \item If location is sent correctly 1 hour is waited before next retransmission, otherwise only 1 minute is waited
-\end{enumerate}
-
-\subsection{\textbf{Android APIs improvement}}
-Android \texttt{APIs} represent a bluetooth connection using a class called \texttt{BluetoothSocket}, this class offers a duplex connection implemented with two \texttt{byte} oriented streams (input and output). Since the need to implement a messaging protocol the class \texttt{ObjectBluetoothSocket} has been defined in order to encapsulate \texttt{BluetoothSocket} in order to offer an higher-level communication mechanism. \texttt{ObjectBluetoothSocket}'s duplex connection is implemented via using two object oriented streams.
-
-\begin{lstlisting}[language=Java, caption=ObjectBluetoothSocket class]
-public class ObjectBluetoothSocket {
-
- private BluetoothSocket socket;
-
- private ObjectOutputStream outputStream;
-
- private ObjectInputStream inputStream;
-
- public ObjectBluetoothSocket(BluetoothSocket socket)
- throws IOException {
- this.socket = socket;
- this.outputStream =
- new ObjectOutputStream(
- this.socket.getOutputStream());
- this.inputStream =
- new ObjectInputStream(
- this.socket.getInputStream());
- }
-
- public ObjectInputStream getInputStream() {
- return inputStream;
- }
-
- public ObjectOutputStream getOutputStream() {
- return outputStream;
- }
-
- public void close() throws IOException {
- outputStream.close();
- inputStream.close();
- socket.close();
- }
-
- public void connect() throws IOException {
- socket.connect();
- }
-}
-\end{lstlisting}
-Using such a class simple Java serializable objects can be flushed through the socket. The hierarchy of messages in figure \ref{img:messages} has been defined, each class represents a message in the previously defined protocol.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.5]{resources/messages.png}}
-\caption{Messages class hierarchy}
-\label{img:messages}
-\end{center}
-\end{figure}
-
-Using that extension of the Android \texttt{APIs} protocol messages can be easily sent using the following code:
-
-\begin{lstlisting}[language=Java, caption=Bluetooth sending of an HelloMessage]
-ObjectBluetoothSocket socket = new ObjectBluetoothSocket();
-//...
-BluetoothMessage msg = new HelloMessage("id", new Date());
-socket.getOutputStream().write(msg);
-
-\end{lstlisting}
-
-
-\section{\textbf{Back-end}}
-The back-end offers a set of \texttt{REST API} in order to authenticate the user, register a phone, upload images, audio and location. It organizes that data in a non relation database (\texttt{REDIS}) and allows to view it.\\
-
-Images are captured and sent by Android phone in \textit{JPEG} format and are sent and displayed by the web application as they are (as shown in figure \ref{img:slideshow}).\\
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.25]{resources/slideshow.png}}
-\caption{Slideshow for captured images}
-\label{img:slideshow}
-\end{center}
-\end{figure}
-
-Audio is captured by Android phone using \texttt{AAC} encoding, unfortunately Firefox and other browsers do not support \texttt{AAC} encoding. In order to make audio available for all modern browser as soon as it is received by the web application it is converted into \texttt{vorbis} encoding using \texttt{ffmpeg}:
-
-\begin{lstlisting}[language=Bash, caption=FFMPEG command to convert aac to mp3]
-ffmpeg -i in.m4a -acodec libvorbis -aq 60 -vn -ac 2 out.ogg
-\end{lstlisting}
-
-Such a conversion is done with a background system process.\\
-
-Uploaded location data is organized on a map created via Google Maps \texttt{APIs}.
-
-\begin{figure}[!ht]
-\begin{center}
-\makebox[\linewidth]{\includegraphics[scale=0.25]{resources/map.png}}
-\caption{Map showing last know device position}
-\label{img:slideshow}
-\end{center}
-\end{figure}
-
-\section{\textbf{Related work}}
-Different existing applications try to mimic a surveillance system but none of them exploits all available sensors on the phone. Moreover no phone tracking application offers a way different from direct internet connectivity to send phone's position (no opportunistic communication).\\
-
-\begin{itemize}
- \item \textbf{Motion Detector Pro}: motion detection only app
- \item \textbf{Sound Detector}: sound detection only app. Can take pictures if the alarm is triggered
- \item \textbf{Surveillance}: motion and sound detection. Missing accelerometer motion detection, position tracking, SMS alerting and opportunistic communication
- \item \textbf{Wheres My Droid}: phone tracking app. Beta support for camera shots. Missing intrusion detection and opportunistic communication
-
-\end{itemize}
-
-\begin{thebibliography}{1}
-
-\bibitem{}
-B. Clifford Neuman and Theodore Ts'o (September 1994) Kerberos: An Authentication Service for Computer Networks. IEEE Communications 32. \\
-\bibitem{}
-S. Chita, N. Peterson, B.A. Shirazi, M. Bhadkamkar (March 2011) Home automation and security for mobile devices. PERCOM 2011. \\
-\bibitem{}
-I. Estevez-Ayres et al. (January 2011) Using android smartphones in a service-oriented video surveillance system. ICEE 2011. \\
-\bibitem{}
-Heming Pang et al. (June 2010) Research of android smart phone surveillance system. ICCDA 2010. \\
-\bibitem{}
-M. Mitchell (January 2011) BEAT: Bio-Environmental Android Tracking. RWS 2011. \\
-\bibitem{}
-G. Bianchi, P. Loreti, A. Trkulja (June 2012) Let me grab your App: Preliminary proof-of-concept design of opportunistic content augmentation. ICC 2012. \\
-\bibitem{}
-T. Hossmann, D. Schatzmann, P. Carta, F. Legendre (2012) Twitter in disaster mode: smart probing for opportunistic peers. MobiOpp 2012.\\
-
-
-\end{thebibliography}
-
-% that's all folks
-\end{document}
-
-
diff --git a/relazioni/wireless/resources/accelerometer.png b/relazioni/wireless/resources/accelerometer.png
deleted file mode 100644
index 9b6cf18..0000000
Binary files a/relazioni/wireless/resources/accelerometer.png and /dev/null differ
diff --git a/relazioni/wireless/resources/architecture.pdf b/relazioni/wireless/resources/architecture.pdf
deleted file mode 100644
index 497ce84..0000000
Binary files a/relazioni/wireless/resources/architecture.pdf and /dev/null differ
diff --git a/relazioni/wireless/resources/bare_adv.tex b/relazioni/wireless/resources/bare_adv.tex
deleted file mode 100644
index bb0abe8..0000000
Binary files a/relazioni/wireless/resources/bare_adv.tex and /dev/null differ
diff --git a/relazioni/wireless/resources/bluetooth.png b/relazioni/wireless/resources/bluetooth.png
deleted file mode 100644
index 14cc99a..0000000
Binary files a/relazioni/wireless/resources/bluetooth.png and /dev/null differ
diff --git a/relazioni/wireless/resources/camera.png b/relazioni/wireless/resources/camera.png
deleted file mode 100644
index 0847e64..0000000
Binary files a/relazioni/wireless/resources/camera.png and /dev/null differ
diff --git a/relazioni/wireless/resources/config.png b/relazioni/wireless/resources/config.png
deleted file mode 100644
index a770365..0000000
Binary files a/relazioni/wireless/resources/config.png and /dev/null differ
diff --git a/relazioni/wireless/resources/decibels.jpeg b/relazioni/wireless/resources/decibels.jpeg
deleted file mode 100644
index 8a24c13..0000000
Binary files a/relazioni/wireless/resources/decibels.jpeg and /dev/null differ
diff --git a/relazioni/wireless/resources/firstpage.png b/relazioni/wireless/resources/firstpage.png
deleted file mode 100644
index af96d52..0000000
Binary files a/relazioni/wireless/resources/firstpage.png and /dev/null differ
diff --git a/relazioni/wireless/resources/icona.pdf b/relazioni/wireless/resources/icona.pdf
deleted file mode 100644
index 30b1e13..0000000
Binary files a/relazioni/wireless/resources/icona.pdf and /dev/null differ
diff --git a/relazioni/wireless/resources/map.png b/relazioni/wireless/resources/map.png
deleted file mode 100644
index 069a2e5..0000000
Binary files a/relazioni/wireless/resources/map.png and /dev/null differ
diff --git a/relazioni/wireless/resources/messages.dia b/relazioni/wireless/resources/messages.dia
deleted file mode 100644
index 8ca4724..0000000
Binary files a/relazioni/wireless/resources/messages.dia and /dev/null differ
diff --git a/relazioni/wireless/resources/messages.png b/relazioni/wireless/resources/messages.png
deleted file mode 100644
index 55a26d3..0000000
Binary files a/relazioni/wireless/resources/messages.png and /dev/null differ
diff --git a/relazioni/wireless/resources/microphone.png b/relazioni/wireless/resources/microphone.png
deleted file mode 100644
index 27ce77d..0000000
Binary files a/relazioni/wireless/resources/microphone.png and /dev/null differ
diff --git a/relazioni/wireless/resources/opengl.png b/relazioni/wireless/resources/opengl.png
deleted file mode 100644
index a55f536..0000000
Binary files a/relazioni/wireless/resources/opengl.png and /dev/null differ
diff --git a/relazioni/wireless/resources/slideshow.png b/relazioni/wireless/resources/slideshow.png
deleted file mode 100644
index 82813e0..0000000
Binary files a/relazioni/wireless/resources/slideshow.png and /dev/null differ
diff --git a/res/drawable-hdpi/ic_action_search.png b/res/drawable-hdpi/ic_action_search.png
deleted file mode 100644
index 67de12d..0000000
Binary files a/res/drawable-hdpi/ic_action_search.png and /dev/null differ
diff --git a/res/drawable-hdpi/ic_launcher.png b/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index 0b604cb..0000000
Binary files a/res/drawable-hdpi/ic_launcher.png and /dev/null differ
diff --git a/res/drawable-ldpi/ic_launcher.png b/res/drawable-ldpi/ic_launcher.png
deleted file mode 100644
index 3558841..0000000
Binary files a/res/drawable-ldpi/ic_launcher.png and /dev/null differ
diff --git a/res/drawable-mdpi/ic_action_search.png b/res/drawable-mdpi/ic_action_search.png
deleted file mode 100644
index 134d549..0000000
Binary files a/res/drawable-mdpi/ic_action_search.png and /dev/null differ
diff --git a/res/drawable-mdpi/ic_launcher.png b/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index ff604b1..0000000
Binary files a/res/drawable-mdpi/ic_launcher.png and /dev/null differ
diff --git a/res/drawable-xhdpi/ic_action_search.png b/res/drawable-xhdpi/ic_action_search.png
deleted file mode 100644
index d699c6b..0000000
Binary files a/res/drawable-xhdpi/ic_action_search.png and /dev/null differ
diff --git a/res/drawable-xhdpi/ic_launcher.png b/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index 574e3ec..0000000
Binary files a/res/drawable-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/res/drawable/back.xml b/res/drawable/back.xml
deleted file mode 100644
index 0a78175..0000000
--- a/res/drawable/back.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
- <solid android:color="#ffffff" />
- <stroke android:width="2dip" android:color="#000000"/>
- <padding android:left="7dp" android:top="7dp"
- android:right="7dp" android:bottom="7dp" />
- <corners android:radius="4dp" />
-</shape>
\ No newline at end of file
diff --git a/res/drawable/backtx.bmp b/res/drawable/backtx.bmp
deleted file mode 100644
index ab16ead..0000000
Binary files a/res/drawable/backtx.bmp and /dev/null differ
diff --git a/res/drawable/black_white_gradient.xml b/res/drawable/black_white_gradient.xml
deleted file mode 100644
index 579b804..0000000
--- a/res/drawable/black_white_gradient.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<shape xmlns:android="http://schemas.android.com/apk/res/android"
- android:shape="rectangle">
- <gradient
- android:startColor="#00000000"
- android:centerColor="#FFFFFFFF"
- android:endColor="#00000000"
- android:angle="0" />
-</shape>
\ No newline at end of file
diff --git a/res/drawable/fronttx.bmp b/res/drawable/fronttx.bmp
deleted file mode 100644
index e16276a..0000000
Binary files a/res/drawable/fronttx.bmp and /dev/null differ
diff --git a/res/drawable/red_back.xml b/res/drawable/red_back.xml
deleted file mode 100644
index d322c39..0000000
--- a/res/drawable/red_back.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
- <solid android:color="#ffffff" />
- <stroke android:width="2dip" android:color="#FF0000"/>
- <padding android:left="7dp" android:top="7dp"
- android:right="7dp" android:bottom="7dp" />
- <corners android:radius="4dp" />
-</shape>
\ No newline at end of file
diff --git a/res/layout/accelerometer_fragment.xml b/res/layout/accelerometer_fragment.xml
deleted file mode 100644
index ec5efc7..0000000
--- a/res/layout/accelerometer_fragment.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:orientation="vertical"
- android:layout_height="wrap_content">
-
- <TextView
- android:id="@+id/accelerometer_text"
- android:layout_centerHorizontal="true"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="SHAKE DETECTED"
- android:textColor="#FFFFFF"
- android:textSize="22dp"
- android:textStyle="bold"
- android:typeface="sans"
- android:background="#820600"
- android:layout_marginTop="10dp"
- android:gravity="center"
- android:paddingTop="2dp"
- android:paddingBottom="2dp"
- />
-
- <TextView
- android:id="@+id/magnetic_field_text"
- android:layout_below="@id/accelerometer_text"
- android:layout_centerHorizontal="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
-
- <TextView
- android:id="@+id/orientation_text"
- android:layout_below="@id/magnetic_field_text"
- android:layout_centerHorizontal="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
-
- <FrameLayout android:id="@+id/opengl"
- android:layout_below="@id/orientation_text"
- android:layout_centerHorizontal="true"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- </FrameLayout>
-</RelativeLayout>
diff --git a/res/layout/activity_monitor.xml b/res/layout/activity_monitor.xml
deleted file mode 100644
index fa79d4d..0000000
--- a/res/layout/activity_monitor.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
-
- <com.viewpagerindicator.TitlePageIndicator
- android:id="@+id/indicator"
- android:padding="10dip"
- android:layout_height="wrap_content"
- android:layout_width="fill_parent"
- />
- <android.support.v4.view.ViewPager
- android:id="@+id/pager"
- android:layout_width="fill_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- />
-
-</LinearLayout>
\ No newline at end of file
diff --git a/res/layout/activity_start.xml b/res/layout/activity_start.xml
deleted file mode 100644
index 3fc324f..0000000
--- a/res/layout/activity_start.xml
+++ /dev/null
@@ -1,263 +0,0 @@
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
-
-<RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
-
- <CheckBox
- android:id="@+id/accelerometer_check"
- android:text="@string/accelerometer_label"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- tools:context=".StartActivity" />
-
- <RelativeLayout
- android:background="@drawable/back"
- android:layout_below="@id/accelerometer_check"
- android:id="@+id/accelerometer_options"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"
- android:paddingLeft="30dp"
- android:paddingRight="30dp"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp">
- <TextView
- android:id="@+id/accelerometer_prompt"
- android:text="@string/accelerometer_prompt"
- android:layout_alignParentLeft="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="10dp"
- />
- <Spinner
- android:id="@+id/accelerometer_sensitivity_spinner"
- android:layout_alignParentRight="true"
- android:prompt="@string/accelerometer_prompt"
- android:entries="@array/accelerometer_sensitivity"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- />
-
- </RelativeLayout>
-
- <CheckBox
- android:id="@+id/camera_check"
- android:text="@string/camera_label"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- tools:context=".StartActivity"
- android:layout_below="@id/accelerometer_options"/>
- <RelativeLayout
- android:background="@drawable/back"
- android:layout_below="@id/camera_check"
- android:id="@+id/camera_options"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"
- android:paddingLeft="30dp"
- android:paddingRight="30dp"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp">
- <CheckBox
- android:id="@+id/flash_check"
- android:text="@string/flash_label"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- tools:context=".StartActivity"
- />
- <TextView
- android:id="@+id/camera_prompt"
- android:text="@string/camera_prompt"
- android:layout_alignParentLeft="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="10dp"
- android:layout_below="@id/flash_check"
- />
- <Spinner
- android:id="@+id/camera_spinner"
- android:layout_alignParentRight="true"
- android:prompt="@string/camera_prompt"
- android:entries="@array/select_camera"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_below="@id/flash_check"
- />
- <TextView
- android:id="@+id/camera_sensitivity_prompt"
- android:text="@string/accelerometer_prompt"
- android:layout_alignParentLeft="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="10dp"
- android:layout_below="@id/camera_prompt"
- />
- <Spinner
- android:id="@+id/camera_sensitivity_spinner"
- android:layout_alignParentRight="true"
- android:layout_below="@id/camera_spinner"
- android:prompt="@string/accelerometer_prompt"
- android:entries="@array/accelerometer_sensitivity"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- />
-
- </RelativeLayout>
- <CheckBox
- android:id="@+id/microphone_check"
- android:text="@string/microphone_label"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- tools:context=".StartActivity"
- android:layout_below="@id/camera_options" />
-
- <RelativeLayout
- android:background="@drawable/back"
- android:layout_below="@id/microphone_check"
- android:id="@+id/microphone_options"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"
- android:paddingLeft="30dp"
- android:paddingRight="30dp"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp">
- <TextView
- android:id="@+id/microphone_prompt"
- android:text="@string/accelerometer_prompt"
- android:layout_alignParentLeft="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="10dp"
- />
- <Spinner
- android:id="@+id/microphone_sensitivity_spinner"
- android:layout_alignParentRight="true"
- android:prompt="@string/accelerometer_prompt"
- android:entries="@array/accelerometer_sensitivity"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- />
-
- </RelativeLayout>
-
- <CheckBox
- android:id="@+id/sms_check"
- android:text="@string/sms_label"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- tools:context=".StartActivity"
- android:layout_below="@id/microphone_options" />
-
- <RelativeLayout
- android:background="@drawable/back"
- android:layout_below="@id/sms_check"
- android:id="@+id/sms_options"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"
- android:paddingLeft="30dp"
- android:paddingRight="30dp"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp">
- <EditText
- android:id="@+id/phone_number"
- android:hint="@string/sms_hint"
- android:inputType="phone"
- android:layout_centerHorizontal="true"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:paddingTop="10dp"
- />
-
- </RelativeLayout>
-
- <CheckBox
- android:id="@+id/remote_check"
- android:text="@string/remote_label"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- tools:context=".StartActivity"
- android:layout_below="@id/sms_options" />
-
- <RelativeLayout
- android:background="@drawable/back"
- android:layout_below="@id/remote_check"
- android:id="@+id/remote_options"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"
- android:paddingLeft="30dp"
- android:paddingRight="30dp"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp">
- <EditText
- android:id="@+id/email"
- android:hint="@string/email_hint"
- android:inputType="textEmailAddress"
- android:layout_centerHorizontal="true"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:paddingTop="10dp"
- />
- <EditText
- android:id="@+id/password"
- android:layout_below="@id/email"
- android:hint="@string/password_hint"
- android:inputType="textPassword"
- android:layout_centerHorizontal="true"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:paddingTop="10dp"
- />
-
- </RelativeLayout>
-
- <RelativeLayout
- android:background="@drawable/back"
- android:layout_below="@id/remote_options"
- android:id="@+id/unlock_options"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingLeft="30dp"
- android:paddingRight="30dp"
- android:layout_marginTop="10dp"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp">
-
- <EditText
- android:id="@+id/unlock_code"
- android:hint="@string/unlock_code_hint"
- android:inputType="textPassword"
- android:layout_centerHorizontal="true"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:paddingTop="10dp"
- />
-
- </RelativeLayout>
-
- <Button
- android:id="@+id/start_button"
- android:text="@string/start_button"
- android:layout_below="@id/unlock_options"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"/>
-
-</RelativeLayout>
-</ScrollView>
\ No newline at end of file
diff --git a/res/layout/camera_fragment.xml b/res/layout/camera_fragment.xml
deleted file mode 100644
index 92bdbf6..0000000
--- a/res/layout/camera_fragment.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:orientation="vertical"
- android:layout_height="wrap_content">
-
- <FrameLayout android:id="@+id/preview"
- android:layout_centerHorizontal="true"
- android:layout_width="150dp"
- android:layout_height="200dp">
- </FrameLayout>
-
-
- <ImageView
- android:src="@drawable/ic_launcher"
- android:id="@+id/old_image"
- android:layout_alignParentLeft="true"
- android:layout_width="150dp"
- android:layout_height="200dp"
- android:paddingLeft="20dp"
- android:layout_below="@id/preview"
- />
-
- <ImageView
- android:id="@+id/new_image"
- android:src="@drawable/ic_launcher"
- android:layout_alignParentRight="true"
- android:layout_width="150dp"
- android:layout_height="200dp"
- android:layout_alignRight="@id/old_image"
- android:paddingRight="20dp"
- android:layout_below="@id/preview"
- />
-
- <TextView
- android:id="@+id/textview"
- android:layout_centerHorizontal="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/new_image"
- />
-</RelativeLayout>
diff --git a/res/layout/empty_fragment.xml b/res/layout/empty_fragment.xml
deleted file mode 100644
index 741b33f..0000000
--- a/res/layout/empty_fragment.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:orientation="vertical"
- android:layout_height="wrap_content">
-
- <RelativeLayout
- android:background="@drawable/red_back"
- android:id="@+id/camera_options"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingLeft="30dp"
- android:paddingRight="30dp"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp">
-
- <TextView
- android:id="@+id/label"
- android:layout_centerHorizontal="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- </RelativeLayout>
-
-</RelativeLayout>
diff --git a/res/layout/microphone_fragment.xml b/res/layout/microphone_fragment.xml
deleted file mode 100644
index 2af03ed..0000000
--- a/res/layout/microphone_fragment.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:orientation="vertical"
- android:id="@+id/linear_layout"
- android:layout_height="wrap_content">
-
-<!-- <com.androidplot.xy.XYPlot
- android:id="@+id/mySimpleXYPlot"
- android:layout_width="fill_parent"
- android:layout_height="200dp"
- android:layout_marginTop="10dp"
- android:layout_marginLeft="0px"
- android:layout_marginRight="0px"
- title=""
- /> -->
-
- <TextView xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/microphone"
- android:layout_gravity="center_horizontal"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
-</LinearLayout>
\ No newline at end of file
diff --git a/res/menu/monitor_activity.xml b/res/menu/monitor_activity.xml
deleted file mode 100644
index 4e3c4f3..0000000
--- a/res/menu/monitor_activity.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:id="@+id/menu_settings"
- android:title="@string/menu_stop"
- android:orderInCategory="100"
- android:showAsAction="never" />
-</menu>
diff --git a/res/raw/per_pixel_fragment_shader.glsl b/res/raw/per_pixel_fragment_shader.glsl
deleted file mode 100644
index c459332..0000000
--- a/res/raw/per_pixel_fragment_shader.glsl
+++ /dev/null
@@ -1,33 +0,0 @@
-precision mediump float; // Set the default precision to medium. We don't need as high of a
- // precision in the fragment shader.
-uniform vec3 u_LightPos; // The position of the light in eye space.
-uniform sampler2D u_Texture; // The input texture.
-
-varying vec3 v_Position; // Interpolated position for this fragment.
-varying vec4 v_Color; // This is the color from the vertex shader interpolated across the
- // triangle per fragment.
-varying vec3 v_Normal; // Interpolated normal for this fragment.
-varying vec2 v_TexCoordinate; // Interpolated texture coordinate per fragment.
-
-// The entry point for our fragment shader.
-void main()
-{
- // Will be used for attenuation.
- float distance = length(u_LightPos - v_Position);
-
- // Get a lighting direction vector from the light to the vertex.
- vec3 lightVector = normalize(u_LightPos - v_Position);
-
- // Calculate the dot product of the light vector and vertex normal. If the normal and light vector are
- // pointing in the same direction then it will get max illumination.
- float diffuse = max(dot(v_Normal, lightVector), 0.0);
-
- // Add attenuation.
- diffuse = diffuse * (1.0 / (1.0 + (0.10 * distance)));
-
- // Add ambient lighting
- diffuse = diffuse + 0.3;
-
- // Multiply the color by the diffuse illumination level and texture value to get final output color.
- gl_FragColor = (v_Color * diffuse * texture2D(u_Texture, v_TexCoordinate));
-}
diff --git a/res/raw/per_pixel_vertex_shader.glsl b/res/raw/per_pixel_vertex_shader.glsl
deleted file mode 100644
index 1d02117..0000000
--- a/res/raw/per_pixel_vertex_shader.glsl
+++ /dev/null
@@ -1,32 +0,0 @@
-uniform mat4 u_MVPMatrix; // A constant representing the combined model/view/projection matrix.
-uniform mat4 u_MVMatrix; // A constant representing the combined model/view matrix.
-
-attribute vec4 a_Position; // Per-vertex position information we will pass in.
-attribute vec4 a_Color; // Per-vertex color information we will pass in.
-attribute vec3 a_Normal; // Per-vertex normal information we will pass in.
-attribute vec2 a_TexCoordinate; // Per-vertex texture coordinate information we will pass in.
-
-varying vec3 v_Position; // This will be passed into the fragment shader.
-varying vec4 v_Color; // This will be passed into the fragment shader.
-varying vec3 v_Normal; // This will be passed into the fragment shader.
-varying vec2 v_TexCoordinate; // This will be passed into the fragment shader.
-
-// The entry point for our vertex shader.
-void main()
-{
- // Transform the vertex into eye space.
- v_Position = vec3(u_MVMatrix * a_Position);
-
- // Pass through the color.
- v_Color = a_Color;
-
- // Pass through the texture coordinate.
- v_TexCoordinate = a_TexCoordinate;
-
- // Transform the normal's orientation into eye space.
- v_Normal = vec3(u_MVMatrix * vec4(a_Normal, 0.0));
-
- // gl_Position is a special variable used to store the final position.
- // Multiply the vertex by the matrix to get the final point in normalized screen coordinates.
- gl_Position = u_MVPMatrix * a_Position;
-}
\ No newline at end of file
diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml
deleted file mode 100644
index d408cbc..0000000
--- a/res/values-v11/styles.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<resources>
-
- <style name="AppTheme" parent="android:Theme.Holo.Light" />
-
-</resources>
\ No newline at end of file
diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml
deleted file mode 100644
index 1c089a7..0000000
--- a/res/values-v14/styles.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<resources>
-
- <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" />
-
-</resources>
\ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
deleted file mode 100644
index 433d69c..0000000
--- a/res/values/strings.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<resources>
-
- <string name="app_name">SecureIt</string>
-
- <string name="menu_stop">Stop</string>
-
- <string name="title_activity_start">SecureIt</string>
-
- <string name="accelerometer_label">
- Use accelerometer to detect motion
- </string>
- <string name="accelerometer_prompt">
- Set sensitivity
- </string>
-
- <string name="microphone_label">
- Use microphone to detect any sound
- </string>
-
- <string name="camera_label">
- Use the camera to detect motion
- </string>
-
- <string name="flash_label">
- Activate the flash
- </string>
-
- <string name="sms_label">
- Send an SMS as alert
- </string>
-
- <string name="remote_label">
- Send alert data to SecureIt
- </string>
-
- <string name="sms_hint">
- Phone
- </string>
-
- <string name="email_hint">
- Email
- </string>
-
- <string name="password_hint">
- Password
- </string>
-
- <string name="unlock_code_hint">
- Code to stop the app
- </string>
-
-
- <string name="start_button">
- Start
- </string>
-
- <string name="camera_prompt">
- Select the camera
- </string>
-
- <array name="accelerometer_sensitivity">
- <item>Low</item>
- <item>Medium</item>
- <item>High</item>
- </array>
- <array name="select_camera">
- <item>Front</item>
- <item>Back</item>
- </array>
-
- <string name="secure_service_started">
- Home security deamon started
- </string>
-
- <string name="secure_service_stopped">
- Home security deamon stopped
- </string>
-
-</resources>
\ No newline at end of file
diff --git a/res/values/styles.xml b/res/values/styles.xml
deleted file mode 100644
index 4dba0d0..0000000
--- a/res/values/styles.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<resources>
-
- <style name="AppTheme" parent="android:Theme.Light" />
-
-</resources>
\ No newline at end of file