template:latex: make @ letter before using it (#5145)

This fixes the previous commit for parskip and KOMA classes.
This commit is contained in:
Enno 2018-12-11 18:21:45 -03:00 committed by John MacFarlane
parent fe9c6eb86b
commit dc8caf10df
5 changed files with 35 additions and 20 deletions

View file

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

View file

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

View file

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

View file

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

View file

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