From 7c14ded1ff61fad55e0be255f238469347b4d67a Mon Sep 17 00:00:00 2001 From: Bela Date: Fri, 26 Jun 2020 10:43:11 +0200 Subject: [PATCH 01/25] add url breaking for links --- tex/header/stdmath.sty | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index ae8f5ca..a63be03 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -87,7 +87,8 @@ \addbibresource{\bibfile} \AtEndDocument{\printbibliography} - +\RequirePackage[hyphens]{url} % to allow links to break over lines at hyphens +% must be loaded before hyperref because hyperref loads package url as well \RequirePackage [ % colorlinks=true, From 745f91c89c8288ad9219ab89679ef4a22d437d87 Mon Sep 17 00:00:00 2001 From: Bela Date: Sat, 27 Jun 2020 12:26:08 +0200 Subject: [PATCH 02/25] use silence for avoiding reoccuring warnings better solution would be to avoid / in usepackage: https://tex.stackexchange.com/questions/31925/install-package-in-subfolder/31950#31950 but I didn't find how to set the env variable TEXINPUTS in .latexmkrc --- tex/header/preamble.tex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tex/header/preamble.tex b/tex/header/preamble.tex index 06454bb..5b1f598 100644 --- a/tex/header/preamble.tex +++ b/tex/header/preamble.tex @@ -8,6 +8,12 @@ % \RedeclareSectionCommand % [beforeskip=-1.5ex plus -.1ex minus -.1ex, % afterskip=.5ex plus .1ex minus .1ex]{subsection} + +% cannot happen in packages since it has to work during package loading: +% (and it is really not a fault of the packages but the calling) +\usepackage{silence} % Package that lets ignore warnings and errors for using packages in subdirectories +\WarningFilter{latex}{You have requested package `.maindir/tex/header/} + \usepackage[tikz]{.maindir/tex/header/stdmath} % , scriptLetters \setmainfont{Latin Modern Roman} From d4b178d4db1e8c00cf1c3682d0a6823bee90d467 Mon Sep 17 00:00:00 2001 From: Bela Date: Fri, 14 Aug 2020 20:57:03 +0000 Subject: [PATCH 03/25] remove error --- tex/header/stdmath.sty | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index a63be03..90300e6 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -87,8 +87,9 @@ \addbibresource{\bibfile} \AtEndDocument{\printbibliography} -\RequirePackage[hyphens]{url} % to allow links to break over lines at hyphens -% must be loaded before hyperref because hyperref loads package url as well +% to allow links to break over lines at hyphens +% must be loaded before hyperref because hyperref loads package url +\PassOptionsToPackage{hyphens}{url} \RequirePackage [ % colorlinks=true, From bc61ba66976555aa33bf2ecf0ec62cd5ebf2b3d4 Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 4 Sep 2020 14:49:08 +0000 Subject: [PATCH 04/25] add empty bibliography to satisfy latexmk, use path that always work --- tex/bibliography.bib | 0 tex/header/stdmath.sty | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tex/bibliography.bib diff --git a/tex/bibliography.bib b/tex/bibliography.bib new file mode 100644 index 0000000..e69de29 diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index 90300e6..cb8dc67 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -75,7 +75,7 @@ \RequirePackage{enumerate} % for different kind of numbering in enumerations % bibliography -\newcommand{\bibfile}{bibliography.bib} +\newcommand{\bibfile}{.maindir/tex/bibliography.bib} \RequirePackage{csquotes} \RequirePackage[backend=biber, style=alphabetic, From ecdbc9cc6840cf12a075626900b815689d6b7809 Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 2 Oct 2020 17:51:36 +0000 Subject: [PATCH 05/25] evince as pdf previewer also explains one more option of .latexmkrc --- .latexmkrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.latexmkrc b/.latexmkrc index 1e5733f..fb54638 100644 --- a/.latexmkrc +++ b/.latexmkrc @@ -2,3 +2,8 @@ $pdf_mode= 4 ; @default_files = ('.maindir/tex/main.tex'); $out_dir = '.maindir/out'; +# my okular stops currently with a segmentation fault +# so I use another viewer: evince +# start is necessary to start evince detached, otherwise latexmk -pvc is blocked by evince running +# I am not sure if this would work with file names with blanks. Bad idea anyway! +$pdf_previewer = "start evince %O %S" From c3d2dc4824c314ea55c52d2f913aa7c28f6df604 Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 23 Oct 2020 21:55:12 +0000 Subject: [PATCH 06/25] ignore overwriting warnings --- tex/header/specialChars.sty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tex/header/specialChars.sty b/tex/header/specialChars.sty index 23318fe..f4dfa57 100644 --- a/tex/header/specialChars.sty +++ b/tex/header/specialChars.sty @@ -20,7 +20,7 @@ % \setsansfont{Computer Modern Sans Serif} % \setmonofont{Computer Modern Typewriter} -\RequirePackage{unicode-math} +\RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} \RequirePackage{silence} % Package that lets ignore warnings and errors for unicodechar redefining \WarningFilter{newunicodechar}{Redefining} From 8c9467726cb5c45e13841e7fa239d7f72f0d25e8 Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 25 Oct 2020 19:29:00 +0000 Subject: [PATCH 07/25] add hypersetup --- tex/header/preamble.tex | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tex/header/preamble.tex b/tex/header/preamble.tex index 5b1f598..0c2daa1 100644 --- a/tex/header/preamble.tex +++ b/tex/header/preamble.tex @@ -22,6 +22,17 @@ \setmathfont{Latin Modern Math} \addbibresource{.maindir/tex/bibliography.bib} + +\hypersetup{ + pdftitle={Title missing}, + pdfauthor={Felix Hilsky}, + pdfsubject={Subject missing}, + pdfcreator={LuaLaTeX}, + pdfproducer={LuaLaTeX via latexmk}, + pdfkeywords={}, + pdfdisplaydoctitle={true}, %Bachelorthesis Felix: Delay equations in weighted Hilbert spaces}, + pdfencoding=auto +} % Abkürzunngen % weitere Befehle From 55fb15358724a442955395f9bcadbfc9c507b127 Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 25 Oct 2020 19:32:40 +0000 Subject: [PATCH 08/25] Revert "evince as pdf previewer" This reverts commit ecdbc9cc6840cf12a075626900b815689d6b7809. This is not longer necessary since okular is working fine on new fedora installation. --- .latexmkrc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.latexmkrc b/.latexmkrc index fb54638..1e5733f 100644 --- a/.latexmkrc +++ b/.latexmkrc @@ -2,8 +2,3 @@ $pdf_mode= 4 ; @default_files = ('.maindir/tex/main.tex'); $out_dir = '.maindir/out'; -# my okular stops currently with a segmentation fault -# so I use another viewer: evince -# start is necessary to start evince detached, otherwise latexmk -pvc is blocked by evince running -# I am not sure if this would work with file names with blanks. Bad idea anyway! -$pdf_previewer = "start evince %O %S" From 4d4291627662ac7f12eb4544f34de9aee0f85f83 Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 25 Oct 2020 19:35:43 +0000 Subject: [PATCH 09/25] remove silly comment --- tex/header/preamble.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tex/header/preamble.tex b/tex/header/preamble.tex index 0c2daa1..31a420e 100644 --- a/tex/header/preamble.tex +++ b/tex/header/preamble.tex @@ -30,7 +30,7 @@ pdfcreator={LuaLaTeX}, pdfproducer={LuaLaTeX via latexmk}, pdfkeywords={}, - pdfdisplaydoctitle={true}, %Bachelorthesis Felix: Delay equations in weighted Hilbert spaces}, + pdfdisplaydoctitle={true}, pdfencoding=auto } % Abkürzunngen From 7228b6dd98cea113b3344ec2ccbfebf0e3446702 Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 21 Jan 2021 22:30:18 +0000 Subject: [PATCH 10/25] add mhchem and siunitx since I use them very often --- tex/header/stdmath.sty | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index cb8dc67..698f773 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -73,6 +73,8 @@ \RequirePackage{mathtools} % for := (defined as) \RequirePackage{amsthm} % for theorems environments \RequirePackage{enumerate} % for different kind of numbering in enumerations +\RequirePackage{mhchem} % chemical formulars. Provides \ce +\RequirePackage[per-mode=fraction]{siunitx} % provides nice typesetting for units and numbers % bibliography \newcommand{\bibfile}{.maindir/tex/bibliography.bib} From f0afb0e3be6970aef0f76a96a7b6bb1b77712ec2 Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 21 Jan 2021 22:55:15 +0000 Subject: [PATCH 11/25] remove warning about mhchem version --- tex/header/stdmath.sty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index 698f773..9f81690 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -73,7 +73,7 @@ \RequirePackage{mathtools} % for := (defined as) \RequirePackage{amsthm} % for theorems environments \RequirePackage{enumerate} % for different kind of numbering in enumerations -\RequirePackage{mhchem} % chemical formulars. Provides \ce +\RequirePackage[version=4]{mhchem} % chemical formulars. Provides \ce \RequirePackage[per-mode=fraction]{siunitx} % provides nice typesetting for units and numbers % bibliography From 66179bc6c0c0799554a9346d631cb4e7396e79eb Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 21 Jan 2021 23:05:15 +0000 Subject: [PATCH 12/25] I am a mathematician, so I use \cdot instead of \times --- tex/header/stdmath.sty | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index 9f81690..e5b313d 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -74,7 +74,8 @@ \RequirePackage{amsthm} % for theorems environments \RequirePackage{enumerate} % for different kind of numbering in enumerations \RequirePackage[version=4]{mhchem} % chemical formulars. Provides \ce -\RequirePackage[per-mode=fraction]{siunitx} % provides nice typesetting for units and numbers +\RequirePackage[per-mode=fraction, +exponent-product=\cdot]{siunitx} % provides nice typesetting for units and numbers % bibliography \newcommand{\bibfile}{.maindir/tex/bibliography.bib} From 5bc94cb79563fcc904f63d98626be10dc3ce9098 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 23 Jan 2021 00:40:37 +0000 Subject: [PATCH 13/25] add commonly needed package to tikz option --- tex/header/stdmath.sty | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index e5b313d..2cafe51 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -10,7 +10,7 @@ % standard is bibliography.bib % tikz -% also loads tikz +% also loads tikz and pgfplots % graphicx OR pictures % also loads package graphicx (for picture handling) @@ -51,7 +51,7 @@ \ProcessOptions\relax \ifopt@pics\RequirePackage{graphicx}\fi -\ifopt@tikz\RequirePackage{tikz}\RequirePackage{tikz-cd}\fi +\ifopt@tikz\RequirePackage{tikz}\RequirePackage{tikz-cd}\RequirePackage{pgfplots}\fi \ifopt@script\RequirePackage{mathrsfs}\newcommand{\scr}[1]{\mathscr{#1}}\fi % for script A (sigma-Algebra-A) % --------- From 41d42401c486085e4ce5383f7c17c18cd98aacaa Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 23 Jan 2021 13:42:06 +0000 Subject: [PATCH 14/25] remove example that does not fit into template --- README | 2 -- 1 file changed, 2 deletions(-) diff --git a/README b/README index 6d81e60..513953d 100644 --- a/README +++ b/README @@ -13,5 +13,3 @@ Man kann jede Datei im Ordner /tex einzeln kompilieren. Dafür sind einige Hürd • If you work with gitlab you can use the CI. For this there is the .gitlab-ci.yml file that tells gitlab to compile the main file and make it avaiable as an artifact. Then it is avaiable under the api link https://your.gitlab.instance.de/api/v4/projects/your-project-id/jobs/artifacts/master/raw/main.pdf?job=compiling You get the project id visible on the main page of your project. master is the branch you want to use for that continous compiling and compiling is the name of the job, specified in the .gitlab-ci.yml. main.pdf is the name of the file generated, specified via the main tex-file name and the .latexmkrc. -For example this gives: -https://gitlab.mn.tu-dresden.de/api/v4/projects/44/jobs/artifacts/master/raw/out/skript-numerik-sander.pdf?job=compiling From 1831d6bfaeede81ac116129aaf5e7a5adf1c9ce3 Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 27 Jan 2021 16:33:00 +0000 Subject: [PATCH 15/25] fix maindircreate: do not create links in .git directory --- scripts/maindircreate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/maindircreate.py b/scripts/maindircreate.py index 73dc195..86ff708 100755 --- a/scripts/maindircreate.py +++ b/scripts/maindircreate.py @@ -19,6 +19,9 @@ import errno # (sehr gut!) # os.walk verändert nicht den aktuellen Ordner for (path, directories, files) in os.walk(os.curdir): + if ".git" in directories: + # do not traverse git directory. There we do not need .maindir links + directories.remove(".git") try: # relpath gibt den Pfad vom aktuellen Ordner relativ zum Ordner # in den wir den Link tun möchten From 71af1079f14a35f9152ff4eef24ef413c11cbdc7 Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 3 Feb 2021 17:42:14 +0000 Subject: [PATCH 16/25] support for Appendix package to get a title over the appendices --- tex/header/stdmath.sty | 8 ++++++++ tex/main.tex | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index 2cafe51..ca38511 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -109,6 +109,14 @@ exponent-product=\cdot]{siunitx} % provides nice typesetting for units and numb pdfencoding=auto ]{hyperref} %\parindent0.0em % = Einrueckungsweite des ersten Satzes eines Absatzes +% is necessary to let babel work with appendix: +% see https://tex.stackexchange.com/a/67636 +\RequirePackage{bookmark} +\RequirePackage[toc,page]{appendix} +\ifopt@german \renewcommand{\appendixpagename}{Anhänge} + \renewcommand{\appendixname}{Anhang} + \renewcommand{\appendixtocname}{Anhänge} +\fi % --------------------------------------------------------------- % Custom commands, rougly grouped diff --git a/tex/main.tex b/tex/main.tex index 77f0820..1b0a2ef 100644 --- a/tex/main.tex +++ b/tex/main.tex @@ -5,6 +5,8 @@ \author{Felix Hilsky} \maketitle % use \textinput as described in /header and _TEMPLATE -\appendix +\begin{appendices} + % \textinput{some-appendix-section} +\end{appendices} % use \textinput as described in /header and _TEMPLATE \docEnd From c5a4a8904e8ba08247cef0394adab68cc58f0a94 Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 3 Feb 2021 18:14:23 +0000 Subject: [PATCH 17/25] add package microtype supposedly (CdEDokuTeam) standard package that just improves things --- tex/header/stdmath.sty | 1 + 1 file changed, 1 insertion(+) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index ca38511..9a24383 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -72,6 +72,7 @@ % with \overset{\text{Definition}}&{=} instead of &\stackrel{\text{Definition}}= \RequirePackage{mathtools} % for := (defined as) \RequirePackage{amsthm} % for theorems environments +\RequirePackage{microtype} % should improve typesetting, sometimes removing underfull hboxes \RequirePackage{enumerate} % for different kind of numbering in enumerations \RequirePackage[version=4]{mhchem} % chemical formulars. Provides \ce \RequirePackage[per-mode=fraction, From 1cf9104dfe81f4602055f7ef7aade682e0b6b448 Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 4 Feb 2021 00:31:35 +0000 Subject: [PATCH 18/25] use auto as biblatex sorting instead of german --- tex/header/stdmath.sty | 2 -- 1 file changed, 2 deletions(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index 9a24383..8008106 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -85,8 +85,6 @@ exponent-product=\cdot]{siunitx} % provides nice typesetting for units and numb style=alphabetic, backref=true, autocite=inline, - sortlocale=de_DE.UTF-8, - % sortlocale=en_GB, sorting=nty]{biblatex} \addbibresource{\bibfile} \AtEndDocument{\printbibliography} From 33fd5dbe52bbfba5682497ad955e1c348f6e6a99 Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 4 Feb 2021 00:48:28 +0000 Subject: [PATCH 19/25] maxnames --- tex/header/stdmath.sty | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index 8008106..8e282d5 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -83,6 +83,8 @@ exponent-product=\cdot]{siunitx} % provides nice typesetting for units and numb \RequirePackage{csquotes} \RequirePackage[backend=biber, style=alphabetic, + maxnames=99, % it is not fair if people with names + % late in the alphabet are never mentioned backref=true, autocite=inline, sorting=nty]{biblatex} From 7ac76e9a95beffbab47bff431242da916421a61b Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 23 Apr 2021 14:56:26 +0000 Subject: [PATCH 20/25] ignore synctex(busy) files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index b7fead4..7943deb 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ # tags is created by vim plugin gutentags with universal-ctags # hence ignore it since it is automatically created tags +*synctex(busy) From 1bc2c325ece42269c5f8e46173eec7579f472dc1 Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 23 Apr 2021 14:56:59 +0000 Subject: [PATCH 21/25] Revert "add package microtype" This reverts commit c5a4a8904e8ba08247cef0394adab68cc58f0a94. Microtype caused errors for some weird reason. --- tex/header/stdmath.sty | 1 - 1 file changed, 1 deletion(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index 8e282d5..4aab476 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -72,7 +72,6 @@ % with \overset{\text{Definition}}&{=} instead of &\stackrel{\text{Definition}}= \RequirePackage{mathtools} % for := (defined as) \RequirePackage{amsthm} % for theorems environments -\RequirePackage{microtype} % should improve typesetting, sometimes removing underfull hboxes \RequirePackage{enumerate} % for different kind of numbering in enumerations \RequirePackage[version=4]{mhchem} % chemical formulars. Provides \ce \RequirePackage[per-mode=fraction, From 022b99650fa2cfc4f3fdb81f76ea91959829b2a0 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 8 Jan 2022 12:42:18 +0100 Subject: [PATCH 22/25] avoid warning and reformat --- tex/header/stdmath.sty | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index 4aab476..a32062b 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -51,8 +51,16 @@ \ProcessOptions\relax \ifopt@pics\RequirePackage{graphicx}\fi -\ifopt@tikz\RequirePackage{tikz}\RequirePackage{tikz-cd}\RequirePackage{pgfplots}\fi -\ifopt@script\RequirePackage{mathrsfs}\newcommand{\scr}[1]{\mathscr{#1}}\fi % for script A (sigma-Algebra-A) +\ifopt@tikz% + \RequirePackage{tikz}% + \RequirePackage{tikz-cd}% + \RequirePackage{pgfplots}% + \pgfplotsset{compat=1.18}% mentioned in a warning, should remove it +\fi +\ifopt@script% + \RequirePackage{mathrsfs}% + \newcommand{\scr}[1]{\mathscr{#1}} +\fi % for script A (sigma-Algebra-A) % --------- % Packages From ffb648a3bba99db3e7cd2f329f7341aa89e4f879 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 8 Jan 2022 13:54:25 +0100 Subject: [PATCH 23/25] always include german AND english the option 'german' just changes the default language --- tex/header/stdmath.sty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index a32062b..dfa9f5a 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -74,7 +74,7 @@ % maybe that works one day: % \RequirePackage{polyglossia} % \ifopt@german{\setdefaultlanguage{german}}\else{\setdefaultlanguage{english}}\fi -\RequirePackage[\ifopt@german ngerman \else english \fi]{babel} +\RequirePackage[\ifopt@german english,ngerman \else ngerman,english \fi]{babel} \RequirePackage{amsmath, amsfonts} \RequirePackage{aligned-overset} % for nicely aligned text over relation symbols % with \overset{\text{Definition}}&{=} instead of &\stackrel{\text{Definition}}= From 874aeb3884ca00f0b1ebf2d68c0c4cd79e731264 Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 6 Feb 2022 12:15:54 +0100 Subject: [PATCH 24/25] fix language choice I don't know if it worked one day but in master thesis it didn't work now it should be better --- tex/header/stdmath.sty | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index dfa9f5a..d09e277 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -74,7 +74,12 @@ % maybe that works one day: % \RequirePackage{polyglossia} % \ifopt@german{\setdefaultlanguage{german}}\else{\setdefaultlanguage{english}}\fi -\RequirePackage[\ifopt@german english,ngerman \else ngerman,english \fi]{babel} +\ifopt@german% + \RequirePackage[english,ngerman]{babel}% +\else% + \RequirePackage[ngerman,english]{babel}% +\fi + \RequirePackage{amsmath, amsfonts} \RequirePackage{aligned-overset} % for nicely aligned text over relation symbols % with \overset{\text{Definition}}&{=} instead of &\stackrel{\text{Definition}}= From ae27574c8886089e77775788aeaf62b921bcf43e Mon Sep 17 00:00:00 2001 From: Felix Date: Mon, 7 Feb 2022 13:31:13 +0100 Subject: [PATCH 25/25] use different definition for differential from a stackexchange source --- tex/header/stdmath.sty | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty index d09e277..06ff81a 100644 --- a/tex/header/stdmath.sty +++ b/tex/header/stdmath.sty @@ -188,8 +188,9 @@ exponent-product=\cdot]{siunitx} % provides nice typesetting for units and numb \newcommand{\scaProd}[1]{\left\langle #1 \right\rangle} % scalar product \newcommand{\conj}[1]{#1^{*}} % (complex) conjugation -\newcommand{\D}{\ensuremath{d}} % d in \D x \D z ... at integrals -% \newcommand{\D}{\ensuremath{\mathrm{d}}} % +% correct according to https://tex.stackexchange.com/a/84308: +\newcommand{\D}{\ensuremath{\mathop{}\!d}} % d in \D x \D z ... at integrals +% \newcommand{\D}{\ensuremath{\mathop{}\!\mathrm{d}}} % \newcommand{\cl}[1]{\overline{#1}} % closure