Skip to content
Snippets Groups Projects
Commit e659f6bd authored by Jan Wille's avatar Jan Wille
Browse files

einheiten und bilder

parent 513a62af
No related branches found
No related tags found
1 merge request!7Example
No preview for this file type
......@@ -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}}
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment