Verbesserung für exam Klassen
This commit is contained in:
parent
a63deeef29
commit
de282e8c88
2 changed files with 71 additions and 3 deletions
15
kzoJbInf.sty
15
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,7 +17,20 @@ 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}}
|
||||
|
|
55
pandoc.sty
Normal file
55
pandoc.sty
Normal file
|
@ -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}}
|
Loading…
Reference in a new issue