Modify pandoc assignment template

This commit is contained in:
2019-05-11 03:40:12 +02:00
parent 2747366f4e
commit b8670fbe17
3 changed files with 117 additions and 79 deletions

View File

@@ -35,9 +35,8 @@ endsnippet
snippet ass "YAML metadata for assignment"
---
title: $1
authors: Amin Kasrou Aouam
left-header:
right-header: `date +%F`
author: Amin Kasrou Aouam
date: `date +%F`
---
endsnippet

View File

@@ -38,7 +38,7 @@ let g:vim_markdown_math=1
"" Pandoc
autocmd FileType markdown nnoremap <silent> <F3> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf --from markdown --template eisvogel --listings &<cr>
autocmd FileType markdown nnoremap <silent> <F4> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf --from markdown --template handout &<cr>
autocmd FileType markdown nnoremap <silent> <F5> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf -t beamer -V theme:metropolis --listings &<cr>
autocmd FileType markdown nnoremap <silent> <F5> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf --from markdown --template assignment &<cr>
autocmd FileType markdown nnoremap <silent> <F6> :<c-u>!zathura %:p:r:S.pdf &<cr>
autocmd FileType markdown nnoremap <silent> <F7> :<c-u>!rm %:p:r:S.pdf &<cr>
"" Snippets