dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit d10b37f8e949b894968aa7aad8e399e4873457b5
parent 825c00de0eeb19d9de2c314a1df712b4ee5dc567
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 15 Apr 2020 22:24:06 +0200

vim: markdown syntax + snippets

Former-commit-id: edb0931370e0ca7e34eb2b5d8c847663133070f4
Diffstat:
Mvim/after/syntax/markdown.vim | 2++
Mvim/ultisnips/markdown.snippets | 16+++++++++++-----
2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/vim/after/syntax/markdown.vim b/vim/after/syntax/markdown.vim @@ -1,5 +1,6 @@ syn match markdownError "\w\@<=\w\@=" syn match markdownCite "\[@\w\+\]" contains=@NoSpell +syn match markdownLatex "\\[a-z0-9]\+" contains=@NoSpell syn region markdownMathInline start="\(\\\)\@<!\$\(\$\)\@!" end="\$" contains=@NoSpell syn region markdownMathBlock start="\$\$" end="\$\$" contains=@NoSpell syn region markdownComment start="<!--" end="-->" contains=@NoSpell @@ -18,3 +19,4 @@ hi def link markdownComment Comment hi def link markdownYaml SpecialComment hi def link markdownAbbrev Define hi def link markdownCite Comment +hi def link markdownLatex Identifier diff --git a/vim/ultisnips/markdown.snippets b/vim/ultisnips/markdown.snippets @@ -40,22 +40,28 @@ endsnippet snippet format "Pandoc format" b --- +title: '${1:title of document}' +subtitle: '${2:subtitle}' +author: +- ${3:author 1} +- ${4:author 2} fontsize: 10pt pagestyle: empty -bibliography: ${1:references.bib} +bibliography: ${3:references.bib} citation-style: https://raw.githubusercontent.com/citation-style-language/styles/master/ieee.csl link-citations: true geometry: - a4paper -- left=${2:1in} -- right=${2:1in} -- top=${2:1in} -- bottom=${2:1in} +- left=${4:1in} +- right=${4:1in} +- top=${4:1in} +- bottom=${4:1in} # For image placement header-includes: \usepackage{float} \floatplacement{figure}{H} --- +\maketitle # References ::: {#refs}