I wrote an cls-file for my latex-documents and it works like a charm with my texlive installation. But on my new Labtop, where I tried MiKTex, it ignores the declarations.
I’ll only post the beginning of the cls here, else it would be a little much.
NeedsTeXFormat{LaTeX2e}
ProvidesClass{merlinsTemplate}[2020/08/29 My custom story class]
newififgermangermanfalse %Deutsch, sonst English
newififaVaVfalse %a5, sonst a4
newififbgbgfalse %mit Hintergrund, sonst ohne
newififonesideonesidefalse % einseitig
newififnoParindentnoParindentfalse
newififlualuafalse %a5, sonst a4
newififarticlearticlefalse %typ article instead of book
DeclareOption{german}{germantrue}
DeclareOption{a5}{aVtrue}
DeclareOption{background}{bgtrue}
DeclareOption{oneside}{onesidetrue}
DeclareOption{noParindent}{noParindenttrue}
DeclareOption{lua}{luatrue}
DeclareOption{article}{articletrue}
ProcessOptions
ifarticle
LoadClass{article}
else
ifoneside
LoadClass[oneside]{book}
else
LoadClass{book}
fi
fi
ifgerman
RequirePackage[ngerman]{babel}
else
RequirePackage[english]{babel}
fi
RequirePackage[table, dvipsnames]{xcolor}
%multicols trennlinie
newcommand{Cmctc}{gray!10}
%titlesec
newcommand{Ctscc}{violet} % chapter
newcommand{Ctssc}{blue} % section
newcommand{Ctsssc}{cyan} % subsection
newcommand{Ctssssc}{teal} % subsubsection
newcommand{Ctspc}{purple} % paragraph
%etoolbox : headrule:Tikz
newcommand{Cshlco}{Ctscc}
newcommand{Cshlct}{black}
%fancyhdr chaptermark
newcommand{Ccmc}{Ctscc}
RequirePackage{geometry}
ifaV
geometry{a5paper,left=12mm,right=12mm, top=1.5cm, bottom=2cm}
else
geometry{a4paper,left=25mm,right=25mm, top=2cm, bottom=2cm}
fi
RequirePackage{titlesec}%to format headings
ifarticle
titleformat{section}
{scshapehugecolor{Ctssc}}
{LARGEthesection}{.5em}{}[titlerule]
titleformat{subsection}
{Largescshapecolor{Ctsssc}}
{largethesubsection}{.25em}{}[titlerule]
titleformat{subsubsection}
{Largescshapecolor{Ctssssc}}
{tinythesubsubsection}{.25em}{}
titleformat{paragraph}[runin]
{normalfontscshapecolor{Ctspc}}
{theparagraph}{0em}{}
else
titleformat{chapter}[display]
{scshapeHugecolor{Ctscc}}
{filleftlargechaptertitlename~thechapter}
{0ex}
{titlerulevspace{0.75ex}filright}
[vspace{0.5ex}titlerule]
titleformat{section}
{centeringscshapehugecolor{Ctssc}}
{scriptsizethesection}{.5em}{}[titlerule]
titleformat{subsection}
{centeringlargescshapecolor{Ctsssc}}
{scriptsizethesubsection}{.25em}{}[titlerule]
titleformat{subsubsection}
{Largescshapecolor{Ctssssc}}
{tinythesubsubsection}{.25em}{}
titleformat{paragraph}[runin]
{normalfontscshapecolor{Ctspc}}
{theparagraph}{0em}{}
fi
RequirePackage{tikz}
RequirePackage{fancyhdr}
pagestyle{fancy}
ifarticle
renewcommand{sectionmark}[1]{markboth{textcolor{Ccmc}{#1}}{}}
else
renewcommand{chaptermark}[1]{markboth{textcolor{Ccmc}{#1}}{}}
fi
RequirePackage{etoolbox}
renewcommand{headrule}{
begin{tikzpicture}%
ifnumodd{value{page}}
{shade[left color=Cshlco, right color=Cshlct, dashed] (0,0) rectangle (headwidth,0.01);}
{shade[left color=Cshlct, right color=Cshlco, dashed] (0,0) rectangle (headwidth,0.01);}
end{tikzpicture}}
RequirePackage{amsfonts}
RequirePackage{amssymb}
RequirePackage{array,ragged2e}
renewcommand{arraystretch}{1.4} %tabellen
RequirePackage{boldline}
RequirePackage{catchfilebetweentags}
usepackage{enumitem} %to change enumerate schichten
RequirePackage{fontawesome}
iflua
usepackage{fontspec} % with lua
fi
RequirePackage{fourier}
%RequirePackage{graphics}
RequirePackage{graphicx}
RequirePackage{hyperref} % Verlinkung des toc
RequirePackage[utf8]{inputenc} % Umlaute für Deutsch direkt verwenden
RequirePackage{lineno}
RequirePackage{lipsum} % automatischer FillerText
RequirePackage{longtable}
RequirePackage{makecell}
RequirePackage{marvosym} % brief sonderzeichen
RequirePackage{multicol} % muli-columns
setlength{columnseprule}{1pt}
defcolumnseprulecolor{color{Cmctc}}
RequirePackage{multirow} % Tables
RequirePackage{pdfpages}
RequirePackage{pifont}
RequirePackage{subcaption}
usepackage{tabularx}
newcolumntype{L}[1]{>{raggedrightarraybackslash}p{#1}} % linksbündig mit Breitenangabe
newcolumntype{C}[1]{>{centeringarraybackslash}p{#1}} % zentriert mit Breitenangabe
newcolumntype{R}[1]{>{raggedleftarraybackslash}p{#1}} % rechtsbündig mit Breitenangabe
RequirePackage[most]{tcolorbox}
tcbuselibrary{skins,xparse}
tcbuselibrary{breakable}
RequirePackage{textcomp}
RequirePackage{ulem}
RequirePackage{wasysym}
ifnoParindent
setlength{parindent}{0em} %Einrücken unterdrücken von paragraph
renewcommand{Ctscc}{red}
else
renewcommand{Ctscc}{blue}
fi
newdimenR %für special marker
%R=4pt
I call the class with:
documentclass[german]{merlinsTemplate}
setcounter{tocdepth}{3}
setcounter{secnumdepth}{3}
begin{document}
chapter{ITS - Linux: Debian\{normalsize Mr. Lüthen}}
begin{itemize}
item[22.12.20] textit{Ferien}
item[29.12.20] textit{Ferien}
item[05.01.21] textit{Ferien}
item[12.01.21]
end{itemize}
section{Installation of Debian{tiny 18.08.2020, 25.08.2020, 01.09.2020}}
subsection{Aufgabe}
Ladida
subsubsection{Installation eines Debian-Systems}
Für Ausbildungszwecke ist auf den privaten Laptops das Linux-Betriebssystem ...
end{document}
On my computer with texlive Content translates to Inhaltsverzeichnis as it should, but on my MiKTex it is still Content.
The log on the MiKTex Labtop is: in a comment becaus it is too long for the body…
Has anyone an idea what is missing?
2
Answers
Log (Part1)
Log Part 2