mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-02-07 12:19:02 +00:00
Update UltiSnips snippets for LaTeX and Asciidoctor
For the LaTeX snippets, it simply reflects the personal style guide.
This commit is contained in:
parent
28d6b892b3
commit
c5ec2b30df
@ -22,11 +22,19 @@ snip.rv = "#" * header_level if legit_header_level else ""
|
|||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet tt "Monospace" biw
|
snippet bf "Boldface" iw
|
||||||
`$1` $0
|
**$1** $0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet hl "Highlighted text" biw
|
snippet it "Italic" iw
|
||||||
|
__$1__ $0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet tt "Monospace" iw
|
||||||
|
\`$1\` $0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet hl "Highlighted text" iw
|
||||||
#$1# $0
|
#$1# $0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -34,11 +42,11 @@ snippet a "Hyperlink" iw
|
|||||||
${1:<url>}[${2:<text>}] $0
|
${1:<url>}[${2:<text>}] $0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet sp "Superscript" biw
|
snippet sp "Superscript" iw
|
||||||
^$1^ $0
|
^$1^ $0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet sb "Subscript" biw
|
snippet sb "Subscript" iw
|
||||||
~$1~ $0
|
~$1~ $0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -88,6 +96,22 @@ $1
|
|||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet "-table h (\d+)-" "Make a quick table with the headers already set up" bir
|
||||||
|
[cols="`!p snip.rv = match.group(1)`", options="headers"]
|
||||||
|
|===
|
||||||
|
$1
|
||||||
|
`!p
|
||||||
|
number_of_headers = int(match.group(1))
|
||||||
|
|
||||||
|
for i in range(0, number_of_headers):
|
||||||
|
snip.rv += f"| Header {i + 1}\n"
|
||||||
|
`
|
||||||
|
$2
|
||||||
|
|
||||||
|
|===
|
||||||
|
$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
# Multimedia blocks
|
# Multimedia blocks
|
||||||
snippet figure "Image block with caption" bi
|
snippet figure "Image block with caption" bi
|
||||||
.${2:<caption>}
|
.${2:<caption>}
|
||||||
|
@ -128,7 +128,7 @@ endsnippet
|
|||||||
# Document structure tags
|
# Document structure tags
|
||||||
snippet chapter "Chapter element" bi
|
snippet chapter "Chapter element" bi
|
||||||
\chapter{$1}
|
\chapter{$1}
|
||||||
\label{ch!$1}
|
\label{chap!$1}
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user