From b1cb07b871719363de4b1e333fed6b98f24ca79a Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 11:05:28 +0800 Subject: [PATCH 01/30] Enable snippets --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5a441ed..36cb7fc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -56,5 +56,6 @@ ], "latex-workshop.synctex.afterBuild.enabled": true, "latex-workshop.intellisense.package.enabled": true, - "latex-workshop.chktex.enabled": true + "latex-workshop.chktex.enabled": true, + "editor.tabCompletion": "onlySnippets" } \ No newline at end of file From 391f72b02b7455f9430af310211a8cf1207b4323 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 11:07:26 +0800 Subject: [PATCH 02/30] Add snippet for udhbwvst class setup --- .vscode/udhbwvst.code-snippets | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .vscode/udhbwvst.code-snippets diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets new file mode 100644 index 0000000..71b893d --- /dev/null +++ b/.vscode/udhbwvst.code-snippets @@ -0,0 +1,18 @@ +{ + "Setup the udhbwvst class": { + "prefix": "udhbwvst", + "body": [ + "\\documentclass[%", + "\tauto-generate\t= ${1|true,false|},\t% Generates all required pages around the text.", + "\tdebug\t\t\t= ${2|false,true|},\t% Loads packages lipsum and blindtext and displays hyperref-links.", + "\tprint-ndn\t\t= ${3|true,false|},\t% Prints the non-disclosure notice.", + "\tprint-loa\t\t= ${4|true,false|},\t% Prints the list of acronyms.", + "\tprint-lof\t\t= ${5|true,false|},\t% Prints the list of figures.", + "\tprint-lot\t\t= ${6|true,false|},\t% Prints the list of tables.", + "\tprint-lol\t\t= ${7|true,false|},\t% Prints the list of code listings.", + "\tbib-file\t\t= ${8:literature.bib},\t% Path to the bibliography file.", + "\tplantuml\t\t= ${9|false,true|}\t% Loads the plantuml package.", + "]{udhbwvst}" + ] + } +} \ No newline at end of file From e13f837b79ac72dfb622f37ea84eb6bc6cd4b5cb Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 11:49:25 +0800 Subject: [PATCH 03/30] Add \dhbwSetup snippet --- .vscode/udhbwvst.code-snippets | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 71b893d..6baccec 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -14,5 +14,30 @@ "\tplantuml\t\t= ${9|false,true|}\t% Loads the plantuml package.", "]{udhbwvst}" ] + }, + "Command: \\dhbwSetup": { + "prefix": "\\dhbwSetup", + "body": [ + "\\dhbwSetup{%", + "\tauthor\t\t\t= ${1:Vorname Nachname},", + "\tfaculty\t\t\t= ${2|Wirtschaft,Sozialwesen|},", + "\tfield of study\t= ${3|Wirtschaftsinformatik,BWL-Bank,BWL-Controlling & Consulting,BWL-Digital Business Management,BWL-Industrie,BWL-International Business,BWL-Mittelständische Wirtschaft,BWL-Technical Management,RSW-Steuern und Prüfungswesen,RSW-Wirtschaftsprüfung,Soziale Arbeit - Bildung und Beruf,Soziale Arbeit - Jugend- Familien- und Sozialhilfe,Soziale Arbeit - Netzwerk- und Sozialraumarbeit,Soziale Arbeit im Gesundheitswesen,Soziale Arbeit - Menschen mit Behinderung,Soziale Arbeit - Psychische Gesundheit und Sucht,Sozialwirtschaft|},", + "\tacademic year\t= ${4:2017},", + "\tcourse\t\t\t= ${5|A,B,C,D|},", + "\ttitle\t\t\t= ${6:Titel der Arbeit},", + "\tsubtitle\t\t= ${7:Untertitel der Arbeit},", + "\ttext type\t\t= ${8|Projektarbeit 1,Projektarbeit 2,Bachelorarbeit|},", + "\tcompany name\t= ${9:Eine GmbH},", + "\tcompany logo\t= ${10:./assets/logo.png},", + "\tlecturer\t\t= ${11:Prof. Dr. Vorname Nachname},", + "\tlocation\t\t= ${12:Villingen-Schwenningen},", + "\tdate\t\t\t= ${13:\\today},", + "\tlongest acronym\t= ${14:xD},", + "\tacronyms\t\t= {%", + "\t\t% Define your acronyms with \\acro{short form}{long form} here.", + "\t\t% You have to manually sort them by alphabet.", + "\t}", + "}" + ] } } \ No newline at end of file From 09e0608279879fcf9c7736ab35be581b57864c34 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:03:21 +0800 Subject: [PATCH 04/30] Add \footcite snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 6baccec..00fcde1 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -39,5 +39,11 @@ "\t}", "}" ] + }, + "Command \\footcite": { + "prefix": "\\footcite", + "body": [ + "\\footcite[${2:Vgl.}][$3]{${1:bibEntryId}}" + ] } } \ No newline at end of file From 1cbc88924767a1bbd50534188841aebdfc80c431 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:39:18 +0800 Subject: [PATCH 05/30] Add \dfootcite snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 00fcde1..f0c5422 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -45,5 +45,11 @@ "body": [ "\\footcite[${2:Vgl.}][$3]{${1:bibEntryId}}" ] + }, + "Command \\dfootcite": { + "prefix": "\\dfootcite", + "body": [ + "\\dfootcite${2:[]}{${1:bibEntryId}}{$TM_SELECTED_TEXT$3}" + ] } } \ No newline at end of file From 7846c881a7b70c8b2a0071593125ee45eea19cdc Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:44:55 +0800 Subject: [PATCH 06/30] Add \ifootcite snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index f0c5422..87bf68d 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -51,5 +51,11 @@ "body": [ "\\dfootcite${2:[]}{${1:bibEntryId}}{$TM_SELECTED_TEXT$3}" ] + }, + "Command \\ifootcite": { + "prefix": "\\ifootcite", + "body": [ + "\\ifootcite${2:[]}{${1:bibEntryId}}" + ] } } \ No newline at end of file From 0165a2f54937a0aec47704155afd18b93fa7bb09 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:46:56 +0800 Subject: [PATCH 07/30] Add \cite snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 87bf68d..2dcd46c 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -57,5 +57,11 @@ "body": [ "\\ifootcite${2:[]}{${1:bibEntryId}}" ] + }, + "Command \\cite": { + "prefix": "\\cite", + "body": [ + "\\cite[${2:Vgl.}][$3]{${1:bibEntryId}}" + ] } } \ No newline at end of file From 8f246437ee0bdb7040842ca657629783b8e43da1 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:49:08 +0800 Subject: [PATCH 08/30] Add \icite snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 2dcd46c..f778b3a 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -63,5 +63,11 @@ "body": [ "\\cite[${2:Vgl.}][$3]{${1:bibEntryId}}" ] + }, + "Command \\icite": { + "prefix": "\\icite", + "body": [ + "\\icite${2:[]}{${1:bibEntryId}}" + ] } } \ No newline at end of file From 0ab63f446990aa717d4b25d5b32ed30f1ab536c8 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:52:29 +0800 Subject: [PATCH 09/30] Add \acro snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index f778b3a..52a5de0 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -69,5 +69,11 @@ "body": [ "\\icite${2:[]}{${1:bibEntryId}}" ] + }, + "Command \\acro": { + "prefix": "\\acro", + "body": [ + "\\acro{$1}{$2}" + ] } } \ No newline at end of file From a4f8eb39296e0df30d97496867b1dce54abdfb31 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:53:36 +0800 Subject: [PATCH 10/30] Add \acroplural snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 52a5de0..79775e5 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -75,5 +75,11 @@ "body": [ "\\acro{$1}{$2}" ] + }, + "Command \\acroplural": { + "prefix": "\\acroplural", + "body": [ + "\\acroplural{$1}{$2}" + ] } } \ No newline at end of file From 372435e49af32c71df09286a28f4e205d9f57e15 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:56:08 +0800 Subject: [PATCH 11/30] Add \ac snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 79775e5..bf05d17 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -81,5 +81,11 @@ "body": [ "\\acroplural{$1}{$2}" ] + }, + "Command \\ac": { + "prefix": "\\ac", + "body": [ + "\\ac{$1}" + ] } } \ No newline at end of file From 6c8279a2ce750a366ccb31bf54c70bd8049ae04e Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 12:56:21 +0800 Subject: [PATCH 12/30] Add \acp snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index bf05d17..924a613 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -87,5 +87,11 @@ "body": [ "\\ac{$1}" ] + }, + "Command \\acp": { + "prefix": "\\acp", + "body": [ + "\\acp{$1}" + ] } } \ No newline at end of file From 56a0b72cb1de85d1af577908fd9e6b510ff968b8 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:02:19 +0800 Subject: [PATCH 13/30] Add dhbwfigure environment snippet --- .vscode/udhbwvst.code-snippets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 924a613..b32f757 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -93,5 +93,13 @@ "body": [ "\\acp{$1}" ] + }, + "dhbwfigure environment": { + "prefix": "dhbwfigure", + "body": [ + "\\begin{dhbwfigure}{caption=$1,label=fig:$2,source=$3,float=${4:ht}}", + "\t$TM_SELECTED_TEXT$0", + "\\end{dhbwfigure}" + ] } } \ No newline at end of file From 64cdfd07113205675a589a4c41b328f47594216d Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:07:21 +0800 Subject: [PATCH 14/30] Add \dhbwFigure snippet --- .vscode/udhbwvst.code-snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index b32f757..4ddfab1 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -101,5 +101,11 @@ "\t$TM_SELECTED_TEXT$0", "\\end{dhbwfigure}" ] + }, + "Command \\dhbwFigure": { + "prefix": "\\dhbwFigure", + "body": [ + "\\dhbwFigure{caption=$1,label=fig:$2,path=$3,source=$4${5:,width=\\textwidth,float=ht}}" + ] } } \ No newline at end of file From 3f6f909f2a37ee472fb66c6161052817161611d0 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:21:38 +0800 Subject: [PATCH 15/30] Add \dhbwWrapfigure snippet --- .vscode/udhbwvst.code-snippets | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 4ddfab1..650388a 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -107,5 +107,19 @@ "body": [ "\\dhbwFigure{caption=$1,label=fig:$2,path=$3,source=$4${5:,width=\\textwidth,float=ht}}" ] + }, + "Command \\dhbwWrapfigure": { + "prefix": "\\dhbwWrapfigure", + "body": [ + "\\dhbwWrapfigure{%", + "\tcaption\t\t= $1,", + "\tlabel\t\t= fig:$2,", + "\tpath\t\t= $3,", + "\tsource\t\t= $4,", + "\tplacement\t= ${5|R,L,r,l|},", + "\twidth\t\t= ${6:{0.45\\textwidth}},", + "\timage width\t= ${7:{0.4\\textwidth}}", + "}" + ] } } \ No newline at end of file From c57c3ff7329b0797d6b1c20e6f80fdeb3631b4bb Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:25:58 +0800 Subject: [PATCH 16/30] Improve \dhbwFigure snippet formatting --- .vscode/udhbwvst.code-snippets | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 650388a..f3d799f 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -105,7 +105,14 @@ "Command \\dhbwFigure": { "prefix": "\\dhbwFigure", "body": [ - "\\dhbwFigure{caption=$1,label=fig:$2,path=$3,source=$4${5:,width=\\textwidth,float=ht}}" + "\\dhbwFigure{%", + "\tcaption\t= $1,", + "\tlabel\t= fig:$2,", + "\tpath\t= $3,", + "\tsource\t= $4,", + "\twidth\t= ${5:\\textwidth},", + "\tfloat\t= ${6:ht}", + "}" ] }, "Command \\dhbwWrapfigure": { From 11f9f3f4eb50da83270b64b80c2d60e51fa2e021 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:28:45 +0800 Subject: [PATCH 17/30] Improve dhbwfigure env snippet formatting --- .vscode/udhbwvst.code-snippets | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index f3d799f..7792ce0 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -97,7 +97,12 @@ "dhbwfigure environment": { "prefix": "dhbwfigure", "body": [ - "\\begin{dhbwfigure}{caption=$1,label=fig:$2,source=$3,float=${4:ht}}", + "\\begin{dhbwfigure}{%", + "\tcaption\t= $1,", + "\tlabel\t= fig:$2,", + "\tsource\t= $3,", + "\tfloat\t= ${4:ht}", + "}", "\t$TM_SELECTED_TEXT$0", "\\end{dhbwfigure}" ] From 49061967854386e01fa2507bc70be5b19fe6834b Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:34:23 +0800 Subject: [PATCH 18/30] Add dhbwtable environment snippet --- .vscode/udhbwvst.code-snippets | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 7792ce0..04a99d8 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -133,5 +133,18 @@ "\timage width\t= ${7:{0.4\\textwidth}}", "}" ] + }, + "dhbwtable environment": { + "prefix": "dhbwtable", + "body": [ + "\\begin{dhbwtable}{%", + "\tcaption\t= $1,", + "\tlabel\t= tab:$2,", + "\tsource\t= $3,", + "\tfloat\t= ${4:ht}", + "}", + "\t$TM_SELECTED_TEXT$0", + "\\end{dhbwtable}" + ] } } \ No newline at end of file From 63552ebaef5d0d331cdcff04437f8a9a95956c86 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:40:02 +0800 Subject: [PATCH 19/30] Add code environment snippet --- .vscode/udhbwvst.code-snippets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 04a99d8..32eafc3 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -146,5 +146,13 @@ "\t$TM_SELECTED_TEXT$0", "\\end{dhbwtable}" ] + }, + "code environment": { + "prefix": "code", + "body": [ + "\\begin{code}{caption=$1,label=lst:$2,language=${3:javascript}}{$4}", + "$TM_SELECTED_TEXT$0", + "\\end{code}" + ] } } \ No newline at end of file From 32d0e465d9129a48a1da30233414360487b641f0 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:42:13 +0800 Subject: [PATCH 20/30] Add protected code environment snippet --- .vscode/udhbwvst.code-snippets | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 32eafc3..e859c93 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -154,5 +154,15 @@ "$TM_SELECTED_TEXT$0", "\\end{code}" ] + }, + "protected code environment": { + "prefix": "codeprotected", + "body": [ + "\\begin{minipage}[c]{\\textwidth}", + "\\begin{code}{caption=$1,label=lst:$2,language=${3:javascript}}{$4}", + "$TM_SELECTED_TEXT$0", + "\\end{code}", + "\\end{minipage}" + ] } } \ No newline at end of file From f9e071a85081c6441745c627585668e08490658b Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 13:43:51 +0800 Subject: [PATCH 21/30] Add \autoref snippet --- .vscode/udhbwvst.code-snippets | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index e859c93..0420a86 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -164,5 +164,11 @@ "\\end{code}", "\\end{minipage}" ] - } + }, + "Command \\autoref": { + "prefix": "\\autoref", + "body": [ + "\\autoref{$1}" + ] + }, } \ No newline at end of file From 4646fa43226f6cfb84eae8f428e845091ac3fb9e Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 14:39:36 +0800 Subject: [PATCH 22/30] Add @online bib entry snippet --- .vscode/udhbwvst.code-snippets | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 0420a86..601ea79 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -171,4 +171,16 @@ "\\autoref{$1}" ] }, + "bib entry online": { + "prefix": "@online", + "body": [ + "@online{$1,", + "\tauthor\t\t= {$2},", + "\tshorttitle\t= {$3},", + "\turl\t\t\t= {$4},", + "\turldate\t\t= {${5:${6:0000}-${7:00}-${8:00}}},", + "\tdate\t\t= {${9:${10:0000}-${11:00}-${12:00}}}", + "}" + ] + } } \ No newline at end of file From 0cf22eddc221940c5a00c1627a1cb0b1d3dc844e Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 14:45:20 +0800 Subject: [PATCH 23/30] Made setup snippets more robust --- .vscode/udhbwvst.code-snippets | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 601ea79..1af8a04 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -10,7 +10,7 @@ "\tprint-lof\t\t= ${5|true,false|},\t% Prints the list of figures.", "\tprint-lot\t\t= ${6|true,false|},\t% Prints the list of tables.", "\tprint-lol\t\t= ${7|true,false|},\t% Prints the list of code listings.", - "\tbib-file\t\t= ${8:literature.bib},\t% Path to the bibliography file.", + "\tbib-file\t\t= {${8:literature.bib}},\t% Path to the bibliography file.", "\tplantuml\t\t= ${9|false,true|}\t% Loads the plantuml package.", "]{udhbwvst}" ] @@ -19,20 +19,20 @@ "prefix": "\\dhbwSetup", "body": [ "\\dhbwSetup{%", - "\tauthor\t\t\t= ${1:Vorname Nachname},", - "\tfaculty\t\t\t= ${2|Wirtschaft,Sozialwesen|},", - "\tfield of study\t= ${3|Wirtschaftsinformatik,BWL-Bank,BWL-Controlling & Consulting,BWL-Digital Business Management,BWL-Industrie,BWL-International Business,BWL-Mittelständische Wirtschaft,BWL-Technical Management,RSW-Steuern und Prüfungswesen,RSW-Wirtschaftsprüfung,Soziale Arbeit - Bildung und Beruf,Soziale Arbeit - Jugend- Familien- und Sozialhilfe,Soziale Arbeit - Netzwerk- und Sozialraumarbeit,Soziale Arbeit im Gesundheitswesen,Soziale Arbeit - Menschen mit Behinderung,Soziale Arbeit - Psychische Gesundheit und Sucht,Sozialwirtschaft|},", - "\tacademic year\t= ${4:2017},", - "\tcourse\t\t\t= ${5|A,B,C,D|},", - "\ttitle\t\t\t= ${6:Titel der Arbeit},", - "\tsubtitle\t\t= ${7:Untertitel der Arbeit},", - "\ttext type\t\t= ${8|Projektarbeit 1,Projektarbeit 2,Bachelorarbeit|},", - "\tcompany name\t= ${9:Eine GmbH},", - "\tcompany logo\t= ${10:./assets/logo.png},", - "\tlecturer\t\t= ${11:Prof. Dr. Vorname Nachname},", - "\tlocation\t\t= ${12:Villingen-Schwenningen},", - "\tdate\t\t\t= ${13:\\today},", - "\tlongest acronym\t= ${14:xD},", + "\tauthor\t\t\t= {${1:Vorname Nachname}},", + "\tfaculty\t\t\t= {${2|Wirtschaft,Sozialwesen|}},", + "\tfield of study\t= {${3|Wirtschaftsinformatik,BWL-Bank,BWL-Controlling & Consulting,BWL-Digital Business Management,BWL-Industrie,BWL-International Business,BWL-Mittelständische Wirtschaft,BWL-Technical Management,RSW-Steuern und Prüfungswesen,RSW-Wirtschaftsprüfung,Soziale Arbeit - Bildung und Beruf,Soziale Arbeit - Jugend-\\, Familien- und Sozialhilfe,Soziale Arbeit - Netzwerk- und Sozialraumarbeit,Soziale Arbeit im Gesundheitswesen,Soziale Arbeit - Menschen mit Behinderung,Soziale Arbeit - Psychische Gesundheit und Sucht,Sozialwirtschaft|}},", + "\tacademic year\t= {${4:2017}},", + "\tcourse\t\t\t= {${5|A,B,C,D|}},", + "\ttitle\t\t\t= {${6:Titel der Arbeit}},", + "\tsubtitle\t\t= {${7:Untertitel der Arbeit}},", + "\ttext type\t\t= {${8|Projektarbeit 1,Projektarbeit 2,Bachelorarbeit|}},", + "\tcompany name\t= {${9:Eine GmbH}},", + "\tcompany logo\t= {${10:./assets/logo.png}},", + "\tlecturer\t\t= {${11:Prof. Dr. Vorname Nachname}},", + "\tlocation\t\t= {${12:Villingen-Schwenningen}},", + "\tdate\t\t\t= {${13:\\today}},", + "\tlongest acronym\t= {${14:xD}},", "\tacronyms\t\t= {%", "\t\t% Define your acronyms with \\acro{short form}{long form} here.", "\t\t% You have to manually sort them by alphabet.", From ad14b3c43d1c75f9a01295c65003781b40d6f187 Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 14:48:01 +0800 Subject: [PATCH 24/30] Add missing field title to @online snippet --- .vscode/udhbwvst.code-snippets | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 1af8a04..6dfa0bd 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -176,10 +176,11 @@ "body": [ "@online{$1,", "\tauthor\t\t= {$2},", - "\tshorttitle\t= {$3},", - "\turl\t\t\t= {$4},", - "\turldate\t\t= {${5:${6:0000}-${7:00}-${8:00}}},", - "\tdate\t\t= {${9:${10:0000}-${11:00}-${12:00}}}", + "\ttitle\t\t= {$3},", + "\tshorttitle\t= {$4},", + "\turl\t\t\t= {$5},", + "\turldate\t\t= {${6:${7:0000}-${8:00}-${9:00}}},", + "\tdate\t\t= {${10:${11:0000}-${12:00}-${13:00}}}", "}" ] } From af38ecbf139e5214cf32f42f2911153b573190ee Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 14:56:02 +0800 Subject: [PATCH 25/30] Add bib entry @book snippet --- .vscode/udhbwvst.code-snippets | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 6dfa0bd..88b053e 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -183,5 +183,19 @@ "\tdate\t\t= {${10:${11:0000}-${12:00}-${13:00}}}", "}" ] + }, + "bib entry book": { + "prefix": "@book", + "body": [ + "@book{$1,", + "\tauthor\t\t= {$2},", + "\ttitle\t\t= {$3},", + "\tshorttitle\t= {$4},", + "\tyear\t\t= {${5:0000}},", + "\tedition\t\t= {${6:3}},", + "\tpublisher\t= {$7},", + "\tlocation\t= {$8}", + "}" + ] } } \ No newline at end of file From b69f54ba0447e80607f59f70ff390b1b9804fddb Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 15:01:40 +0800 Subject: [PATCH 26/30] Remove duplicate snippets --- .vscode/udhbwvst.code-snippets | 36 ---------------------------------- 1 file changed, 36 deletions(-) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 88b053e..8622c9e 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -58,42 +58,12 @@ "\\ifootcite${2:[]}{${1:bibEntryId}}" ] }, - "Command \\cite": { - "prefix": "\\cite", - "body": [ - "\\cite[${2:Vgl.}][$3]{${1:bibEntryId}}" - ] - }, "Command \\icite": { "prefix": "\\icite", "body": [ "\\icite${2:[]}{${1:bibEntryId}}" ] }, - "Command \\acro": { - "prefix": "\\acro", - "body": [ - "\\acro{$1}{$2}" - ] - }, - "Command \\acroplural": { - "prefix": "\\acroplural", - "body": [ - "\\acroplural{$1}{$2}" - ] - }, - "Command \\ac": { - "prefix": "\\ac", - "body": [ - "\\ac{$1}" - ] - }, - "Command \\acp": { - "prefix": "\\acp", - "body": [ - "\\acp{$1}" - ] - }, "dhbwfigure environment": { "prefix": "dhbwfigure", "body": [ @@ -165,12 +135,6 @@ "\\end{minipage}" ] }, - "Command \\autoref": { - "prefix": "\\autoref", - "body": [ - "\\autoref{$1}" - ] - }, "bib entry online": { "prefix": "@online", "body": [ From 1e6406030213b383a5e1d41395f251c634c761ea Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 15:43:13 +0800 Subject: [PATCH 27/30] Add VSCode snippets hint --- docs/setup.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/setup.md b/docs/setup.md index bece60b..f48d2fb 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -64,7 +64,8 @@ Copy all files inside the `src` folder to your working directory. As long as you ### Optional setup -* If you're using VS Code as text editor you can take advantage of the already configured `.vscode/settings.json` which compiles using `latexmk` (part of TeX Live and MiKTeX) and if you don't want to use `latexmk` there is a another recipe using just `lualatex` and `biber`. +* If you're using VS Code you can take advantage of the already configured `.vscode/settings.json` which compiles using `latexmk` (part of TeX Live and MiKTeX) and if you don't want to use `latexmk` there is a another recipe using just `lualatex` and `biber`. +* If you're using VS Code you can take advantage of many predefined snippets (`.vscode/udhbwvst.code-snippets`). * If you are using [git](https://git-scm.com/) you can use the provided `.gitignore` file. ## Compiling to PDF From 118150fc2b8b11527482264ef652581dc9e9e0ce Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 15:43:27 +0800 Subject: [PATCH 28/30] Add VSCode snippets documentation --- docs/writing.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/writing.md b/docs/writing.md index 8e68007..15377c4 100644 --- a/docs/writing.md +++ b/docs/writing.md @@ -34,6 +34,7 @@ Documentation and general tips and tricks on how to wirte an academic text assig - [Firstname lastname combinations](#firstname-lastname-combinations) - [Author is just one word](#author-is-just-one-word) - [More than one author](#more-than-one-author) +- [VSCode snippets](#vscode-snippets) ## The udhbwvst class @@ -608,3 +609,24 @@ You can use the keyword `and others` if there are to many authors: ... } ``` + +## VSCode snippets + +There are a few [VSCode snippets](https://code.visualstudio.com/docs/editor/userdefinedsnippets) predefined in `.vscode/udhbwvst.code-snippets` you can take advantage of: + +| Prefix | Description | +| ----------------- | ------------------------------------------------------------------------------ | +| `udhbwvst` | Setup the `udhbwvst` class. | +| `\dhbwSetup` | Snippet for the [\dhbwSetup](#required-dhbwsetup-command) command. | +| `\footcite` | Snippet for the [\footcite](#cite-with-footnote) command. | +| `\dfootcite` | Snippet for the [\dfootcite](#cite-direct-with-footnote) command. | +| `\ifootcite` | Snippet for the [\ifootcite](#cite-indirect-with-footnote) command. | +| `\icite` | Snippet for the [\icite](#cite-indirect-without-footnote) command. | +| `dhbwfigure` | Snippet for the [dhbwfigure](#the-dhbwfigure-environment) environment. | +| `\dhbwFigure` | Snippet for the [\dhbwFigure](#the-dhbwfigure-command) command. | +| `\dhbwWrapfigure` | Snippet for the [\dhbwWrapfigure](#the-dhbwwrapfigure-command) command. | +| `dhbwtable` | Snippet for the [dhbwtable](#tables) environment. | +| `code` | Snippet for the [code](#code-listing) environment. | +| `codeprotected` | Snippet for the [code](#code-listing) environment but wrapped in a `minipage`. | +| `@online` | Snippet for an [@online](#add-entry-of-type-online) bibliography entry. | +| `@book` | Snippet for an [@book](#add-entry-of-type-book) bibliography entry. | From 5f399ff75dd012f73f93503d90b9d68421310e0e Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 15:50:29 +0800 Subject: [PATCH 29/30] Add scope field to snippets --- .vscode/udhbwvst.code-snippets | 42 ++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 8622c9e..0cf01e9 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -13,7 +13,8 @@ "\tbib-file\t\t= {${8:literature.bib}},\t% Path to the bibliography file.", "\tplantuml\t\t= ${9|false,true|}\t% Loads the plantuml package.", "]{udhbwvst}" - ] + ], + "scope": "tex,latex" }, "Command: \\dhbwSetup": { "prefix": "\\dhbwSetup", @@ -38,31 +39,36 @@ "\t\t% You have to manually sort them by alphabet.", "\t}", "}" - ] + ], + "scope": "tex,latex" }, "Command \\footcite": { "prefix": "\\footcite", "body": [ "\\footcite[${2:Vgl.}][$3]{${1:bibEntryId}}" - ] + ], + "scope": "tex,latex" }, "Command \\dfootcite": { "prefix": "\\dfootcite", "body": [ "\\dfootcite${2:[]}{${1:bibEntryId}}{$TM_SELECTED_TEXT$3}" - ] + ], + "scope": "tex,latex" }, "Command \\ifootcite": { "prefix": "\\ifootcite", "body": [ "\\ifootcite${2:[]}{${1:bibEntryId}}" - ] + ], + "scope": "tex,latex" }, "Command \\icite": { "prefix": "\\icite", "body": [ "\\icite${2:[]}{${1:bibEntryId}}" - ] + ], + "scope": "tex,latex" }, "dhbwfigure environment": { "prefix": "dhbwfigure", @@ -75,7 +81,8 @@ "}", "\t$TM_SELECTED_TEXT$0", "\\end{dhbwfigure}" - ] + ], + "scope": "tex,latex" }, "Command \\dhbwFigure": { "prefix": "\\dhbwFigure", @@ -88,7 +95,8 @@ "\twidth\t= ${5:\\textwidth},", "\tfloat\t= ${6:ht}", "}" - ] + ], + "scope": "tex,latex" }, "Command \\dhbwWrapfigure": { "prefix": "\\dhbwWrapfigure", @@ -102,7 +110,8 @@ "\twidth\t\t= ${6:{0.45\\textwidth}},", "\timage width\t= ${7:{0.4\\textwidth}}", "}" - ] + ], + "scope": "tex,latex" }, "dhbwtable environment": { "prefix": "dhbwtable", @@ -115,7 +124,8 @@ "}", "\t$TM_SELECTED_TEXT$0", "\\end{dhbwtable}" - ] + ], + "scope": "tex,latex" }, "code environment": { "prefix": "code", @@ -123,7 +133,8 @@ "\\begin{code}{caption=$1,label=lst:$2,language=${3:javascript}}{$4}", "$TM_SELECTED_TEXT$0", "\\end{code}" - ] + ], + "scope": "tex,latex" }, "protected code environment": { "prefix": "codeprotected", @@ -133,7 +144,8 @@ "$TM_SELECTED_TEXT$0", "\\end{code}", "\\end{minipage}" - ] + ], + "scope": "tex,latex" }, "bib entry online": { "prefix": "@online", @@ -146,7 +158,8 @@ "\turldate\t\t= {${6:${7:0000}-${8:00}-${9:00}}},", "\tdate\t\t= {${10:${11:0000}-${12:00}-${13:00}}}", "}" - ] + ], + "scope": "tex,latex,bibtex" }, "bib entry book": { "prefix": "@book", @@ -160,6 +173,7 @@ "\tpublisher\t= {$7},", "\tlocation\t= {$8}", "}" - ] + ], + "scope": "tex,latex,bibtex" } } \ No newline at end of file From 69a7cd4f7dd2b825ecc31f13629769275a85260c Mon Sep 17 00:00:00 2001 From: Esslinger Date: Thu, 22 Aug 2019 16:38:42 +0800 Subject: [PATCH 30/30] Add description field to all snippets --- .vscode/udhbwvst.code-snippets | 44 ++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/.vscode/udhbwvst.code-snippets b/.vscode/udhbwvst.code-snippets index 0cf01e9..ed678b5 100644 --- a/.vscode/udhbwvst.code-snippets +++ b/.vscode/udhbwvst.code-snippets @@ -1,5 +1,5 @@ { - "Setup the udhbwvst class": { + "udhbwvst class setup": { "prefix": "udhbwvst", "body": [ "\\documentclass[%", @@ -14,7 +14,8 @@ "\tplantuml\t\t= ${9|false,true|}\t% Loads the plantuml package.", "]{udhbwvst}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Sets up the udhbwvst documentclass." }, "Command: \\dhbwSetup": { "prefix": "\\dhbwSetup", @@ -40,35 +41,40 @@ "\t}", "}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Sets up the \\dhbwSetup command with all possible fields." }, "Command \\footcite": { "prefix": "\\footcite", "body": [ "\\footcite[${2:Vgl.}][$3]{${1:bibEntryId}}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Create a citation with a footnote." }, "Command \\dfootcite": { "prefix": "\\dfootcite", "body": [ "\\dfootcite${2:[]}{${1:bibEntryId}}{$TM_SELECTED_TEXT$3}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Create a direct citation with a footnote." }, "Command \\ifootcite": { "prefix": "\\ifootcite", "body": [ "\\ifootcite${2:[]}{${1:bibEntryId}}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Create a indirect citation with a footnote." }, "Command \\icite": { "prefix": "\\icite", "body": [ "\\icite${2:[]}{${1:bibEntryId}}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Create a citation without a footnote." }, "dhbwfigure environment": { "prefix": "dhbwfigure", @@ -82,7 +88,8 @@ "\t$TM_SELECTED_TEXT$0", "\\end{dhbwfigure}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Sets up a dhbwfigure environment with all possible fields." }, "Command \\dhbwFigure": { "prefix": "\\dhbwFigure", @@ -96,7 +103,8 @@ "\tfloat\t= ${6:ht}", "}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Sets up the \\dhbwFigure command with all possible fields." }, "Command \\dhbwWrapfigure": { "prefix": "\\dhbwWrapfigure", @@ -111,7 +119,8 @@ "\timage width\t= ${7:{0.4\\textwidth}}", "}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Sets up the \\dhbwWrapfigure command with all possible fields." }, "dhbwtable environment": { "prefix": "dhbwtable", @@ -125,7 +134,8 @@ "\t$TM_SELECTED_TEXT$0", "\\end{dhbwtable}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Sets up the dhbwtable environment with all possible fields." }, "code environment": { "prefix": "code", @@ -134,7 +144,8 @@ "$TM_SELECTED_TEXT$0", "\\end{code}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Sets up the code environment with all possible fields." }, "protected code environment": { "prefix": "codeprotected", @@ -145,7 +156,8 @@ "\\end{code}", "\\end{minipage}" ], - "scope": "tex,latex" + "scope": "tex,latex", + "description": "Sets up the code environment with all possible fields and wraps it inside a minipage environment to make sure that the subcaption and the code listings stick together." }, "bib entry online": { "prefix": "@online", @@ -159,7 +171,8 @@ "\tdate\t\t= {${10:${11:0000}-${12:00}-${13:00}}}", "}" ], - "scope": "tex,latex,bibtex" + "scope": "tex,latex,bibtex", + "description": "Adds a bibliography entry of type @online." }, "bib entry book": { "prefix": "@book", @@ -174,6 +187,7 @@ "\tlocation\t= {$8}", "}" ], - "scope": "tex,latex,bibtex" + "scope": "tex,latex,bibtex", + "description": "Adds a bibliography entry of type @book." } } \ No newline at end of file