diff --git a/kzoJbInf.sty b/kzoJbInf.sty index 7a7e70e..3ce6152 100644 --- a/kzoJbInf.sty +++ b/kzoJbInf.sty @@ -2,7 +2,7 @@ \usepackage[left=2cm, right=2cm, top=2cm, bottom=2cm]{geometry} \usepackage{ifthen} %\usepackage{calc} -\usepackage{fancyhdr} + %\usepackage{cancel} %\usepackage{bm} \usepackage{verbatim} @@ -17,9 +17,22 @@ pdfusetitle \usepackage{ngerman} \usepackage{graphicx} + +\makeatletter +\@ifclassloaded{exam}{ + \firstpageheadrule% rule on first page header + \runningheadrule% rule on other pages' header +}{ +\usepackage{fancyhdr} \pagestyle{fancy} +} +\makeatother + + + + \providecommand{\tightlist}{% für pandoc \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} - \usepackage[T1]{fontenc} -\input{conf/meta.tex} \ No newline at end of file +\usepackage[T1]{fontenc} +\input{conf/meta.tex} diff --git a/pandoc.sty b/pandoc.sty new file mode 100644 index 0000000..02f58b1 --- /dev/null +++ b/pandoc.sty @@ -0,0 +1,55 @@ +\usepackage{amsmath,amssymb} +\usepackage{iftex} +\ifPDFTeX + \usepackage[T1]{fontenc} + \usepackage[utf8]{inputenc} + \usepackage{textcomp} % provide euro and other symbols +\else % if luatex or xetex + \usepackage{unicode-math} % this also loads fontspec + \defaultfontfeatures{Scale=MatchLowercase} + \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} +\fi +\usepackage{lmodern} +\ifPDFTeX\else + % xetex/luatex font selection +\fi +% Use upquote if available, for straight quotes in verbatim environments +\IfFileExists{upquote.sty}{\usepackage{upquote}}{} +\IfFileExists{microtype.sty}{% use microtype if available + \usepackage[]{microtype} + \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts +}{} +\makeatletter +\@ifundefined{KOMAClassName}{% if non-KOMA class + \IfFileExists{parskip.sty}{% + \usepackage{parskip} + }{% else + \setlength{\parindent}{0pt} + \setlength{\parskip}{6pt plus 2pt minus 1pt}} +}{% if KOMA class + \KOMAoptions{parskip=half}} +\makeatother +\usepackage{xcolor} +\usepackage{longtable,booktabs,array} +\usepackage{calc} % for calculating minipage widths +% Correct order of tables after \paragraph or \subparagraph +\usepackage{etoolbox} +\makeatletter +\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} +\makeatother +% Allow footnotes in longtable head/foot +\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} +\makesavenoteenv{longtable} +\setlength{\emergencystretch}{3em} % prevent overfull lines +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} +% \setcounter{secnumdepth}{-\maxdimen} % remove section numbering +\ifLuaTeX + \usepackage{selnolig} % disable illegal ligatures +\fi +\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}} +\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available +\urlstyle{same} +\hypersetup{ + hidelinks, + pdfcreator={LaTeX via pandoc}}