From 2362801d66ffc1e37b90e9c70c5bee849e7a70fb Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 7 May 2023 16:59:37 +0200 Subject: update common latex code use more tikz libraries and add new helper math command --- latex/common.tex | 3 +++ latex/common_packages.tex | 2 ++ latex/test.cls | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/latex/common.tex b/latex/common.tex index aa910764..d71a2492 100644 --- a/latex/common.tex +++ b/latex/common.tex @@ -23,3 +23,6 @@ \newcommand{\solution}[1]{\iftoggle{lehrerversion}{#1}{\phantom{#1}}} \newcommand{\gap}[1]{\underline{\solution{#1}}} + +% Add new paired delimiter 'abs' using mathtools +\DeclarePairedDelimiter\abs{\lvert}{\rvert}% diff --git a/latex/common_packages.tex b/latex/common_packages.tex index 6320df4f..c32f140c 100644 --- a/latex/common_packages.tex +++ b/latex/common_packages.tex @@ -1,10 +1,12 @@ \RequirePackage{geometry} \RequirePackage[utf8]{inputenc} \RequirePackage{amssymb,amsthm,amsmath} +\RequirePackage{mathtools} \RequirePackage{ifthen} \RequirePackage{graphicx} \RequirePackage[table]{xcolor} \RequirePackage{tikz} +\usetikzlibrary{calc,tikzmark,backgrounds,arrows.meta} \RequirePackage{multicol} \RequirePackage[most]{tcolorbox} \RequirePackage{lmodern} diff --git a/latex/test.cls b/latex/test.cls index d58765dc..fa8ea0e1 100644 --- a/latex/test.cls +++ b/latex/test.cls @@ -29,7 +29,6 @@ \RequirePackage{everypage} \RequirePackage{tikzpagenodes} -\usetikzlibrary{backgrounds} \iftoggle{drawborder}{ \AddEverypageHook{ -- cgit v1.2.3