From 76eb5468c1a3877f4d8a39cb48892a67b143e5c9 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 16 Nov 2021 21:07:39 +0100 Subject: fix title node height Titles using two lines would increase the height of the whole tikz picture because the node was expanded above the card top. Setting the title node inner separation to 0 fixes this problem. --- latex/tikzcards.tex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/latex/tikzcards.tex b/latex/tikzcards.tex index de5441ab..a6b7cb0f 100644 --- a/latex/tikzcards.tex +++ b/latex/tikzcards.tex @@ -193,9 +193,8 @@ % Titel der Karte \newcommand{\cardtitle}[1]{ - %\draw[pattern=soft crosshatch,rounded corners=0.1cm] \shapeTitleArea; \fill[elementcorners, titlebg, opacity=.85] \shapeTitleArea; - \node[text width=3.75cm] at (0.5 * \cardwidth, \titley) { + \node[inner sep=0pt, text width=3.75cm] at (0.5 * \cardwidth, \titley) { \begin{center} \color{white}\uppercase{\normalsize #1} \end{center} -- cgit v1.2.3