JuliaKurs23/macros.tex

56 lines
1.8 KiB
TeX
Raw Normal View History

2023-05-12 20:12:56 +02:00
% LTeX: enabled=false
\usepackage[sb]{libertine}
%\usepackage{textcomp}
%\usepackage[lcgreekalpha]{libertinust1math}
\usepackage{etoolbox}
\usepackage{setspace}
%\usepackage{ftnxtra} % footnotes in captions
%\usepackage{sidenotes}
%\usepackage{marginnote}
\usepackage{scrhack}
\makeatletter
\newcommand*{\toccontents}{\@starttoc{toc}}%
\let\oldmaketitle\maketitle%
\renewcommand{\maketitle}{\oldmaketitle\toccontents}%
\makeatother
\KOMAoptions{DIV=16}
\AtBeginEnvironment{quote}{\par\singlespace\vspace{-0.\topsep}\small}
\AtEndEnvironment{quote}{\vspace{-0.\topsep}\endsinglespace}
\usepackage[many]{tcolorbox}
%\usepackage[skins, breakable]{tcolorbox}
\newtcolorbox{indentb}{enhanced,breakable,boxrule=0pt,%
frame hidden,interior hidden,sharp corners,grow to left by=-3.5em,%
borderline west={3pt}{-1em}{gray!25},fontupper=\small,fontlower=\small}
\setcounter{tocdepth}{0}
\tcbset{fontupper=\small,fontlower=\small,fonttitle=\small}
\usepackage{steinmetz} %versor \phase does not work with mathjax
\newcommand*{\enclose}[2]{\phase{#2}}
\newcommand*{\mysmall}[1]{{\scriptsize #1}}
%\RequirePackage{myunicode}
\usepackage{newunicodechar}
\newfontfamily{\emo}{Noto Emoji Medium}
\newunicodechar{😄}{{\emo 😄}}
\newunicodechar{🎶}{{\emo 🎶}}
\newunicodechar{🕒}{{\emo 🕒}}
\newunicodechar{🌍}{{\emo 🌍}}
\newunicodechar{🎷}{{\emo 🎷}}
\newunicodechar{🌈}{{\emo 🌈}}
%\usepackage{fancyvrb}
%\renewenvironment{verbatim}%
% {\begin{Verbatim}[xleftmargin=2em]}%
% {\end{Verbatim}}
% nochmal, weil von libertine-pkg ueberschrieben
\setmonofont{JuliaMono}[
Scale = MatchLowercase,
UprightFont = *-Regular,
BoldFont = *-Bold,
ItalicFont = *-RegularItalic,
BoldItalicFont = *-BoldItalic,
Contextuals = AlternateOff,
%CharacterVariant=1,
2024-05-27 20:10:30 +02:00
]
\setkeys{Gin}{width=0.7\textwidth,keepaspectratio}