diff options
| author | mo khan <mo@mokhan.ca> | 2016-02-08 09:56:05 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-02-08 09:56:05 -0700 |
| commit | 8af61bdcef2a16724d125723a5297f9ffef7ed76 (patch) | |
| tree | 60630088d98d400982c132725c31f57219ed6962 | |
| parent | 88b5f75209b201530d4761532f214b12d99a0f99 (diff) | |
draw a graphic.
| -rw-r--r-- | report/template.tex | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/report/template.tex b/report/template.tex index 6da5910..2aa33d8 100644 --- a/report/template.tex +++ b/report/template.tex @@ -5,15 +5,12 @@ \usepackage{pgfplotstable} \usepackage{pgfplots} \usepackage{siunitx} -\usepackage{tikz} % to generate the plot from csv +\usepackage{tikz} \pgfplotsset{compat=newest} % place the legend below the plot \usepgfplotslibrary{units} % display units nicely -\sisetup{ - round-mode = places, - round-precision = 2, -} +\sisetup{round-mode = places, round-precision = 2} \title{My first document} %\date{} @@ -62,7 +59,7 @@ This is some example text\footnote{\label{myfootnote}Hello footnote}. \label{fig:boat1} \end{figure} -Figure \ref{fig:boat1} shows a boat. +Figure~\ref{fig:boat1} shows a boat. \begin{table}[h!] \centering @@ -75,7 +72,7 @@ Figure \ref{fig:boat1} shows a boat. \end{tabular} \end{table} -I'm referring to footnote \ref{myfootnote}. +I'm referring to footnote~\ref{myfootnote}. \begin{table}[h!] \centering @@ -100,23 +97,14 @@ I'm referring to footnote \ref{myfootnote}. \newpage \begin{table}[h!] \begin{center} - \caption{Autogenerated table from .csv file.} - \label{table4} + \caption{Autogenerated table from csv file} +\label{table4} \pgfplotstabletypeset[ multicolumn names, % allows to have multicolumn names col sep=comma, % the seperator in our .csv file - display columns/0/.style={ - column name=$Value 1$, % name of first column - column type={S},string type}, % use siunitx for formatting - display columns/1/.style={ - column name=$Value 2$, - column type={S},string type}, - every head row/.style={ - before row={\toprule}, % have a rule at top - after row={ - \si{\ampere} & \si{\volt}\\ % the units seperated by & - \midrule} % rule under units - }, + display columns/0/.style={column name=$Value 1$, column type={S},string type}, + display columns/1/.style={column name=$Value 2$, column type={S},string type}, + every head row/.style={before row={\toprule}, after row={\si{\ampere} & \si{\volt}\\ \midrule}}, every last row/.style={after row=\bottomrule}, % rule at bottom ]{table.csv} % filename/path to file \end{center} @@ -148,6 +136,22 @@ I'm referring to footnote \ref{myfootnote}. \end{figure} \newpage +\begin{figure}[h!] + \begin{center} + \begin{tikzpicture} + \draw [red,dashed] (-2.5,2.5) rectangle (-1.5,1.5) node [black,below] {Start}; + \draw [thick] (-2,2) + to [out=10,in=190] (2,2) + to [out=10,in=90] (6,0) + to [out=-90,in=30] (-2,-2); + \draw [fill] (5,0.1) rectangle (7,-0.1) node [black,right] {Obstacle}; + \draw [red,fill] (-2,-2) circle [radius=0.2] node [black,below=4] {Point of interest}; % draw a circle + \end{tikzpicture} + \caption{Example graphic made with tikz.} + \end{center} +\end{figure} + +\newpage \begin{appendix} \listoffigures \listoftables |
