Consolidate configuration into own derived class
This commit is contained in:
parent
1eba055be0
commit
77f114fec3
28
conjugationtables.cls
Normal file
28
conjugationtables.cls
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
|
\ProvidesClass{conjugationtables}[2025/01/22 Conjugation Tables]
|
||||||
|
|
||||||
|
\LoadClass[12pt]{scrartcl}
|
||||||
|
|
||||||
|
\RequirePackage{kvoptions}
|
||||||
|
|
||||||
|
\SetupKeyvalOptions{
|
||||||
|
family=ct,
|
||||||
|
prefix=ct@
|
||||||
|
}
|
||||||
|
|
||||||
|
\DeclareStringOption{language}
|
||||||
|
|
||||||
|
\ProcessKeyvalOptions*
|
||||||
|
|
||||||
|
\RequirePackage[\ct@language]{babel}
|
||||||
|
\RequirePackage[margin=2cm]{geometry}
|
||||||
|
\RequirePackage{multicol}
|
||||||
|
\RequirePackage{tabularx}
|
||||||
|
\RequirePackage{tcolorbox}
|
||||||
|
\RequirePackage[table]{xcolor}
|
||||||
|
|
||||||
|
\pagestyle{empty}
|
||||||
|
\renewcommand{\familydefault}{\sfdefault}
|
||||||
|
\rowcolors{1}{black!5!white}{white}
|
||||||
|
|
||||||
|
\newtcolorbox{contable}[1]{before title={\setcounter{rownum}{0}}, title={\textbf{#1}}, tabularx={l|X}}
|
@ -1,17 +1,4 @@
|
|||||||
\documentclass[12pt]{scrartcl}
|
\documentclass[language=brazilian]{conjugationtables}
|
||||||
|
|
||||||
\usepackage[brazilian]{babel}
|
|
||||||
\usepackage[margin=2cm]{geometry}
|
|
||||||
\usepackage{multicol}
|
|
||||||
\usepackage{tabularx}
|
|
||||||
\usepackage{tcolorbox}
|
|
||||||
\usepackage[table]{xcolor}
|
|
||||||
|
|
||||||
\pagestyle{empty}
|
|
||||||
\renewcommand{\familydefault}{\sfdefault}
|
|
||||||
\rowcolors{1}{black!5!white}{white}
|
|
||||||
|
|
||||||
\newtcolorbox{contable}[1]{before title={\setcounter{rownum}{0}}, title={\textbf{#1}}, tabularx={l|X}}
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
|
@ -1,17 +1,4 @@
|
|||||||
\documentclass[12pt]{scrartcl}
|
\documentclass[language=francais]{conjugationtables}
|
||||||
|
|
||||||
\usepackage[francais]{babel}
|
|
||||||
\usepackage[margin=2cm]{geometry}
|
|
||||||
\usepackage{multicol}
|
|
||||||
\usepackage{tabularx}
|
|
||||||
\usepackage{tcolorbox}
|
|
||||||
\usepackage[table]{xcolor}
|
|
||||||
|
|
||||||
\pagestyle{empty}
|
|
||||||
\renewcommand{\familydefault}{\sfdefault}
|
|
||||||
\rowcolors{1}{black!5!white}{white}
|
|
||||||
|
|
||||||
\newtcolorbox{contable}[1]{before title={\setcounter{rownum}{0}}, title={\textbf{#1}}, tabularx={l|X}}
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user