csv-physik.tex 864 B

12345678910111213141516171819202122232425
  1. \documentclass[a4paper]{scrartcl}
  2. \usepackage[utf8]{inputenc} % this is needed for umlauts
  3. \usepackage[ngerman]{babel} % this is needed for umlauts
  4. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  5. \usepackage[locale=DE]{siunitx} % Formats the units and values
  6. \usepackage{datatool}
  7. \usepackage{booktabs} % For \toprule, \midrule and \bottomrule
  8. % start every dtl table with \toprule from booktabs
  9. \renewcommand{\dtldisplaystarttab}{\toprule}
  10. % likewise for \midrule and \bottomrule from booktabs
  11. \renewcommand{\dtldisplayafterhead}{\midrule}
  12. \renewcommand{\dtldisplayendtab}{\\\bottomrule}
  13. % Setup siunitx:
  14. \sisetup{
  15. round-mode = places, % Rounds numbers
  16. round-precision = 2, % to 2 places
  17. }
  18. \begin{document}
  19. \DTLloaddb{stores}{messergebnisse.csv} % adjust the name
  20. \DTLdisplaydb{stores}
  21. \end{document}