diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-11-16 21:07:39 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-11-16 21:07:39 +0100 |
| commit | 76eb5468c1a3877f4d8a39cb48892a67b143e5c9 (patch) | |
| tree | a0f894d6c938ef98f374dffd37cc06f09b6db3ee | |
| parent | b6a63244f59434829ff9ebe734b75c28ff862425 (diff) | |
| download | muhqs-game-76eb5468c1a3877f4d8a39cb48892a67b143e5c9.tar.gz muhqs-game-76eb5468c1a3877f4d8a39cb48892a67b143e5c9.zip | |
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.
| -rw-r--r-- | latex/tikzcards.tex | 3 |
1 files changed, 1 insertions, 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} |
