瀏覽代碼

added csv physik

Martin Thoma 11 年之前
父節點
當前提交
ba69e47bed

+ 31 - 0
documents/csv-physik/Makefile

@@ -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 - 0
documents/csv-physik/Readme.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](csv-physik.png)

二進制
documents/csv-physik/csv-physik.png


+ 25 - 0
documents/csv-physik/csv-physik.tex

@@ -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 - 0
documents/csv-physik/messergebnisse.csv

@@ -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