moji

moji

markdown and pandoc links

https://github.com/tomduck/pandoc-fignos

https://stackoverflow.com/questions/9434536/how-do-i-make-a-reference-to-a-figure-in-markdown-using-pandoc

https://gist.github.com/maxogden/97190db73ac19fc6c1d9beee1a6e4fc8

https://pandoc.org/MANUAL.html

https://www.google.ch/search?q=typora+sharing&ie=&oe=

converting docx to md including track changes

pandoc -s xyz.docx -o xyz.md --track-changes=all --extract-media=""

converting md to docx including track changes and biblio

pandoc -s xyz.md -o xyz.docx --track-changes=all --filter pandoc-fignos --citeproc

in the md file header add:

---

bibliography: bibliography.bib

csl: xyz.csl

---

csl style file can be downloaded at: https://www.zotero.org/styles?q=elsarticle

figure numbering

https://github.com/tomduck/pandoc-xnos

pip install pandoc-fignos pandoc-eqnos pandoc-tablenos \

˜ pandoc-secnos --user

--> Add the executables to the path

usage with pandoc --filter pandoc-fignos

Instering:

˜ ![The number one.](img/fig-1.png){#fig:1 width=1in}

Citing: @fig:1

md diff styling

see here

vim configs

preview

˜ Plug 'JamshedVesuna/vim-markdown-preview', { 'for': 'markdown' } ˜ ctrl p --> preview in broser

folding and other

˜ Plug 'godlygeek/tabular', { 'for': 'markdown' } ˜ Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }

Change fold style:

˜ let g:vim_markdown_folding_style_pythonic = 1

Keys:

˜ zr: reduces fold level throughout the buffer ˜ zR: opens all folds ˜ zm: increases fold level throughout the buffer ˜ zM: folds everything all the way ˜ za: open a fold your cursor is on ˜ zA: open a fold your cursor is on recursively ˜ zc: close a fold your cursor is on ˜ zC: close a fold your cursor is on recursively

Highlight YAML:

˜ let g:vim_markdown_frontmatter = 1

text flow/wrap

see here

presentation slides

see here

and here