varfor inte skriver en bok om C
This commit is contained in:
parent
3cce24f2f8
commit
e48a545eb2
33
embedded_c_book/Makefile
Normal file
33
embedded_c_book/Makefile
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
all: copy bib book
|
||||||
|
|
||||||
|
book:
|
||||||
|
pdflatex book
|
||||||
|
makeindex book.glo -s book.ist -t book.glg -o book.gls
|
||||||
|
acroread book.pdf || evince book.pdf
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm book.pdf
|
||||||
|
rm -rf book.aux book.blg book.glo book.ist book.lof book.lot \
|
||||||
|
book.pdf book.tex~ book.toc book.bbl book.glg book.gls \
|
||||||
|
book.loa book.log book.out book.tex.backup
|
||||||
|
|
||||||
|
bib:
|
||||||
|
pdflatex book # do this first otherwise bibtex gets its knickers in a twist
|
||||||
|
bibtex book
|
||||||
|
copy:
|
||||||
|
echo "chapters submake"; sleep 2
|
||||||
|
|
||||||
|
#
|
||||||
|
#cd CH1_introduction; make copy
|
||||||
|
#cd CH2_FMEA; make copy
|
||||||
|
#cd CH3_FMEA_criticism; make copy
|
||||||
|
#cd CH4_FMMD; make copy
|
||||||
|
#cd CH5_Examples; make copy
|
||||||
|
#cd CH6_Software_Examples; make copy
|
||||||
|
#cd CH7_Evaluation; make copy
|
||||||
|
#cd CH8_Conclusion; make copy
|
||||||
|
#cd CH8_finsh_appendixes; make copy
|
||||||
|
|
135
embedded_c_book/book.tex
Normal file
135
embedded_c_book/book.tex
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
|
||||||
|
\documentclass[a4paper,10pt]{book}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
\usepackage{multirow}
|
||||||
|
\usepackage{tikz}
|
||||||
|
\usetikzlibrary{shapes,snakes}
|
||||||
|
\usetikzlibrary{shapes.gates.logic.US,trees,positioning,arrows}
|
||||||
|
\usepackage{subfigure}
|
||||||
|
\usepackage{amsfonts,amsmath,amsthm}
|
||||||
|
\usepackage{algorithm}
|
||||||
|
\usepackage{algorithmic}
|
||||||
|
\usepackage{lastpage}
|
||||||
|
\usepackage{glossary}
|
||||||
|
\renewcommand{\baselinestretch}{1.5}
|
||||||
|
\makeglossary
|
||||||
|
|
||||||
|
%% fix for hyperref bug in algorithm package
|
||||||
|
\newcommand{\theHalgorithm}{\thechapter.\arabic{algorithm}}
|
||||||
|
\usepackage{ifthen}
|
||||||
|
\newboolean{pld}
|
||||||
|
\setboolean{pld}{false} % boolvar=true or false
|
||||||
|
\newboolean{paper}
|
||||||
|
\setboolean{paper}{false} % boolvar=true or false
|
||||||
|
\input{style}
|
||||||
|
\usepackage{hyperref}
|
||||||
|
%\begin{document}
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhf{}
|
||||||
|
\cfoot{Page \thepage}
|
||||||
|
|
||||||
|
\newcommand{\chappap}{chapter}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\input{titlepage/titlepage}
|
||||||
|
|
||||||
|
\clearpage
|
||||||
|
|
||||||
|
%\rhead{{\small\bf Failure Mode Modular De-Composition}}
|
||||||
|
%\rfoot{{\small\bf PhD Thesis : R.P. Clark } }
|
||||||
|
|
||||||
|
% Contents
|
||||||
|
% --------
|
||||||
|
|
||||||
|
%\cfoot{Page \thepage} % Contents page numbers centred
|
||||||
|
|
||||||
|
\clearpage
|
||||||
|
%\input{colophon/colophon}
|
||||||
|
\clearpage
|
||||||
|
|
||||||
|
\tableofcontents
|
||||||
|
\listoffigures
|
||||||
|
\listoftables
|
||||||
|
\listofalgorithms
|
||||||
|
|
||||||
|
%
|
||||||
|
\cleardoublepage
|
||||||
|
|
||||||
|
% Main text
|
||||||
|
% ---------
|
||||||
|
|
||||||
|
%
|
||||||
|
%\middlefoot{ } \outerfoot{{Page \bf\thepage}} % Body of manual has bolded page
|
||||||
|
% numbers at outer edges
|
||||||
|
\pagenumbering{arabic} % Arabic page numbers hereafter
|
||||||
|
\cfoot{Page \thepage\ of \pageref{LastPage}}
|
||||||
|
\lfoot{University of Bluuugghhhhhhh} %% Year keeps fucking incrementing
|
||||||
|
\rfoot{R.P.Clark \today}
|
||||||
|
\lhead{Left Header}
|
||||||
|
\rhead{Right Header}
|
||||||
|
%\begin{document}
|
||||||
|
|
||||||
|
%\typeout{>>--------------------->> introduction}
|
||||||
|
\chapter{Introduction}
|
||||||
|
\input{CH1_introduction/copy}
|
||||||
|
|
||||||
|
\chapter{Self Checking}
|
||||||
|
|
||||||
|
\chapter{Monitors and instrument loops}
|
||||||
|
|
||||||
|
\chapter{Binary Scaling}
|
||||||
|
|
||||||
|
\chapter{Filtering/smoothing}
|
||||||
|
|
||||||
|
\chapter{Reading Voltages}
|
||||||
|
|
||||||
|
\chapter{PWM}
|
||||||
|
|
||||||
|
\chapter{Interrupt Contention}
|
||||||
|
|
||||||
|
\chapter{Sensible ue of Pointers}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\appendix
|
||||||
|
%\input{appendixes/detailed_analysis}
|
||||||
|
%\input{appendixes/formal}
|
||||||
|
%\input{appendixes/algorithmic}
|
||||||
|
|
||||||
|
\nocite{alggraph}
|
||||||
|
\nocite{ince}
|
||||||
|
\nocite{f77}
|
||||||
|
|
||||||
|
%%% ONLY NEEDED IF WE HAVE APPENDIXES
|
||||||
|
%\chapter{Conclusion}
|
||||||
|
%\input{CH8_finish_appendixes/copy}
|
||||||
|
|
||||||
|
|
||||||
|
%\chapter{FMMD tool : Design Issues}
|
||||||
|
%
|
||||||
|
%reference the MSC document and describe the Java extension classes.
|
||||||
|
%Software documentation for fmmd tool.
|
||||||
|
%
|
||||||
|
%\typeout{ ---------------- Euler Diagrams represented as graphs}
|
||||||
|
%\chapter {Euler Diagrams \\ Represented as graphs}
|
||||||
|
%\input{eulerg/eulerg}
|
||||||
|
%
|
||||||
|
%\chapter{Fast Zone Discrimination Algorithm}
|
||||||
|
%\input{fzd/fzd}
|
||||||
|
%
|
||||||
|
%\chapter{Milli Volt Amp with Safety Resistor}
|
||||||
|
%\input{millivoltamp/millivoltamp}
|
||||||
|
%
|
||||||
|
%\chapter{A detailed look at the safety systems required by industrial burner controller}
|
||||||
|
%\input{burner/burner}
|
||||||
|
%%\glossary{name={test glossary name}, description={test glossary entry description}}
|
||||||
|
|
||||||
|
\printglossary
|
||||||
|
\addcontentsline{toc}{chapter}{Glossary}
|
||||||
|
|
||||||
|
\bibliographystyle{plain}
|
||||||
|
\bibliography{../mybib}
|
||||||
|
|
||||||
|
\end{document}
|
61
embedded_c_book/titlepage/titlepage.tex
Normal file
61
embedded_c_book/titlepage/titlepage.tex
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
|
||||||
|
% Title page
|
||||||
|
% ----------
|
||||||
|
%
|
||||||
|
%\middlefoot{ } % No page number on title page
|
||||||
|
\begin{center}
|
||||||
|
|
||||||
|
\pagenumbering{roman} % Lower case roman page numbers
|
||||||
|
{\LARGE \bf Embedded C }
|
||||||
|
|
||||||
|
\vspace{2.15in}
|
||||||
|
|
||||||
|
{
|
||||||
|
\bf Embedded C
|
||||||
|
}
|
||||||
|
|
||||||
|
%\vbox
|
||||||
|
%{
|
||||||
|
%Modularising FMEA has benefits of rigor, re-usability of analysis
|
||||||
|
%and the integration of hardware and software in failure effects modelling.
|
||||||
|
%%}
|
||||||
|
|
||||||
|
%
|
||||||
|
\rule{380pt}{1pt}
|
||||||
|
|
||||||
|
|
||||||
|
\vspace{1.15in}
|
||||||
|
|
||||||
|
{\LARGE \bf ........ HippyDippy of Brighton }
|
||||||
|
|
||||||
|
\vspace{0.3in}
|
||||||
|
\rule{120pt}{1pt}
|
||||||
|
\vspace{0.1in}
|
||||||
|
|
||||||
|
{\bf ...........}
|
||||||
|
|
||||||
|
\vspace{0.1in}
|
||||||
|
\rule{120pt}{1pt}
|
||||||
|
\vspace{0.3in}
|
||||||
|
|
||||||
|
\vspace{1.0in}
|
||||||
|
|
||||||
|
|
||||||
|
{\large Author : R.P. Clark - \today }
|
||||||
|
|
||||||
|
\rule{380pt}{1pt}
|
||||||
|
|
||||||
|
\end{center}
|
||||||
|
|
||||||
|
%\vspace{1.0in}
|
||||||
|
%\begin{verbatim}
|
||||||
|
% Robin Clark
|
||||||
|
% 68 Vale Avenue,
|
||||||
|
% Brighton,
|
||||||
|
% East Sussex
|
||||||
|
%
|
||||||
|
%\end{verbatim}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%
|
Loading…
Reference in New Issue
Block a user