\documentclass[a4paper,11pt]{book} % \newcommand{\Home}{/Users/kannan/FOSS/scilab-arduino/floss-arduino-clone} % \newcommand{\Origin}{/Users/kannan/FOSS/scilab-arduino/floss-arduino-clone} \newcommand{\Home}{/home/sudhakak/Desktop/FLOSS-Arduino-Book} \newcommand{\Origin}{/home/sudhakak/Desktop/FLOSS-Arduino-Book} \newcommand{\bluecolor}[1]{\color{blue}#1\color{black}} \usepackage{color} \usepackage{layouts} %\usepackage{ccicons} \usepackage{morefloats} \usepackage{paralist} \usepackage{chngcntr} \usepackage{layouts} \usepackage{fancyhdr} \pagestyle{headings} \usepackage{amsmath,graphicx,makeidx} \usepackage{fancybox} \usepackage{cite} \usepackage{hyperref} %\usepackage{appendix} \counterwithout{footnote}{chapter} \usepackage{subfig} \usepackage{listings} \usepackage{varioref} % for \vref commands %\usepackage{hyperref} \usepackage{url} \hyphenation{blend-er} %\DeclareFontFamily{OT1}{cmtt}{\hyphenchar \font=-1} \usepackage[T1]{fontenc} \usepackage{beramono} \usepackage{seqsplit} \usepackage{tfrupee} % added to load the \textregistered symbol \usepackage{textcomp} \usepackage{xspace} \newcommand{\portcmd}{\small% , see \fnrefp{fn:port}} \newcommand{\redcolor}[1]{\color{red}#1\color{black}} \newcommand{\codclr}{10pt} \newcommand{\scilab}{Scilab} \newcommand{\arduino}{Arduino Uno} \newcommand{\ie}{\emph{i.e.},} \newcommand{\ourname}[1]{\\ [1.5mm] \noindent{\bf #1}} % Shroff book size %\textheight 7.75in % Dimensions for the size: 7 inches width * 9 inches height % \textheight 7.5in % \textwidth 5.5in % \evensidemargin 0.625in % \oddsidemargin 0.625in % Dimensions for the size: 5.5 inches width * 8.5 inches height \textheight 7in \textwidth 4in \evensidemargin 0.625in \oddsidemargin 0.625in \input{\Home/suppl/styles} \renewcommand\chaptermark[1]{\markboth{\bf {\thechapter. #1}}{}} \renewcommand\sectionmark[1]{\markright{\bf {\thesection. #1}}} \cfoot{} \fancyfoot{} \newcommand{\comment}[1]{\color{red}#1\color{black}} \newcommand{\eatcomment}[0]{\renewcommand{\reminder}[1]{}} \newcommand{\tnfig}{0.3\linewidth} \newcommand{\smfig}{0.45\linewidth}%0.42 \newcommand{\smfigp}{0.49\linewidth}%0.42 \newcommand{\lgfig}{0.65\linewidth}%0.65 \newcommand{\hgfig}{0.9\linewidth} \renewcommand\bibname{References} \newcommand{\figref}[1]{Fig.~\ref{#1}} \newcommand{\figrefp}[1]{Fig.~\vref{#1}} \newcommand{\tabref}[1]{Table~\ref{#1}} \newcommand{\tabrefp}[1]{Table~\vref{#1}} \newcommand{\chapref}[1]{Chapter~\ref{#1}} \newcommand{\secref}[1]{Sec.~\ref{#1}} \newcommand{\sciref}[1]{Scilab~Code~\ref{#1}} \newcommand{\pyref}[1]{Python~Code~\ref{#1}} % added for python \newcommand{\juliaref}[1]{Julia~Code~\ref{#1}} % added for julia \newcommand{\OpenModelicaref}[1]{OpenModelica~Code~\ref{#1}} % added for OpenModelica \newcommand{\ardref}[1]{Arduino~Code~\ref{#1}} \newcommand{\mypageref}[1]{Page~\pageref{#1}} \newcommand{\fnref}[1]{Footnote~\ref{#1}} \newcommand{\fnrefp}[1]{Footnote~\vref{#1}} \renewcommand{\topfraction}{1} \renewcommand{\bottomfraction}{1} \renewcommand{\textfraction}{0} \renewcommand{\floatpagefraction}{1} % \bibliographystyle{./IEEEtran} \bibliographystyle{unsrt} \hyphenation{Ashu-tosh pr-ess} \makeindex % Comment one of the next two lines \def\EntireReport{} %% EntireReport is set to true % \let\EntireReport\undefined %% EntireReport is set to false % If the entire report is not prepared, choose one of scilab, python, % julia, or OM % \newcommand{\Software}{OM} \newcommand{\sscilab}{scilab} \newcommand{\python}{python} \newcommand{\julia}{julia} \newcommand{\OM}{OM} \begin{document} \pagestyle{plain} \pagestyle{empty} \frontmatter \thispagestyle{empty} \ifdefined\EntireReport \input{suppl/title-all} \else \ifx\Software\sscilab \input{suppl/title-scilab} \fi \ifx\Software\python \input{suppl/title-python} \fi \ifx\Software\julia \input{suppl/title-julia} \fi \ifx\Software\OM \input{suppl/title-OM} \fi \fi \input{suppl/license.tex} \pagestyle{headings} \tableofcontents \input{suppl/preface.tex} \listoffigures \listoftables \listofard \ifdefined\EntireReport \listofcode \listofpyd \listofjuliad \listofOpenModelicad \else \ifx\Software\sscilab \listofcode \fi \ifx\Software\python \listofpyd \fi \ifx\Software\julia \listofjuliad \fi \ifx\Software\OM \listofOpenModelicad \fi \fi %\thispagestyle{empty} \addtocontents{toc}{\protect\thispagestyle{empty}} %\input{suppl/preface} %\input{suppl/acr} \input{suppl/acr} \mainmatter \pagestyle{headings} \renewcommand\chaptermark[1]{\markboth{\bf {\thechapter. #1}}{}} \renewcommand\sectionmark[1]{\markright{\bf {\thesection. #1}}} %\input{texfiles/microcontintro.tex} %\input{texfiles/sciaurint.tex} \input{suppl/intro.tex} \input{user-code/hw-env/hw-env.tex} % \input{user-code/sw-env/sw-env.tex} \ifdefined\EntireReport \input{user-code/sw-env/sw-env-base.tex} \input{user-code/sw-env/sw-env-scilab.tex} \input{user-code/sw-env/sw-env-python.tex} \input{user-code/sw-env/sw-env-julia.tex} \input{user-code/sw-env/sw-env-OM.tex} \input{user-code/led/led-base.tex} \input{user-code/led/led-scilab.tex} \input{user-code/led/led-python.tex} \input{user-code/led/led-julia.tex} \input{user-code/led/led-OM.tex} \input{user-code/push/push-base.tex} \input{user-code/push/push-scilab.tex} \input{user-code/push/push-python.tex} \input{user-code/push/push-julia.tex} \input{user-code/push/push-OM.tex} \input{user-code/ldr/ldr-base.tex} \input{user-code/ldr/ldr-scilab.tex} \input{user-code/ldr/ldr-python.tex} \input{user-code/ldr/ldr-julia.tex} \input{user-code/ldr/ldr-OM.tex} \input{user-code/pot/pot-base.tex} \input{user-code/pot/pot-scilab.tex} \input{user-code/pot/pot-python.tex} \input{user-code/pot/pot-julia.tex} \input{user-code/pot/pot-OM.tex} \input{user-code/thermistor/thermistor-base.tex} \input{user-code/thermistor/thermistor-scilab.tex} \input{user-code/thermistor/thermistor-python.tex} \input{user-code/thermistor/thermistor-julia.tex} \input{user-code/thermistor/thermistor-OM.tex} \input{user-code/servo/servo-base.tex} \input{user-code/servo/servo-scilab.tex} \input{user-code/servo/servo-python.tex} \input{user-code/servo/servo-julia.tex} \input{user-code/servo/servo-OM.tex} \input{user-code/dcmotor/dcmotor-base.tex} \input{user-code/dcmotor/dcmotor-scilab.tex} \input{user-code/dcmotor/dcmotor-python.tex} \input{user-code/dcmotor/dcmotor-julia.tex} \input{user-code/dcmotor/dcmotor-OM.tex} \input{user-code/modbus/modbus-base.tex} \input{user-code/modbus/modbus-scilab.tex} \input{user-code/modbus/modbus-python.tex} \input{user-code/modbus/modbus-julia.tex} \input{user-code/modbus/modbus-OM.tex} \else \input{user-code/sw-env/sw-env-base.tex} \input{user-code/sw-env/sw-env-\Software.tex} \input{user-code/led/led-base.tex} \input{user-code/led/led-\Software.tex} \input{user-code/push/push-base.tex} \input{user-code/push/push-\Software.tex} \input{user-code/ldr/ldr-base.tex} \input{user-code/ldr/ldr-\Software.tex} \input{user-code/pot/pot-base.tex} \input{user-code/pot/pot-\Software.tex} \input{user-code/thermistor/thermistor-base.tex} \input{user-code/thermistor/thermistor-\Software.tex} \input{user-code/servo/servo-base.tex} \input{user-code/servo/servo-\Software.tex} \input{user-code/dcmotor/dcmotor-base.tex} \input{user-code/dcmotor/dcmotor-\Software.tex} \input{user-code/modbus/modbus-base.tex} \input{user-code/modbus/modbus-\Software.tex} \fi \input{suppl/appendix.tex} %\input{texfiles/servo.tex} %\input{texfiles/Appendix.tex} %\appendix %\input{texfiles/sp-appendix.tex} %\input{windows/windows} \bibliography{bibliography.bib} %\printindex %\input{texfiles/AuthorInfo.tex} \end{document}