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)$
$else$
\makeatletter
\@ifundefined{KOMAClassName}{%
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}}{\KOMAoptions{parskip=half}}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% else
\KOMAoptions{parskip=half}}
\makeatother
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}

View file

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

View file

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

View file

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

View file

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