summaryrefslogtreecommitdiff
path: root/latex/Initial_body
blob: 53e82b4f7ea0416ade9cce20cedff125d501499a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
\nonstopmode
\documentclass[12pt]{report} 
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=blue}
\usepackage{theorem,graphicx}
\usepackage{listings,alltt}
\bibliographystyle{plain}


\lstset{ %configuring the display of scilab codes
             tabsize=4,
             language=scilab,
             basicstyle=\ttfamily,
             aboveskip={1\baselineskip},
             showstringspaces=false,
             breaklines=true,
             showspaces=false,
             numbers=left,
             numberstyle=\small,
             stringstyle=\normalfont,
             keywordstyle=\color{red},
             emph={clc, all, gca},
             emphstyle=\color{red},
             commentstyle=\color{blue}\normalfont}

 
% code environment
{\theorembodyfont{\rmfamily} \newtheorem{codemass}{Scilab code}[chapter]}
\newenvironment{code}%
{\begin{codemass}}{\hrule \end{codemass}}

{\theorembodyfont{\rmfamily} \newtheorem{accmass}{Acc}[chapter]}
\newenvironment{acc-code}%
{\begin{accmass}}{\end{accmass}}


% create listing for code

\newcommand\tcaption[1]
     {\addcontentsline{cod}{section}{\protect\numberline {\thecodemass}#1}}
\makeatletter \newcommand\listofcode
     {\chapter*{List of Experiments\markboth%
                        {\bf List of Scilab Codes}{}}%
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{5em}}%
\addcontentsline{toc}{chapter}{\protect\numberline{List of Scilab Solutions}}
\@starttoc{cod}}
\newcommand\l@matlab[3]
     {#1 \par\noindent#2, #3 \par}
\renewcommand\@pnumwidth{2.1em}
%\makeatother

\makeatletter
\def\curlable#1{\def\thecodemass{#1}\def\@currentlabel{#1}}
\makeatother

\newcommand{\coderef}[1]{Exa~\ref{#1}}
\newcommand{\figref}[1]{Fig.~\ref{#1}}
\renewcommand{\chaptername}{Experiment:}