Let KOMA document class handle parskip when applicable (#5143)

This is just a change to the default latex template.
This commit is contained in:
Enno 2018-12-11 15:22:31 -03:00 committed by John MacFarlane
parent 0f736d778f
commit 84147eeff1
5 changed files with 35 additions and 30 deletions

View file

@ -159,12 +159,13 @@ $endif$
}{}
$if(indent)$
$else$
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}
\@ifundefined{KOMAClassName}{%
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}}{\KOMAoptions{parskip=half}}
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}

View file

@ -21,12 +21,13 @@
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}
\@ifundefined{KOMAClassName}{%
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}}{\KOMAoptions{parskip=half}}
\usepackage{hyperref}
\hypersetup{
pdfborder={0 0 0},

View file

@ -21,12 +21,13 @@
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}
\@ifundefined{KOMAClassName}{%
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}}{\KOMAoptions{parskip=half}}
\usepackage{hyperref}
\hypersetup{
pdfborder={0 0 0},

View file

@ -21,12 +21,13 @@
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}
\@ifundefined{KOMAClassName}{%
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}}{\KOMAoptions{parskip=half}}
\usepackage{fancyvrb}
\usepackage{hyperref}
\hypersetup{

View file

@ -21,12 +21,13 @@
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}
\@ifundefined{KOMAClassName}{%
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}}{\KOMAoptions{parskip=half}}
\usepackage{hyperref}
\hypersetup{
pdfborder={0 0 0},