summaryrefslogtreecommitdiffstats
path: root/plugins/snippets/data/latex.xml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 17:42:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 17:42:51 +0000
commitba429d344132c088177e853cce8ff7181570b221 (patch)
tree87ebf15269b4301737abd1735baabba71be93622 /plugins/snippets/data/latex.xml
parentInitial commit. (diff)
downloadgedit-ba429d344132c088177e853cce8ff7181570b221.tar.xz
gedit-ba429d344132c088177e853cce8ff7181570b221.zip
Adding upstream version 44.2.upstream/44.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/snippets/data/latex.xml')
-rw-r--r--plugins/snippets/data/latex.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/plugins/snippets/data/latex.xml b/plugins/snippets/data/latex.xml
new file mode 100644
index 0000000..71672ec
--- /dev/null
+++ b/plugins/snippets/data/latex.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<snippets language="LaTeX">
+ <snippet id="command">
+ <text><![CDATA[{\\${1:bf} $GEDIT_SELECTED_TEXT}]]></text>
+ <accelerator><![CDATA[<Shift><Alt>w]]></accelerator>
+ <description>Wrap Selection in Command</description>
+ </snippet>
+ <snippet id="$">
+ <text><![CDATA[\[
+ $1
+\]]]></text>
+ <description>Displaymath</description>
+ <tag>$</tag>
+ </snippet>
+ <snippet id="itd">
+ <text><![CDATA[\item[${1:description}] ${0:item}]]></text>
+ <description>\item[description]</description>
+ <tag>itd</tag>
+ </snippet>
+ <snippet id="sec">
+ <text><![CDATA[\section{${1:section name}}\label{${2:label}}
+]]></text>
+ <description>Section</description>
+ <tag>sec</tag>
+ </snippet>
+ <snippet id="sub">
+ <text><![CDATA[\subsection{${1:subsection name}}\label{${2:label}}
+]]></text>
+ <description>Sub Section</description>
+ <tag>sub</tag>
+ </snippet>
+ <snippet id="ssub">
+ <text><![CDATA[\subsubsection{${1:subsubsection name}}\label{${2:label}}
+]]></text>
+ <description>Sub Sub Section</description>
+ <tag>ssub</tag>
+ </snippet>
+</snippets>