mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
added csv physik
This commit is contained in:
parent
ba1df5dc79
commit
ba69e47bed
5 changed files with 78 additions and 0 deletions
31
documents/csv-physik/Makefile
Normal file
31
documents/csv-physik/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = csv-physik
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 512
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
3
documents/csv-physik/Readme.md
Normal file
3
documents/csv-physik/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
documents/csv-physik/csv-physik.png
Normal file
BIN
documents/csv-physik/csv-physik.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
25
documents/csv-physik/csv-physik.tex
Normal file
25
documents/csv-physik/csv-physik.tex
Normal file
|
@ -0,0 +1,25 @@
|
|||
\documentclass[a4paper]{scrartcl}
|
||||
\usepackage[utf8]{inputenc} % this is needed for umlauts
|
||||
\usepackage[ngerman]{babel} % this is needed for umlauts
|
||||
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
|
||||
|
||||
\usepackage[locale=DE]{siunitx} % Formats the units and values
|
||||
\usepackage{datatool}
|
||||
\usepackage{booktabs} % For \toprule, \midrule and \bottomrule
|
||||
% start every dtl table with \toprule from booktabs
|
||||
\renewcommand{\dtldisplaystarttab}{\toprule}
|
||||
|
||||
% likewise for \midrule and \bottomrule from booktabs
|
||||
\renewcommand{\dtldisplayafterhead}{\midrule}
|
||||
\renewcommand{\dtldisplayendtab}{\\\bottomrule}
|
||||
|
||||
% Setup siunitx:
|
||||
\sisetup{
|
||||
round-mode = places, % Rounds numbers
|
||||
round-precision = 2, % to 2 places
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
\DTLloaddb{stores}{messergebnisse.csv} % adjust the name
|
||||
\DTLdisplaydb{stores}
|
||||
\end{document}
|
19
documents/csv-physik/messergebnisse.csv
Normal file
19
documents/csv-physik/messergebnisse.csv
Normal file
|
@ -0,0 +1,19 @@
|
|||
Messreihe,Winkel,Zähler 1,Zähler 2,Koinzidenzen
|
||||
1,90,35404,41016,155
|
||||
,90,31999,38359,155
|
||||
,135,30618,36095,126
|
||||
,135,30232,36000,120
|
||||
,180,30243,33931,118
|
||||
,180,29762,34080,129
|
||||
2,90,28979,36801,118
|
||||
,90,29009,37035,144
|
||||
,135,29035,35828,115
|
||||
,135,28330,35599,122
|
||||
,180,28866,33316,118
|
||||
,180,28716,33774,99
|
||||
3,90,29075,37602,139
|
||||
,90,28793,37495,133
|
||||
,135,28368,35938,116
|
||||
,135,28570,35419,129
|
||||
,180,28632,34177,114
|
||||
,180,28467,34076,111
|
|
Loading…
Add table
Add a link
Reference in a new issue