Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make expert additions #410

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions exercises-latex/example-lab-report/loesung/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
all:
$(MAKE) -C v16516

clean:
$(MAKE) -C v16516 clean

.PHONY: all cleanX
12 changes: 12 additions & 0 deletions exercises-latex/example-lab-report/loesung/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Vorlage für Praktikumsprotokolle


Dieser Ordner enthält die Struktur für Praktikumsprotokolle mit
allem, was in diesem Kurs besprochen wurde.

In Basisordner liegt der LaTeX-Header, Literaturdatenbank (`lit.bib`) sowie die der LaTeX-Header für matplotlib
und die matplotlibrc.
Außerdem haben wir in `programme.bib` die korrekten Quellen für die verwendete Software angegeben.

In dem Unterordner `vXXX` liegt dann ein Template für einen einzelnen Versuch,
welches für die jeweiligen Versuche kopiert und „ausgefüllt“ werden kann.
44 changes: 44 additions & 0 deletions exercises-latex/example-lab-report/loesung/header-matplotlib.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
% unverzichtbare Mathe-Befehle
\usepackage{amsmath}
% viele Mathe-Symbole
\usepackage{amssymb}
% Erweiterungen für amsmath
\usepackage{mathtools}
% Fonteinstellungen
\usepackage{fontspec}
% Latin Modern Fonts werden automatisch geladen

\usepackage[
math-style=ISO, % ┐
bold-style=ISO, % │
sans-style=italic, % │ ISO-Standard folgen
nabla=upright, % │
partial=upright, % ┘
warnings-off={ % ┐
mathtools-colon, % │ unnötige Warnungen ausschalten
mathtools-overbracket, % │
}, % ┘
]{unicode-math}

% traditionelle Fonts für Mathematik
\setmathfont{Latin Modern Math}
\setmathfont{XITS Math}[range={scr, bfscr}]
\setmathfont{XITS Math}[range={cal, bfcal}, StylisticSet=1]

% Zahlen und Einheiten
\usepackage[
locale=DE, % deutsche Einstellungen
separate-uncertainty=true, % immer Unsicherheit mit \pm
per-mode=reciprocal, % ^-1 für inverse Einheiten
output-decimal-marker=., % . statt , für Dezimalzahlen
]{siunitx}

% chemische Formeln
\usepackage[
version=4,
math-greek=default, % ┐ mit unicode-math zusammenarbeiten
text-greek=default, % ┘
]{mhchem}

% schöne Brüche im Text
\usepackage{xfrac}
140 changes: 140 additions & 0 deletions exercises-latex/example-lab-report/loesung/header.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
\documentclass[
bibliography=totoc, % Literatur im Inhaltsverzeichnis
captions=tableheading, % Tabellenüberschriften
titlepage=firstiscover, % Titelseite ist Deckblatt
]{scrartcl}

% Paket float verbessern
\usepackage{scrhack}

% Warnung, falls nochmal kompiliert werden muss
\usepackage[aux]{rerunfilecheck}

% unverzichtbare Mathe-Befehle
\usepackage{amsmath}
% viele Mathe-Symbole
\usepackage{amssymb}
% Erweiterungen für amsmath
\usepackage{mathtools}

% Fonteinstellungen
\usepackage{fontspec}
% Latin Modern Fonts werden automatisch geladen
% Alternativ zum Beispiel:
%\setromanfont{Libertinus Serif}
%\setsansfont{Libertinus Sans}
%\setmonofont{Libertinus Mono}

% Wenn man andere Schriftarten gesetzt hat,
% sollte man das Seiten-Layout neu berechnen lassen
\recalctypearea{}

% deutsche Spracheinstellungen
\usepackage[ngerman]{babel}


\usepackage[
math-style=ISO, % ┐
bold-style=ISO, % │
sans-style=italic, % │ ISO-Standard folgen
nabla=upright, % │
partial=upright, % │
mathrm=sym, % ┘
warnings-off={ % ┐
mathtools-colon, % │ unnötige Warnungen ausschalten
mathtools-overbracket, % │
}, % ┘
]{unicode-math}

% traditionelle Fonts für Mathematik
\setmathfont{Latin Modern Math}
% Alternativ zum Beispiel:
%\setmathfont{Libertinus Math}

\setmathfont{XITS Math}[range={scr, bfscr}]
\setmathfont{XITS Math}[range={cal, bfcal}, StylisticSet=1]

% Zahlen und Einheiten
\usepackage[
locale=DE, % deutsche Einstellungen
separate-uncertainty=true, % immer Unsicherheit mit \pm
per-mode=symbol-or-fraction, % / in inline math, fraction in display math
]{siunitx}

% chemische Formeln
\usepackage[
version=4,
math-greek=default, % ┐ mit unicode-math zusammenarbeiten
text-greek=default, % ┘
]{mhchem}

% richtige Anführungszeichen
\usepackage[autostyle]{csquotes}

% schöne Brüche im Text
\usepackage{xfrac}

% Standardplatzierung für Floats einstellen
\usepackage{float}
\floatplacement{figure}{htbp}
\floatplacement{table}{htbp}

% Floats innerhalb einer Section halten
\usepackage[
section, % Floats innerhalb der Section halten
below, % unterhalb der Section aber auf der selben Seite ist ok
]{placeins}

% Seite drehen für breite Tabellen: landscape Umgebung
\usepackage{pdflscape}

% Captions schöner machen.
\usepackage[
labelfont=bf, % Tabelle x: Abbildung y: ist jetzt fett
font=small, % Schrift etwas kleiner als Dokument
width=0.9\textwidth, % maximale Breite einer Caption schmaler
]{caption}
% subfigure, subtable, subref
\usepackage{subcaption}


% Grafiken können eingebunden werden
\usepackage{graphicx}

% schöne Tabellen
\usepackage{tabularray}
\UseTblrLibrary{booktabs,siunitx}

% Verbesserungen am Schriftbild
\usepackage{microtype}

% Literaturverzeichnis
\usepackage[
backend=biber,
]{biblatex}
% Quellendatenbank
\addbibresource{lit.bib}
\addbibresource{programme.bib}

% Hyperlinks im Dokument
\usepackage[
german,
unicode, % Unicode in PDF-Attributen erlauben
pdfusetitle, % Titel, Autoren und Datum als PDF-Attribute
pdfcreator={}, % ┐ PDF-Attribute säubern
pdfproducer={}, % ┘
]{hyperref}
% erweiterte Bookmarks im PDF
\usepackage{bookmark}

% Trennung von Wörtern mit Strichen
\usepackage[shortcuts]{extdash}

\author{%
AUTOR A\\%
\href{mailto:[email protected]}{[email protected]}%
\and%
AUTOR B\\%
\href{mailto:[email protected]}{[email protected]}%
}
\publishers{TU Dortmund – Fakultät Physik}
14 changes: 14 additions & 0 deletions exercises-latex/example-lab-report/loesung/lit.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@manual{sample,
organization = {TU Dortmund, Fakultät Physik},
title = {Versuch zum Literaturverzeichnis},
year = 2023
}

@online{galilei1623,
author = {Galilei, Galileo},
title = {Il Saggiatore},
url = {https://bibdig.museogalileo.it/tecanew/opera?bid=354802&seq=13},
booktitle = {Le opere di Galileo Galilei},
year = {1623}
}

23 changes: 23 additions & 0 deletions exercises-latex/example-lab-report/loesung/matplotlibrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# pgf-Backend benutzen
backend : pgf

# Größe der Zeichenfläche in Zoll
figure.figsize : 5.78, 3.57
figure.constrained_layout.use : True

# Serifenfont benutzen
font.family : serif

# Fontgrößen
font.size : 11
legend.fontsize : medium
xtick.labelsize : 9
ytick.labelsize : 9

# unsere Fonteinstellungen benutzen
pgf.rcfonts : False

# TeX benutzen
text.usetex : True
pgf.texsystem : lualatex
pgf.preamble : \input{header-matplotlib.tex}
72 changes: 72 additions & 0 deletions exercises-latex/example-lab-report/loesung/programme.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
@article{matplotlib,
author = "Hunter, John D.",
title = "{Matplotlib}: A {2D} Graphics Environment",
publisher = "IEEE",
year = "2007",
journal = "Computing in Science \& Engineering",
volume = "9",
number = "3",
pages = "90--95",
url = "http://matplotlib.org/",
version = "1.4.3",
doi = {10.1109/MCSE.2007.55},
addendum = {Current version 3.8.0, \textsc{doi}: \href{https://zenodo.org/record/8347255}{\texttt{10.5281/zenodo.8347255}}}
}

% taken from https://numpy.org/citing-numpy/ but replaced the key 'harris2020array' with 'numpy'
% to keep the neccessary changes to this file
@article{ numpy,
title = {Array programming with {NumPy}},
author = {Charles R. Harris and K. Jarrod Millman and St{\'{e}}fan J.
van der Walt and Ralf Gommers and Pauli Virtanen and David
Cournapeau and Eric Wieser and Julian Taylor and Sebastian
Berg and Nathaniel J. Smith and Robert Kern and Matti Picus
and Stephan Hoyer and Marten H. van Kerkwijk and Matthew
Brett and Allan Haldane and Jaime Fern{\'{a}}ndez del
R{\'{i}}o and Mark Wiebe and Pearu Peterson and Pierre
G{\'{e}}rard-Marchant and Kevin Sheppard and Tyler Reddy and
Warren Weckesser and Hameer Abbasi and Christoph Gohlke and
Travis E. Oliphant},
year = {2020},
month = sep,
journal = {Nature},
volume = {585},
number = {7825},
pages = {357--362},
doi = {10.1038/s41586-020-2649-2},
publisher = {Springer Science and Business Media {LLC}},
url = {https://doi.org/10.1038/s41586-020-2649-2}
}

% taken from https://scipy.org/citing-scipy/ but replaced the key '2020SciPy-NMeth' with 'scipy'
% to keep the neccessary changes to this file
@article{scipy,
author = {Virtanen, Pauli and Gommers, Ralf and Oliphant, Travis E. and
Haberland, Matt and Reddy, Tyler and Cournapeau, David and
Burovski, Evgeni and Peterson, Pearu and Weckesser, Warren and
Bright, Jonathan and {van der Walt}, St{\'e}fan J. and
Brett, Matthew and Wilson, Joshua and Millman, K. Jarrod and
Mayorov, Nikolay and Nelson, Andrew R. J. and Jones, Eric and
Kern, Robert and Larson, Eric and Carey, C J and
Polat, {\.I}lhan and Feng, Yu and Moore, Eric W. and
{VanderPlas}, Jake and Laxalde, Denis and Perktold, Josef and
Cimrman, Robert and Henriksen, Ian and Quintero, E. A. and
Harris, Charles R. and Archibald, Anne M. and
Ribeiro, Ant{\^o}nio H. and Pedregosa, Fabian and
{van Mulbregt}, Paul and {SciPy 1.0 Contributors}},
title = {{{SciPy} 1.0: Fundamental Algorithms for Scientific
Computing in Python}},
journal = {Nature Methods},
year = {2020},
volume = {17},
pages = {261--272},
adsurl = {https://rdcu.be/b08Wh},
doi = {10.1038/s41592-019-0686-2},
}

@software{uncertainties,
author = "Lebigot, Eric O.",
title = "Uncertainties: a Python package for calculations with uncertainties",
url = "http://pythonhosted.org/uncertainties/",
version = "3.1.7"
}
Loading
Loading