Skip to content
Snippets Groups Projects
Verified Commit 325c6122 authored by ck85nori's avatar ck85nori :railway_track:
Browse files

adds csv to table example to results

parent 0020d535
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ PANDOCFLAGS = \ ...@@ -4,6 +4,7 @@ PANDOCFLAGS = \
--standalone \ --standalone \
--pdf-engine=xelatex \ --pdf-engine=xelatex \
SOURCES_CSV = $(wildcard *.csv)
SOURCES_MD = $(sort $(wildcard chapter-*.md)) SOURCES_MD = $(sort $(wildcard chapter-*.md))
default: all default: all
...@@ -18,7 +19,7 @@ $(SUBDIRS): ...@@ -18,7 +19,7 @@ $(SUBDIRS):
subdirs: $(SUBDIRS) subdirs: $(SUBDIRS)
document.pdf: $(SUBDIRS) metadata.yml $(SOURCES_MD) document.pdf: $(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD)
$(PANDOC) $(PANDOCFLAGS) -o document.pdf metadata.yml $(SOURCES_MD) $(PANDOC) $(PANDOCFLAGS) -o document.pdf metadata.yml $(SOURCES_MD)
check: spellcheck check: spellcheck
......
...@@ -116,10 +116,7 @@ table <- read.csv('example.csv') ...@@ -116,10 +116,7 @@ table <- read.csv('example.csv')
Tables Tables
------ ------
| header 1 | header 2 | header 3 | See the **Results** chapter below for some examples.
| -------- | :------: | -------: |
| left | centered | 424242 |
| aligned | content | 42 |
LaTeX if you need it LaTeX if you need it
-------------------- --------------------
......
Results Results
======= =======
You can manually lay out tables using Markdown.
| header 1 | header 2 | header 3 |
| -------- | :------: | -------: |
| left | centered | 424242 |
| aligned | content | 42 |
Table: These are my super significant results.
You can automatically insert tables from your results if you store them in CSV.
\begin{table}
\centering
\csvautobooktabular{results.csv}
\caption{These are my super significant results.}
\end{table}
...@@ -21,6 +21,7 @@ abstract: | ...@@ -21,6 +21,7 @@ abstract: |
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
header-includes: | header-includes: |
\usepackage{csvsimple}
\usepackage{draftwatermark} \usepackage{draftwatermark}
papersize: a4paper papersize: a4paper
......
a,b,c
1,2,3
4,5,6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment