Skip to content

Commit

Permalink
QOL Updates - Größtenteils Aufräumen plus kleine bugfixes (#126)
Browse files Browse the repository at this point in the history
* qol init

* consolidate indentation

* Apply suggestions from code review: SPRICH

Co-authored-by: Max <[email protected]>

* Update .gitignore

Co-authored-by: Max <[email protected]>

* adjust tests, thus fix compiler warnings (#128)

* Apply suggestions from code review

Co-authored-by: Max <[email protected]>
Co-authored-by: Oliver Kogel <[email protected]>

* Update build/components/package.config.tex

* Update .gitignore

* Update .gitignore

Co-authored-by: Oliver Kogel <[email protected]>
Co-authored-by: Max <[email protected]>
  • Loading branch information
3 people authored Mar 4, 2022
1 parent e35578c commit 8b1c48f
Show file tree
Hide file tree
Showing 19 changed files with 560 additions and 686 deletions.
4 changes: 1 addition & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
charset = utf8
end_of_line = crlf
insert_final_newline = true

[*.bib]
indent_style = tab
trim_trailing_whitespace = true

[*.tex]
indent_style = space
Expand Down
48 changes: 29 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
*.aux
*.log
*.out
*.gz
*.toc
*.pdf
*.bcf
*.blg
*.bbl
*.run.xml
*.fls
*.fdb_latexmk
*.synctex.gz
*.synctex(busy)
*.lof
*.xdv
*.alt
*.lot
*.acr
# ignore all
**

!.gitignore
!.editorconfig

!*.md
!*.tex
!*.latex
!*.bib

!.github/
!.github/workflows
!.github/workflows/**

!.vscode/
!.vscode/**

!assets/
!assets/**

!build/
!build/template.tex
!build/components/
!build/components/*.tex
!build/components/*.cbx

!build/tests/
!build/tests/**
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@
"cSpell.words": [
"acro",
"amssymb",
"Autorreferat",
"belowskip",
"Bera",
"biber",
"captionsetup",
"cauthor",
"CFANCYFONTS",
"citestyle",
"csquotes",
"deckblatt",
"defernumbers",
"dhge",
"dhgefigure",
"einkommentieren",
"enumitem",
"etoolbox",
"euler",
"fancyhdr",
"fancyplain",
"footmisc",
Expand All @@ -22,14 +29,19 @@
"ibidtracker",
"icomma",
"ifthen",
"labelfont",
"literatur",
"lmodern",
"mathrm",
"minalphanames",
"minbibnames",
"ngerman",
"Palatino",
"pdfauthor",
"secnumdepth",
"setspace",
"singlelinecheck",
"Thesenblatt",
"titletoc",
"tocdepth",
"tocloft",
Expand Down
7 changes: 7 additions & 0 deletions .vscode/tex_snippets.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
], // einzufügender snippet
"description": "Insert \\DeclareAcronym" // beschreibung
},
"Abkürzung - singleline": {
"prefix": ["singleabk", "singledhgeabk"], // auf welchem namen der snippet auffindbar ist
"scope": "latex,tex", // welche files der snippet betreffen soll
"body": ["\\DeclareAcronym{${1:ac-used-name}}{short = {${2:abk}}, long = {${3:non_abk}}}"
], // einzufügender snippet
"description": "Insert singleline \\DeclareAcronym" // beschreibung
},
// Im 'body' könne parameter verwendet werden, um bestimmte Ziele zu erreichen. (z.B. tabbing)
// Nummern entsprechen Reihenfolge
// einfachste Anwendung => $1
Expand Down
4 changes: 2 additions & 2 deletions abk.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
% Für alles Weitere schauen Sie sich bitte die Dokumentation des Acro Packages an.

\DeclareAcronym{dhge}{
short = {DHGE},
long = {Duale Hochschule Gera-Eisenach},
short = {DHGE},
long = {Duale Hochschule Gera-Eisenach},
}
10 changes: 5 additions & 5 deletions bachelor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
{
\begin{enumerate}
\item These 1
\vspace{0.5cm}
\vspace{0.5cm}

\item These 2
\vspace{0.5cm}
\vspace{0.5cm}

\item These 3
\vspace{0.5cm}
\vspace{0.5cm}

\item These 4
\vspace{0.5cm}
\vspace{0.5cm}

\item These 5
\vspace{0.5cm}
\vspace{0.5cm}
\end{enumerate}
}

Expand Down
76 changes: 38 additions & 38 deletions build/components/alphabetic-ibid.cbx
Original file line number Diff line number Diff line change
Expand Up @@ -10,54 +10,54 @@
\newbool{cbx:loccit}

\newbibmacro*{cite}{%
\global\boolfalse{cbx:loccit}%
\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}{
\usebibmacro{cite:ibid}
}
{\addspace\printtext[bibhyperref]{\printtext[brackets]{%
\printfield{labelprefix}%
\printfield{labelalpha}%
\printfield{extraalpha}%
\ifbool{bbx:subentry} {
\printfield{entrysetcount}
}
}}}
\global\boolfalse{cbx:loccit}%
\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}{
\usebibmacro{cite:ibid}
}
{\addspace\printtext[bibhyperref]{\printtext[brackets]{%
\printfield{labelprefix}%
\printfield{labelalpha}%
\printfield{extraalpha}%
\ifbool{bbx:subentry} {
\printfield{entrysetcount}
}
}}}
}

\newbibmacro*{cite-clean}{%
{\printtext[bibhyperref]{\printtext{%
\printfield{labelprefix}%
\printfield{labelalpha}%
\printfield{extraalpha}%
\ifbool{bbx:subentry} {
\printfield{entrysetcount}
}
}}}
{\printtext[bibhyperref]{\printtext{%
\printfield{labelprefix}%
\printfield{labelalpha}%
\printfield{extraalpha}%
\ifbool{bbx:subentry} {
\printfield{entrysetcount}
}
}}}
}

\newbibmacro*{cite:ibid}{%
\printtext[bibhyperref]{\biblstring[\mkibid]{ibidem}}%
\ifloccit
{\global\booltrue{cbx:loccit}}
{}}
\printtext[bibhyperref]{\biblstring[\mkibid]{ibidem}}%
\ifloccit
{\global\booltrue{cbx:loccit}}
{}}

\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}

\DeclareCiteCommand{\footcite}[\mkbibfootnote]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}{\usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}{\usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}

\DeclareCiteCommand{\supercite}[\textsuperscript]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}{\bibleftbracket\usebibmacro{cite-clean}\usebibmacro{postnote}}\unspace\bibrightbracket}
{\multicitedelim}
{}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}{\bibleftbracket\usebibmacro{cite-clean}\usebibmacro{postnote}}\unspace\bibrightbracket}
{\multicitedelim}
{}

\DeclareFieldFormat{url}{\newline\url{#1}}
\DeclareFieldFormat
Expand All @@ -70,6 +70,6 @@ inproceedings,patent,thesis,unpublished,booklet,conference,mastersthesis]
\renewcommand{\finentrypunct}{}

\renewcommand{\bibfootnotewrapper}[1]{%
\bibsentence#1}
\bibsentence#1}

\endinput
111 changes: 0 additions & 111 deletions build/components/com.tex

This file was deleted.

Loading

0 comments on commit 8b1c48f

Please sign in to comment.