diff --git a/project.pdf b/project.pdf index 6e1177dd3313a2c1020f34db5882ace07a73bd44..c40441ab547d45bf56ec9151a5d2b0c275a355f7 100644 Binary files a/project.pdf and b/project.pdf differ diff --git a/project.tex b/project.tex index ee4fb349bb211d206b2fe8cf8aa88e90802b9774..edefeb8639e72bd0dbd0b7b2aa6f58258701591d 100644 --- a/project.tex +++ b/project.tex @@ -36,16 +36,30 @@ using Units: $R=200\,\milli\ohm + \SI{0.34567453}{\volt\per\metre} - 5\,\si{\second\per\metre\squared}$ \\ some information\cite{laboranleitung:physik}\\ german number: $3,5$ english number: $3.5$\\ + + \section{using images} + Images can just be imported and used in a float enviroment with a caption and a lable to reference it. \begin{figure} \includegraphics[width=.6\textwidth]{img/lorem-ipsum.jpg} \caption{just a random image} \end{figure} + Plots can be created direktly with latex. It is recomendet to do this in subfiles and just import the finished PDF pages. This speed us + compiletimes by a lot. You should not change the size of precompiled images to keep fontsizes consistent. + \pagebreak \begin{figure} - \includegraphics[width=0.6\textwidth, page=2]{plt/build/examplePlot.pdf} + \includegraphics[page=2]{plt/build/examplePlot.pdf} \caption[centering]{a nice plot} + \label{fig: plot1} + \end{figure} + \begin{figure} + \includegraphics[page=1]{plt/build/examplePlot.pdf} + \caption{a area plot} + \label{fig: area} \end{figure} + Circuit diagramms can also be created using a package called \lstinline{circuitikz}. It is also recomendet to get formiliar with Inkscape which + has a very good export to latex feature. \begin{figure} \graphicspath{{svg/build/}} % double curly brackets needet for unknown reason \subfigure[a circuit diagramm]{\includegraphics{crc/build/exampleCircuit.pdf}} @@ -54,7 +68,7 @@ \caption{using two figures} \end{figure} - \section{demo nested listing} +\section{demo nested listing} \begin{itemize} \item hallo \begin{itemize} @@ -68,6 +82,27 @@ \end{itemize} \end{itemize} +\section{using Units} + For this the \lstinline{siunitx} package is used. It provides Macros for all units. + \begin{equation} + 200\,\ohm + \end{equation} + The space betwen a number and it's unit shoud be a protected half-space, which can be created in latex using \lstinline{\,} In the classfile + siunits is set up to use a seperate macro for each subunit, even for size-modifiers: + \begin{equation} + 200\,\milli\metre \cdot 2\,\mega\volt + \end{equation} + Siunits also allows for reformating of numbers as well as units. Use the \lstinline{\SI} and \lstinline{\si} macros for that: + \begin{equation} + e = \SI{1.602176634E-19}{\coulomb} % formats number + units, autospacing, transform to gernam comma + \end{equation} + \begin{equation} + 124\,\si[per-mode=fraction]{\kilo\metre\per\second\squared} % only units + \end{equation} + \begin{equation} + \num{0.0004}\,\lumen % only numbers, \per and \squared do not work + \end{equation} + \section{Using formulas} \label{sec: formula} a numberd formula: