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

updates pandoc papers

parent 58db4c97
No related branches found
No related tags found
No related merge requests found
...@@ -6,3 +6,4 @@ img/git-remote-solo.svg ...@@ -6,3 +6,4 @@ img/git-remote-solo.svg
img/license-chooser.svg img/license-chooser.svg
img/motivation-throwaway-playground.svg img/motivation-throwaway-playground.svg
img/staging-area.svg img/staging-area.svg
*.pdf
...@@ -4,11 +4,13 @@ SUBDIRS = \ ...@@ -4,11 +4,13 @@ SUBDIRS = \
$(SUBDIRS): $(SUBDIRS):
$(MAKE) -C $@ $(MAKE) -C $@
paper.html: paper.md pandoc-papers.pdf: paper.md
pandoc -t revealjs -s paper.md -o paper.html pandoc \
-V aspectratio=169 \
paper.pdf: paper.md -V institute=iDiv \
pandoc -s paper.md -o paper.pdf -V theme=Frankfurt \
-V navigation=horizontal \
-s paper.md -t beamer -o pandoc-papers.pdf
all: subdirs all: subdirs
......
...@@ -13,110 +13,120 @@ ...@@ -13,110 +13,120 @@
- automated publishing - automated publishing
- high quality typesetting - high quality typesetting
# tool overview # tools
## markdown ## pandoc
### source: markup
- usually **Markdown**
- less powerful than LaTeX, but inline LaTeX can be used
### target**s**
- high quality PDF via LaTeX
- others: html, epub, docx, odt
### templates
- different journals
- iDiv branding
- draft branding
## Markdown
### rendered
- **easy to learn**, read and write - **easy to learn**, read and write
- no distractions to *procrastinate* - no distractions to *procrastinate*
- inline LaTeX if needed: $a^2 + b^2 = c^2$ - inline LaTeX if needed: $a^2 + b^2 = c^2$
```markdown ### source
```
- **easy to learn**, read and write - **easy to learn**, read and write
- no distractions to *procrastinate* - no distractions to *procrastinate*
- no fiddling with `WYSIWYG`
- inline LaTeX if needed: $a^2 + b^2 = c^2$ - inline LaTeX if needed: $a^2 + b^2 = c^2$
``` ```
## git ## git & GitLab
### git
- version control - version control
- free backup - free backup
- easy revert
## GitLab ### GitLab: [https://git.idiv.de](https://git.idiv.de)
- self-hosted, full control - self-hosted, full access control
- communication: discussion and reviews - communication: discussion and reviews
- continuous deployment to e.g. cloud storage - continuous deployment to e.g. cloud storage
## pandoc #1 ## visualization
- render markup source ...
- usually **Markdown**
- markup less powerful than LaTeX
- but inline LaTeX can be used
- ... to high quality target
- PDF via LaTeX
## pandoc #2
### supports templates
- different journals
- iDiv branding
- draft branding
## make
- automate build
- use visualization tools
# optional tools ### Graphviz/dot
## Graphviz/dot
- graph visualization language - graph visualization language
- define flowcharts with code - define flowcharts with code
- **dot** handles rendering - **dot** handles rendering
- use **make** to build - use **make** to build
## R scripts ### R scripts
- CSV2charts - add results as CSV to repository
- visualize data in CSV to charts
- use **make** to build - use **make** to build
# branching model ## make
## multi master
- paper with many journals, different paper text
- one branch per journal
- carefully **cherry-pick** additions to all masters
## trunk based development ### simple build tool
- same paper text - glues everything together
- different themes for journals - automated build
- journal-themes via sub-module - render images from **dot** and **CSV** sources
- make themes reusable - build PDF
# workflow # workflow
## workflow #1 ## workflow #1
write paper in Markdown ### project
- set up project in GitLab
- use **pandoc papers** project template
- project template is managed by our community
- contains Makefile, README, themes, CD, etc.
- add contributors / collaborators
### writing
- start writing the main document in Markdown
- use good text editor you're comfortable with
## workflow #2 ## workflow #2
### discussion / reviews
- issues ### communication
- merge requests
- commit comments
invite collaborators: send link to GitLab - use GitLab project as main communication platform
- discuss and review in
- commit comments
- issues
- merge requests
- invite collaborators: send link to GitLab project
## workflow #3 ## workflow #3
### continuous deployment ### continuous deployment
- deploy PDF to cloud storage - deploy PDF to cloud storage:
- draft watermark template if commit not tagged [https://portal.idiv.de/nextcloud/](https://portal.idiv.de/nextcloud/)
- send others link to PDF in cloud storage - use template with **DRAFT** watermark if commit not tagged
## workflow #4
### templates ### templates
- write templates across teams - manage templates in our community
- use git sub-modules to include - keep in separate git repository
- use git sub-module to include
- share with all@idiv / world - share with all@idiv / world
# misc # misc
...@@ -124,34 +134,58 @@ invite collaborators: send link to GitLab ...@@ -124,34 +134,58 @@ invite collaborators: send link to GitLab
## helpful commands ## helpful commands
```bash ```bash
# better diff command for text: # better diff command for text
git diff -w --ignore-blank-lines --word-diff git diff -w --ignore-blank-lines --word-diff
# watch source and build if changes # watch source and build if changes
watchexec -w paper.md -- make paper.pdf watchexec -w paper.md -- make paper.pdf
``` ```
## unsolved problems ## community #1
### pandoc paper project template
- `README.md` with instructions how to build
- `Makefile` with general build instructions
- include pandoc LaTeX themes via sub-module
- CD pipeline instructions
- `main.md` with hello world document using includes for chapters
- example **dot** file for flowchart
- example **CSV** and **R script** to generate charts
- `.gitignore` with default products
## community #2
### prose diff tool
- these issues might help:
[gitlab-ce#25650](https://gitlab.com/gitlab-org/gitlab-ce/issues/25650),
[gitlab-ce#26804](https://gitlab.com/gitlab-org/gitlab-ce/issues/26804)
- [https://github.blog/2014-02-14-rendered-prose-diffs/](https://github.blog/2014-02-14-rendered-prose-diffs/)
### continuous deployment
- to wrap or not to wrap
- true paragraph-based diff
- we don't have solid CD yet - we don't have solid CD yet
- can CD deploy to nextcloud share? - can CD deploy to Nextcloud share?
- review-able PDF template
- link to join discussion at every paragraph ### others
- repository with LaTeX templates for pandoc
- **review-able** PDF template with link to join discussion at every paragraph
# your turn # your turn
## discussion ## discussion
- what do you use today? - Which tools do you currently use?
- what annoys you the most? - What are your workflows?
- How do you communicate, collaborate and review?
- What annoys you the most? (i.e. how can we improve)
## let's use it ## let's use it
- install tools - install tools
- install editor
- set up git project - set up git project
- convert existing stuff to markdown - convert existing documents to Markdown
- build with pandoc - build with pandoc
# EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment