Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LaTeX Template HsH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Wille
LaTeX Template HsH
Commits
e659f6bd
Commit
e659f6bd
authored
4 years ago
by
Jan Wille
Browse files
Options
Downloads
Patches
Plain Diff
einheiten und bilder
parent
513a62af
No related branches found
No related tags found
1 merge request
!7
Example
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
project.pdf
+0
-0
0 additions, 0 deletions
project.pdf
project.tex
+37
-2
37 additions, 2 deletions
project.tex
with
37 additions
and
2 deletions
project.pdf
+
0
−
0
View file @
e659f6bd
No preview for this file type
This diff is collapsed.
Click to expand it.
project.tex
+
37
−
2
View file @
e659f6bd
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment