Commit 9228f435 authored by Maciej Lipinski's avatar Maciej Lipinski Committed by Grzegorz Daniluk

[wrpc/doc] fixed compilation and references to sections

parent 54a7b35e
\documentclass[a4paper, 12pt]{article}
\usepackage[english]{babel}
\usepackage{fullpage}
\usepackage{pgf}
\usepackage{tikz}
% % New line height: 1.05 * 1.2 = 1.26
\renewcommand{\baselinestretch}{1.05}
% To be able to use '\-/' in place of '-' inside \code{}
% so that long function names containing hyphens
% can be broken up after the hyphen:
\usepackage[shortcuts]{extdash}
% So that file names with multiple dots don't confuse
% graphicx package when using \includegraphics command:
\usepackage[multidot]{grffile}
\usepackage{graphicx}
\usepackage[usenames,dvipsnames,x11names]{xcolor}
\usepackage{amsmath}
% Workaround to fix mismatched left and right math delimiters. Taken from:
% http://tex.stackexchange.com/questions/63410/parentheses-differ-xelatex-fontspec-newtxmath-libertine
\DeclareSymbolFont{parenthesis}{T1}{fxl}{m}{n}
\DeclareMathDelimiter{(}{\mathopen}{parenthesis}{"28}{largesymbols}{"00}
\DeclareMathDelimiter{)}{\mathclose}{parenthesis}{"29}{largesymbols}{"01}
\DeclareMathDelimiter{[}{\mathopen}{parenthesis}{"5B}{largesymbols}{"02}
\DeclareMathDelimiter{]}{\mathclose}{parenthesis}{"5D}{largesymbols}{"03}
\DeclareMathDelimiter{\lbrace}{\mathopen}{parenthesis}{"7B}{largesymbols}{"08}
\DeclareMathDelimiter{\rbrace}{\mathclose}{parenthesis}{"7D}{largesymbols}{"09}
\usepackage{fancyvrb}
\usepackage{fancyhdr}
\pagestyle{plain}
\usepackage[final]{pdfpages} % inserts pages from a pdf file
\usepackage{titlesec} % to change the appearance of section titles
\usepackage{listings} % for syntax highlighted code listings
\usepackage{verbatim} % for simple verbatim and comment environments
\usepackage{enumerate} % allows customized labels in enumerations
% \renewcommand{\baselinestretch}{1.05}
%
% % To be able to use '\-/' in place of '-' inside \code{}
% % so that long function names containing hyphens
% % can be broken up after the hyphen:
% \usepackage[shortcuts]{extdash}
%
% % So that file names with multiple dots don't confuse
% % graphicx package when using \includegraphics command:
% \usepackage[multidot]{grffile}
% \usepackage{graphicx}
%
% \usepackage[usenames,dvipsnames,x11names]{xcolor}
% \usepackage{amsmath}
%
% % Workaround to fix mismatched left and right math delimiters. Taken from:
% % http://tex.stackexchange.com/questions/63410/parentheses-differ-xelatex-fontspec-newtxmath-libertine
% \DeclareSymbolFont{parenthesis}{T1}{fxl}{m}{n}
% \DeclareMathDelimiter{(}{\mathopen}{parenthesis}{"28}{largesymbols}{"00}
% \DeclareMathDelimiter{)}{\mathclose}{parenthesis}{"29}{largesymbols}{"01}
% \DeclareMathDelimiter{[}{\mathopen}{parenthesis}{"5B}{largesymbols}{"02}
% \DeclareMathDelimiter{]}{\mathclose}{parenthesis}{"5D}{largesymbols}{"03}
% \DeclareMathDelimiter{\lbrace}{\mathopen}{parenthesis}{"7B}{largesymbols}{"08}
% \DeclareMathDelimiter{\rbrace}{\mathclose}{parenthesis}{"7D}{largesymbols}{"09}
%
% \usepackage{fancyvrb}
% \usepackage{fancyhdr}
% \pagestyle{plain}
% \usepackage[final]{pdfpages} % inserts pages from a pdf file
%
% \usepackage{titlesec} % to change the appearance of section titles
% \usepackage{listings} % for syntax highlighted code listings
% \usepackage{verbatim} % for simple verbatim and comment environments
% \usepackage{enumerate} % allows customized labels in enumerations
\usepackage{hyperref} % makes cross references and URLs clickable
\definecolor{LinkRed}{HTML}{80171F}
\hypersetup{
pdfauthor={Harold Abelson, Gerald Jay Sussman, Julie Sussman},
pdftitle={Structure and Interpretation of Computer Programs, 2nd ed.},
pdfsubject={computer science, programming, abstraction},
colorlinks=true,
linkcolor=LinkRed,
urlcolor=LinkRed,
}
% Document colors
\definecolor{SchemeLight} {HTML} {686868}
\definecolor{SchemeSteel} {HTML} {888888}
\definecolor{SchemeDark} {HTML} {262626}
\definecolor{SchemeBlue} {HTML} {4172A3}
\definecolor{SchemeGreen} {HTML} {487818}
\definecolor{SchemeBrown} {HTML} {A07040}
\definecolor{SchemeRed} {HTML} {AD4D3A}
\definecolor{SchemeViolet} {HTML} {7040A0}
\definecolor{DropCapGray} {HTML} {B8B8B8}
\definecolor{ChapterGray} {HTML} {C8C8C8}
\definecolor{ChapterViolet} {HTML} {AEAECE}
\definecolor{DropCapViolet} {HTML} {9090C0}
\usepackage{lettrine} % adds commands that make drop capitals
\renewcommand{\LettrineFontHook}{\rmfamily\mdseries\color{DropCapViolet}}
\renewcommand{\DefaultLraise}{0.00}
\renewcommand{\DefaultLoversize}{0.02}
\renewcommand{\DefaultLhang}{0.12}
\setlength{\DefaultFindent}{1pt}
\setlength{\DefaultNindent}{0em}
\lstset{%
% Scheme syntax highlighter
columns=fixed,
extendedchars=true,
upquote=true,
showstringspaces=false,
sensitive=false,
mathescape=true,
escapechar=~,
alsodigit={>,<,/,-,=,!,?,*},
alsoletter=',
morestring=[b]",
morecomment=[l];,
% Keyword list taken form functional.py in Pygments package:
morekeywords={lambda, define, if, else, cond, and, or, case,%
let, let*, letrec, begin, do, delay, set!, =>, quote,%
quasiquote, unquote, unquote-splicing, define-syntax, let-syntax,%
letrec-syntax, syntax-rules},
% If keywords are quoted, they must not be highlighted:
emph={'lambda, 'define, 'if, 'else, 'cond, 'and, 'or, 'case,%
'let, 'let*, 'letrec, 'begin, 'do, 'delay, 'set!, '=>, 'quote,%
'quasiquote, 'unquote, 'unquote-splicing, 'define-syntax, 'let-syntax,%
'letrec-syntax, 'syntax-rules},
emphstyle=\color{SchemeDark},
% Paint error red:
emph={[2]error},emphstyle=[2]\color{SchemeRed},%
% Builtins taken from functional.py:
emph={[3]*, +, -, /, <, <=, =, >, >=, abs, acos, angle,
append, apply, asin, assoc, assq, assv, atan,
boolean?, caaaar, caaadr, caaar, caadar, caaddr, caadr,
caar, cadaar, cadadr, cadar, caddar, cadddr, caddr,
cadr, call-with-current-continuation, call-with-input-file,
call-with-output-file, call-with-values, call/cc, car,
cdaaar, cdaadr, cdaar, cdadar, cdaddr, cdadr, cdar,
cddaar, cddadr, cddar, cdddar, cddddr, cdddr, cddr,
cdr, ceiling, char->integer, char-alphabetic?, char-ci<=?,
char-ci<?, char-ci=?, char-ci>=?, char-ci>?, char-downcase,
char-lower-case?, char-numeric?, char-ready?, char-upcase,
char-upper-case?, char-whitespace?, char<=?, char<?, char=?,
char>=?, char>?, char?, close-input-port, close-output-port,
complex?, cons, cos, current-input-port, current-output-port,
denominator, display, dynamic-wind, eof-object?, eq?,
equal?, eqv?, eval, even?, exact->inexact, exact?, exp,
expt, floor, for-each, force, gcd, imag-part,
inexact->exact, inexact?, input-port?, integer->char,
integer?, interaction-environment, lcm, length, list,
list->string, list->vector, list-ref, list-tail, list?,
load, log, magnitude, make-polar, make-rectangular,
make-string, make-vector, map, max, member, memq, memv,
min, modulo, negative?, newline, not, null-environment,
null?, number->string, number?, numerator, odd?,
open-input-file, open-output-file, output-port?, pair?,
peek-char, port?, positive?, procedure?, quotient,
rational?, rationalize, read, read-char, real-part, real?,
remainder, reverse, round, scheme-report-environment,
set-car!, set-cdr!, sin, sqrt, string, string->list,
string->number, string->symbol, string-append, string-ci<=?,
string-ci<?, string-ci=?, string-ci>=?, string-ci>?,
string-copy, string-fill!, string-length, string-ref,
string-set!, string<=?, string<?, string=?, string>=?,
string>?, string?, substring, symbol->string, symbol?,
tan, transcript-off, transcript-on, truncate, values,
vector, vector->list, vector-fill!, vector-length,
vector-ref, vector-set!, vector?, with-input-from-file,
with-output-to-file, write, write-char, zero?},
emphstyle=[3]\color{SchemeViolet},%
%
basicstyle=\color{SchemeLight}\ttfamily,
keywordstyle=\color{SchemeBlue}\bfseries,
identifierstyle=\color{SchemeDark},
stringstyle=\color{SchemeGreen},
commentstyle=\color{SchemeLight}\itshape,
}
\newcommand{\acronym}[1]{\textsc{\fontspec[Numbers={OldStyle}]{Linux Libertine O}\MakeLowercase{#1}}}
\newcommand{\uppersc}[1]{{\fontspec[Letters=UppercaseSmallCaps]{Linux Libertine O}#1}}
\newcommand{\newterm}[1]{\index{#1}\emph{#1}}
\newcommand{\strong}[1]{\textbf{#1}}
\newcommand{\var}[1]{\textsl{#1}}
% \definecolor{LinkRed}{HTML}{80171F}
% \hypersetup{
% pdfauthor={Harold Abelson, Gerald Jay Sussman, Julie Sussman},
% pdftitle={Structure and Interpretation of Computer Programs, 2nd ed.},
% pdfsubject={computer science, programming, abstraction},
% colorlinks=true,
% linkcolor=LinkRed,
% urlcolor=LinkRed,
% }
%
% % Document colors
% \definecolor{SchemeLight} {HTML} {686868}
% \definecolor{SchemeSteel} {HTML} {888888}
% \definecolor{SchemeDark} {HTML} {262626}
% \definecolor{SchemeBlue} {HTML} {4172A3}
% \definecolor{SchemeGreen} {HTML} {487818}
% \definecolor{SchemeBrown} {HTML} {A07040}
% \definecolor{SchemeRed} {HTML} {AD4D3A}
% \definecolor{SchemeViolet} {HTML} {7040A0}
% \definecolor{DropCapGray} {HTML} {B8B8B8}
% \definecolor{ChapterGray} {HTML} {C8C8C8}
% \definecolor{ChapterViolet} {HTML} {AEAECE}
% \definecolor{DropCapViolet} {HTML} {9090C0}
%
% \usepackage{lettrine} % adds commands that make drop capitals
% \renewcommand{\LettrineFontHook}{\rmfamily\mdseries\color{DropCapViolet}}
% \renewcommand{\DefaultLraise}{0.00}
% \renewcommand{\DefaultLoversize}{0.02}
% \renewcommand{\DefaultLhang}{0.12}
% \setlength{\DefaultFindent}{1pt}
% \setlength{\DefaultNindent}{0em}
%
% \lstset{%
% % Scheme syntax highlighter
% columns=fixed,
% extendedchars=true,
% upquote=true,
% showstringspaces=false,
% sensitive=false,
% mathescape=true,
% escapechar=~,
% alsodigit={>,<,/,-,=,!,?,*},
% alsoletter=',
% morestring=[b]",
% morecomment=[l];,
% % Keyword list taken form functional.py in Pygments package:
% morekeywords={lambda, define, if, else, cond, and, or, case,%
% let, let*, letrec, begin, do, delay, set!, =>, quote,%
% quasiquote, unquote, unquote-splicing, define-syntax, let-syntax,%
% letrec-syntax, syntax-rules},
% % If keywords are quoted, they must not be highlighted:
% emph={'lambda, 'define, 'if, 'else, 'cond, 'and, 'or, 'case,%
% 'let, 'let*, 'letrec, 'begin, 'do, 'delay, 'set!, '=>, 'quote,%
% 'quasiquote, 'unquote, 'unquote-splicing, 'define-syntax, 'let-syntax,%
% 'letrec-syntax, 'syntax-rules},
% emphstyle=\color{SchemeDark},
% % Paint error red:
% emph={[2]error},emphstyle=[2]\color{SchemeRed},%
% % Builtins taken from functional.py:
% emph={[3]*, +, -, /, <, <=, =, >, >=, abs, acos, angle,
% append, apply, asin, assoc, assq, assv, atan,
% boolean?, caaaar, caaadr, caaar, caadar, caaddr, caadr,
% caar, cadaar, cadadr, cadar, caddar, cadddr, caddr,
% cadr, call-with-current-continuation, call-with-input-file,
% call-with-output-file, call-with-values, call/cc, car,
% cdaaar, cdaadr, cdaar, cdadar, cdaddr, cdadr, cdar,
% cddaar, cddadr, cddar, cdddar, cddddr, cdddr, cddr,
% cdr, ceiling, char->integer, char-alphabetic?, char-ci<=?,
% char-ci<?, char-ci=?, char-ci>=?, char-ci>?, char-downcase,
% char-lower-case?, char-numeric?, char-ready?, char-upcase,
% char-upper-case?, char-whitespace?, char<=?, char<?, char=?,
% char>=?, char>?, char?, close-input-port, close-output-port,
% complex?, cons, cos, current-input-port, current-output-port,
% denominator, display, dynamic-wind, eof-object?, eq?,
% equal?, eqv?, eval, even?, exact->inexact, exact?, exp,
% expt, floor, for-each, force, gcd, imag-part,
% inexact->exact, inexact?, input-port?, integer->char,
% integer?, interaction-environment, lcm, length, list,
% list->string, list->vector, list-ref, list-tail, list?,
% load, log, magnitude, make-polar, make-rectangular,
% make-string, make-vector, map, max, member, memq, memv,
% min, modulo, negative?, newline, not, null-environment,
% null?, number->string, number?, numerator, odd?,
% open-input-file, open-output-file, output-port?, pair?,
% peek-char, port?, positive?, procedure?, quotient,
% rational?, rationalize, read, read-char, real-part, real?,
% remainder, reverse, round, scheme-report-environment,
% set-car!, set-cdr!, sin, sqrt, string, string->list,
% string->number, string->symbol, string-append, string-ci<=?,
% string-ci<?, string-ci=?, string-ci>=?, string-ci>?,
% string-copy, string-fill!, string-length, string-ref,
% string-set!, string<=?, string<?, string=?, string>=?,
% string>?, string?, substring, symbol->string, symbol?,
% tan, transcript-off, transcript-on, truncate, values,
% vector, vector->list, vector-fill!, vector-length,
% vector-ref, vector-set!, vector?, with-input-from-file,
% with-output-to-file, write, write-char, zero?},
% emphstyle=[3]\color{SchemeViolet},%
% %
% basicstyle=\color{SchemeLight}\ttfamily,
% keywordstyle=\color{SchemeBlue}\bfseries,
% identifierstyle=\color{SchemeDark},
% stringstyle=\color{SchemeGreen},
% commentstyle=\color{SchemeLight}\itshape,
% }
%
% \newcommand{\acronym}[1]{\textsc{\fontspec[Numbers={OldStyle}]{Linux Libertine O}\MakeLowercase{#1}}}
% \newcommand{\uppersc}[1]{{\fontspec[Letters=UppercaseSmallCaps]{Linux Libertine O}#1}}
% \newcommand{\newterm}[1]{\index{#1}\emph{#1}}
% \newcommand{\strong}[1]{\textbf{#1}}
% \newcommand{\var}[1]{\textsl{#1}}
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\link}[1]{\hyperref[#1]{#1}}
\newcommand{\heading}[1]{{\sffamily\bfseries #1}}
\newcommand{\dark}{\color{SchemeDark}}
\newcommand{\mono}[1]{\hbox{\ttfamily\scriptsize #1}}
\newcommand{\monoit}[1]{\hbox{\ttfamily\itshape\scriptsize #1}}
\newenvironment{example}%
{\verbatim\small}%
{\endverbatim}
\newenvironment{smallexample}%
{\verbatim\footnotesize}%
{\endverbatim}
\lstnewenvironment{scheme}[1][]
{\lstset{basicstyle=\ttfamily\small\color{SchemeLight},#1}}
{}
\lstnewenvironment{smallscheme}[1][]
{\lstset{basicstyle=\ttfamily\footnotesize\color{SchemeLight},#1}}
{}
\makeindex
% \newcommand{\link}[1]{\textit{#1}}
% \newcommand{\heading}[1]{{\sffamily\bfseries #1}}
% \newcommand{\dark}{\color{SchemeDark}}
% \newcommand{\mono}[1]{\hbox{\ttfamily\scriptsize #1}}
% \newcommand{\monoit}[1]{\hbox{\ttfamily\itshape\scriptsize #1}}
%
% \newenvironment{example}%
% {\verbatim\small}%
% {\endverbatim}
%
% \newenvironment{smallexample}%
% {\verbatim\footnotesize}%
% {\endverbatim}
%
% \lstnewenvironment{scheme}[1][]
% {\lstset{basicstyle=\ttfamily\small\color{SchemeLight},#1}}
% {}
%
% \lstnewenvironment{smallscheme}[1][]
% {\lstset{basicstyle=\ttfamily\footnotesize\color{SchemeLight},#1}}
% {}
%
% \makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% new stuff
\usepackage[overload]{textcase}
......@@ -1784,7 +1788,7 @@ initialization script\\
% ##########################################################################
\clearpage
\label{WRPC GUI elements}
\section{ WRPC GUI elements}
\section{WRPC GUI elements}
\footnotesize
\begin{longtable}{ p{8cm} p{6cm} }
......@@ -1853,7 +1857,7 @@ the \codeHook{wr} servo is updated\\
% ##########################################################################
\clearpage
\label{Writing \codeHook{sdbfs} image in standalone configuration}
\label{Writing SDBFS image in standalone configuration}
\section{Writing SDBFS image in standalone configuration}
If you use \codeHook{spec} board in a host-less environment, or you use custom
......@@ -1889,7 +1893,7 @@ write your \textit{output.mcs} file to the Flash memory.
% ##########################################################################
\label{wrpc-dump with Older WRPC Binaries}
\section{ wrpc-dump with Older WRPC Binaries}
\section{wrpc-dump with Older WRPC Binaries}
The tool has another working mode, that you can use with older
\textit{wrpc} builds, where the special table is missing (but please be
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment