From 0c372ecbcc6ed719a1739f95987cc56448dabe98 Mon Sep 17 00:00:00 2001 From: Jan Wille <jan.wille@stud.hs-hannover.de> Date: Sun, 21 Jul 2024 21:19:33 +0200 Subject: [PATCH] add files for vscode latex workshop autocompletion --- README.md | 9 ++++ src/class-HsH-article.json | 77 +++++++++++++++++++++++++++++++++++ src/class-HsH-report.json | 77 +++++++++++++++++++++++++++++++++++ src/class-HsH-standalone.json | 60 +++++++++++++++++++++++++++ 4 files changed, 223 insertions(+) create mode 100644 src/class-HsH-article.json create mode 100644 src/class-HsH-report.json create mode 100644 src/class-HsH-standalone.json diff --git a/README.md b/README.md index 0c3b306..9535601 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,15 @@ always on the left side for `oneside` documents and alternating for `twoside` do > **Note** the textarea is not reduced, only moved. So a very large value for `BCOR` will > move the content off the page. +### Why doens't VScode automcompletion work? + +For the [LaTeX Workshop](https://github.com/James-Yu/LaTeX-Workshop) extention to know about +the commands and packages provided by the HsH-classes, it needs a spectial file. +This file is not part of the extention itself but provided by this repo. You need to tell +your VScode about this by adding the folder containing the file to the +`latex-workshop.intellisense.package.dirs` list. + + ### Italic vs. upright Index? (changing subscript) The classes by default set all sub scripts upright ("steil" in German), because this is diff --git a/src/class-HsH-article.json b/src/class-HsH-article.json new file mode 100644 index 0000000..9fc6641 --- /dev/null +++ b/src/class-HsH-article.json @@ -0,0 +1,77 @@ +{ + "includes": { + "scrbase": [], + "class-scrreprt": [], + "setspace": [], + "babel": [], + "csquotes": [], + "hyperref": [], + "todonotes": [], + "caption": [], + "graphicx": [], + "amsmath": [], + "amssymb": [], + "amsfonts": [], + "xcolor": [ + "svgnames" + ], + "scrlayer-scrpage": [] + }, + "macros": { + "matrikelnr{}": { + "snippet": "matrikelnr{${1:your matrikel number}}" + }, + "professor{}": { + "snippet": "professor{${1:your professors name}}" + }, + "keywords{}": { + "snippet": "keywords{${1},${2}}" + }, + "frontmatter": { + "snippet": "frontmatter" + }, + "mainmatter": { + "snippet": "mainmatter" + }, + "backmatter": { + "snippet": "backmatter" + }, + "title[]{}": { + "snippet": "title[${2:short title}]{${1:title}}" + }, + "maketitle[]": { + "snippet": "maketitle" + } + }, + "envs": {}, + "options": [ + "fontfamily=", + "sans", + "roman", + "language=", + "english", + "german", + "faculty=", + "f1", + "f2", + "f3", + "f4", + "f5", + "todos=", + "linespacing=", + "singlespacing", + "onehalfspacing", + "doublespacing", + "parskip=", + "headheight=", + "abstract=", + "toc=", + "fontsize=", + "paper=", + "a4paper", + "a5paper", + "twoside", + "BCOR=" + ], + "keyvals": [] +} diff --git a/src/class-HsH-report.json b/src/class-HsH-report.json new file mode 100644 index 0000000..88f123a --- /dev/null +++ b/src/class-HsH-report.json @@ -0,0 +1,77 @@ +{ + "includes": { + "scrbase": [], + "class-scrreprt": [], + "setspace": [], + "babel": [], + "csquotes": [], + "hyperref": [], + "todonotes": [], + "caption": [], + "graphicx": [], + "amsmath": [], + "amssymb": [], + "amsfonts": [], + "xcolor": [ + "svgnames" + ], + "scrlayer-scrpage": [] + }, + "macros": { + "matrikelnr{}": { + "snippet": "matrikelnr{${1:your matrikel number}}" + }, + "professor{}": { + "snippet": "professor{${1:your professors name}}" + }, + "keywords{}": { + "snippet": "keywords{${1}}" + }, + "frontmatter": { + "snippet": "frontmatter" + }, + "mainmatter": { + "snippet": "mainmatter" + }, + "backmatter": { + "snippet": "backmatter" + }, + "title[]{}": { + "snippet": "title[${2:short title}]{${1:title}}" + }, + "maketitle[]": { + "snippet": "maketitle" + } + }, + "envs": {}, + "options": [ + "fontfamily=", + "sans", + "roman", + "language=", + "english", + "german", + "faculty=", + "f1", + "f2", + "f3", + "f4", + "f5", + "todos=", + "linespacing=", + "singlespacing", + "onehalfspacing", + "doublespacing", + "parskip=", + "headheight=", + "abstract=", + "toc=", + "fontsize=", + "paper=", + "a4paper", + "a5paper", + "twoside", + "BCOR=" + ], + "keyvals": [] +} diff --git a/src/class-HsH-standalone.json b/src/class-HsH-standalone.json new file mode 100644 index 0000000..fc6ffeb --- /dev/null +++ b/src/class-HsH-standalone.json @@ -0,0 +1,60 @@ +{ + "includes": { + "scrbase": [], + "class-standalone": [], + "setspace": [], + "babel": [], + "csquotes": [], + "hyperref": [], + "todonotes": [], + "caption": [], + "graphicx": [], + "amsmath": [], + "amssymb": [], + "amsfonts": [], + "xcolor": [ + "svgnames" + ] + }, + "macros": { + "matrikelnr{}": { + "snippet": "matrikelnr{${1:your matrikel number}}" + }, + "professor{}": { + "snippet": "professor{${1:your professors name}}" + }, + "keywords{}": { + "snippet": "keywords{${1}}" + }, + "frontmatter": { + "snippet": "frontmatter" + }, + "mainmatter": { + "snippet": "mainmatter" + }, + "backmatter": { + "snippet": "backmatter" + }, + "title[]{}": { + "snippet": "title[${2:short title}]{${1:title}}" + }, + "maketitle[]": { + "snippet": "maketitle" + } + }, + "envs": {}, + "options": [ + "fontfamily=", + "sans", + "roman", + "faculty=", + "f1", + "f2", + "f3", + "f4", + "f5", + "todos=", + "fontsize=" + ], + "keyvals": [] +} -- GitLab